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 […]

Categories
Development

django with celery raise No module named ‘kombu’ when runserver

I made a website with django and I use celery for asynchronous task, when I run: ./manage.py runserver I got the error: Traceback (most recent call last): File “./manage.py”, line 22, in <module> execute_from_command_line(sys.argv) File “/home/rouizi/OC_project13/venv/lib/python3.6/site-packages/django/core/management/__init__.py”, line 401, in execute_from_command_line utility.execute() File “/home/rouizi/OC_project13/venv/lib/python3.6/site-packages/django/core/management/__init__.py”, line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File “/home/rouizi/OC_project13/venv/lib/python3.6/site-packages/django/core/management/base.py”, line 341, in run_from_argv connections.close_all() […]

Categories
Development

application call . TypeError: view must be a callable or a list/tuple in the case of include()

I am taking a course where this error does not occur my error is cod is: Exception in thread django-main-thread: Traceback (most recent call last): File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\threading.py”, line 932, in _bo otstrap_inner self.run() File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\threading.py”, line 870, in run self._target(*self._args, **self._kwargs) File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\auto reload.py”, line 53, in wrapper fn(*args, **kwargs) File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\manag ement\commands\runserver.py”, line 117, […]

Categories
Development

django.core.exceptions.ImproperlyConfigured: The included URLconf does not appear to have any patterns in it

I have a django 3 app i made following a tutorial. The tutorial was for django 2 but i would like to learn how to do it in django 3. I got this error and i do not understand what to do to correct this error. The error mentions something about a circular import. django.core.exceptions.ImproperlyConfigured: […]

Categories
Development

Can’t convert time strings from csv to datetime

I have a csv file with 2 timestamps per row consisting of date, time and a value: 02.04.2019 01:30:30;02.04.2019 02:36:05;6354 02.04.2019 02:36:05;02.04.2019 03:41:40;3453 02.04.2019 03:41:40;02.04.2019 04:47:15;5456 When I try to convert date and time string to datetime: with open(“file.csv”, “rt”, encoding=’utf-8-sig’) as source: reader = csv.reader(source) for row in csv.reader(source, delimiter=”;”): dateTimeBegin = row[0] dateTimeEnd […]

Categories
Development

Django website deployment is raising an ImproperlyConfigured error

I am configuring a new Django web site using Cpanel. After completing the whole procedures and run this code python manage.py collectstatic I am getting the following error: 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 “/home/massvnrc/virtualenv/mysite/3.7/lib/python3.7/site-packages/django/core/management/__init__.py”, line 353, in execute_from_command_line utility.execute() File […]

Categories
Development

Why do I get a error while converting my json tweet to an rdd?

I got the text of a tweet in json and I want to convert it to an RDD. But I get the following error. Traceback (most recent call last): File “/home/afzal/twitterp.py”, line 48, in <module> get_twitter_data() File “/home/afzal/twitterp.py”, line 41, in get_twitter_data words = spark.read.json(re_test, multiLine=True).flatMap(lambda line: line.split(” “)) File “/usr/hdp/current/spark2-client/python/lib/pyspark.zip/pyspark/sql/readwriter.py”, line 249, in json […]

Categories
Development

Dataflow job failed after more than 6 hours with “The worker lost contact with the service”?

I am using Dataflow to read data from BigQuery and then do NLP preprocessing using python. I am using Python 3 and SDK 2.16.0. I am using 100 workers (provite IP, private access and Cloud NAT) with workers in europe-west6 and endpoint in europe-west1. The BigQuery tables are in US. Test jobs were working without […]

Categories
Development Windows

keras preprocessing load_image doesn’t work on my windows PC

I have tried quite some stuff. I would really like to get this to work. if anyone knows an alternative, I would be thankful. edit: what I’m trying to do is load the image, which he has some kind of problem with. load Image uses PIL_Image, which has some issue. from keras.preprocessing.image import load_img from […]