Categories
Linux Mastering Development

Installed Anaconda on Pop!_OS, but it is not running

I have installed Conda properly, and it is working. I did singh@zeppelin:~$ source~/anaconda3/bin/activate root (base) singh@zeppelin:~$ anaconda-navigator I get the Anaconda Ring that says the program is initializing and then I get this in my terminal. : Traceback (most recent call last): File "/home/singh/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/main_window.py", line 541, in setup self.post_setup(conda_data=conda_data) File "/home/singh/anaconda3/lib/python3.7/site- packages/anaconda_navigator/widgets/main_window.py", line 578, in […]

Categories
Mastering Development System & Network

ansible command non zero return code

ansible return error :Permission deniednon-zero return code trying to execute redhat command [ansauto@site1-l-ansible-01 ]$ ansible -vvv 192.168.61.22 -m shell -a ‘cat /etc/redhat-release’ ansible 2.9.9 config file = /home/ansauto/hachem/OSCAP/ansible.cfg configured module search path = [‘/home/ansauto/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC […]

Categories
Artificial Intelligence (AI) Mastering Development

Keras Multiclass Clasification input_shape size problem

I am building a face detection AI using Keras. I have collected the data in the following form: dataset – a – b – c – d main.py In this, a,b,c, and d are the classes each containing images. I want to use the image_dataset_from_directory command but when I try to resize all the images […]

Categories
Mastering Development

connexion jsonschema.exceptions- Unknown type ‘str’ for validator with schema:

I used flask and connexion for my api, I got python server stub from swagger editor and it was generated based on api spec. However, one of my endpoint make request with json data, it should be validated by json schema validator. I used jsonschema python library for that. But, now when I test endpoint […]

Categories
Linux Mastering Development Ubuntu

ImportError: No module named six in Ubuntu 20.04 LTS

I recently updated to Ubuntu 20.04 LTS. Ipython was working fine before that. Now when i try to open it, i get an error that (caesar is my usename) Traceback (most recent call last): File “/home/caesar/.local/bin/ipython”, line 6, in <module> from IPython import start_ipython File “/home/caesar/.local/lib/python2.7/site-packages/IPython/__init__.py”, line 48, in <module> from .core.application import Application File […]

Categories
Mastering Development

Why do I get ‘ImproperlyConfigured’ exception, implying circular imports?

I have had this issue before, but I’ve managed to find the circular import being referenced. I face it again, but I can’t find the problem. My project’s name is ‘sare’, and my sare/urls.py looks like this: from django.contrib import admin from django.urls import include, path urlpatterns = [ path(‘users/’, include(‘users.urls’, namespace=’users’)), path(‘admin/’, admin.site.urls), ] […]

Categories
Mastering Development System & Network

Server crash (Error 500) repeatedly (running nginx + gunicorn on EC2 instance)

Okay, so I’m really confused about what’s happening here. I’ve had my server up and running for about a month and everything was fine. The server was getting very little traffic (about 50-100 requests per day) so I figured that should be the least of my problems. Then, one day I noticed the server is […]

Categories
Mastering Development

How do I preprocess a header file with macros to a non macro header file

C newbie here. My use case is to give a header file posted here to the python library cffi so that I can bind to a C library. The header file in the previous link has macros. cffi only accepts a header file without macros, I think. Is there a way to give a header […]

Categories
Mastering Development

want to start ninja-ide but won’t start

install ninja-ide in my kali Linux, whenever I run this code “ninja-ide” to run it this error keeps on coming….. Traceback (most recent call last): File “/usr/bin/ninja-ide”, line 34, in <module> ninja_ide.setup_and_run() File “/usr/share/ninja-ide/ninja_ide/__init__.py”, line 71, in setup_and_run core.run_ninja() File “/usr/share/ninja-ide/ninja_ide/core/core.py”, line 48, in run_ninja from ninja_ide.gui import ide File “/usr/share/ninja-ide/ninja_ide/gui/ide.py”, line 45, in <module> […]

Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]