Categories
Linux Mastering Development

Error #2 when trying to install ECM (Extra Cmake Modules)

I am trying to install extra-cmake-modules from source, and then I get an error after executing make command: Extension error: Could not import extension ecm (exception: No module named ‘sphinxcontrib’) make[2]: *** [docs/CMakeFiles/documentation.dir/build.make:62: docs/doc_format_html] Error 2 make[2]: Leaving directory ‘/home/masterpi/Documents/Extra-CMake-Modules/extra-cmake-modules/build’ make[1]: *** [CMakeFiles/Makefile2:217: docs/CMakeFiles/documentation.dir/all] Error 2 make[1]: Leaving directory ‘/home/masterpi/Documents/Extra-CMake-Modules/extra-cmake-modules/build’ make: *** [Makefile:163: all] Error […]

Categories
Mastering Development

how to fix “import keras not working” error

I have used Keras remotely, such as on Colab and AWS. Today, I tried to install Keras on my laptop using pip3 install keras, and the message was that keras was already installed on the computer (I must have installed it before): WARNING: pip is being invoked by an old script wrapper. This will fail […]

Categories
Mastering Development

Django/VueJs app deployed to Heroku showing Application Error on Page

I have a django app with vuejs frontend to deploy to heroku. The build was successful and app was deployed. However, visiting the page of the site mysite.heroku.com shows an application error like so: Application error An error occurred in the application and your page could not be served. If you are the application owner, […]

Categories
Mastering Development

Heroku with Docker release failed – ModuleNotFoundError: No module named ‘users.apps’

I’ve been following a book tutorial that uses docker with Django. When I used the command ‘git push heroku master’, I get the following output: Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 377, […]

Categories
Mastering Development System & Network

daemontools svscan cannot start supervise due to permission denied error on CentOS 8

I have installed daemontools-0.76 on a CentOS 8 system as per the official docs here: http://cr.yp.to/daemontools.html. I then created a test service symlinked in /service/test with a simple run file that echoes text to stdout (as basic as it gets). Both the test folder and run file have 755 permissions. run file: #!/bin/sh echo "test" […]

Categories
Mastering Development

dotnet pack recently failing

We have been getting NU5118 errors for a long time in Azure Devops but the pack step was passing Starting: Pack ============================================================================== Task : .NET Core Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command Version : 2.167.1 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli ============================================================================== C:\windows\system32\chcp.com 65001 […]

Categories
Mastering Development

Server-DB Communication Issue at Built

Setup Consider this relatively simple docker-app using fastapi as server and couchdb as db. Here is the project structure ├── app.py ├── compose │   ├── couchdb.Dockerfile │   └── server.Dockerfile ├── docker-compose.yml ├── .env # Global vars e.g. DB credentials ├── Pipfile # For local dev ├── Pipfile.lock # Same └── requirements.txt Here are is my […]

Categories
Mastering Development

SQL-Alchemy Module Not Found Error on Google App Engine

I’m trying to make work my first App Engine on Google Cloud but I’m facing a problem. I have not found any response on the web. On standard environment, this is my app.yaml : runtime: python38 handlers: # This configures Google App Engine to serve the files in the app’s static # directory. – url: […]

Categories
Mastering Development

No module “AppName” error while running python manage.py

I am trying to follow this tutorial related to Django Rest Framework, on running python manage.py I am getting an error: File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module […]

Categories
Mastering Development

Syntax-Highlighting for Java-Code in html

What I am trying to do I am working on a syntax-highlighter that highlights java-code in html (example below). Example output I’ve tested the code with the following java-code (caesar-encryption): //Encryption public static String encrypt(String text, int n) { int x = 0; int y = 0; String out = ""; //Empty string for result. […]