I have a very long and repetitive python path, where do I look to correct this?

I know it is probably not necessary to paste the whole path, but just for the record I have done so below. Whenever I run a python command, it takes a long time to load this path I suppose. I have...

installing Mayavi with pip - no module named vtk

I want to use Mayavi. Situation I use a MacBook Air, with OSX 10.7.3. I use Python 2.7.2 I have virtualenv installed. But I have not used it for this installation. I've manually installed all...

Installing module "Configobj 4.7.2" error

I was trying to install the module ConfigObj. I did everything correctly Typed in CMD: python setup.py install But tells me a traceback (error) > C:\Users\Frederik\Desktop\configobj-4.7.2>python...

No such file or directory "limits.h" when installing Pillow on Alpine Linux

I'm running alpine-linux on a Raspberry Pi 2. I'm trying to install Pillow via this command: pip install pillow This is the output from the command: Installing collected packages:...

How to create a list of lists in the config, while using ConfigObj in Python?

I am using ConfigObj in Python to read from my config file. I need to read a list of lists from the config file. Here's what I've tried so far: sections and subsections - creates dictionaries,...

Heroku python app crashes

So I finally deployed my python app on heroku after so many trials and now, the app does not run. It returns an error in the logs with code "H10" and status 503. My app.py is simply app =...

Flask python app crashes on heroku

I tried pushing my code directly to Heroku for hosting but I got so many errors. Now, what I did was host the code on Github, and then link the git repo with Heroku. Now, the Heroku app was...

one hot encoding for frequent values only

I am looking to do one hot encoding to a column, but only for those that are very frequent. All that are below a threshold T will be put in their own category. My strategy was to create a...

mysql malformed packet error after running makemigrations django

The issue that we are getting is : we have run manage.py makemigrations and manage.py migrate successfully, after which we start getting the below error: File...

How to create new environment from a text file without environment name?

I am trying to create a new environment in Anaconda from a given file provided by Udacity here. However, I keep getting this error: SpecNotFound: Can't process without a name I think this is due...

ImportError: No module named 'config.settings'; 'config' is not a package

I'm trying to get my cookiecutter-django app running under Apache with mod_wsgi installed via pip. python3 manager.py runserver works. But after running it in Apache, I got an error saying Module...

ImportError: No module named configobj

I created .exe file using pyinstaller 3.3.1 and I got this message Traceback (most recent call last): File "install.py", line 14, in <module> ImportError: No module named configobj [8468] Failed...

Cuda Runtime Error cudaErrorNoDevice: no CUDA-capable device is detected

I am using Chainer, Cupy for CUDA 8.0 . I am trying to train machine learning model using python3.5 script, but I got this error: cupy.cuda.runtime.CUDARuntimeError: cudaErrorNoDevice: no...

error: command 'gcc' failed with exit status 1 when installing pip packages on alpine docker image

I'm attempting transition my base docker image from centos 7 to alpine, however I receive gcc errors when trying to install pip packages. This is a snippet of the error received: Successfully...

deployment with fabric issues

Hello I have trouble understanding packages manager such as apt pip pip3 I am trying to automate shell command with the use of fabric3 library I am following a book which tells me to write the...

Unable to import any libraries in Jupyter notebook even after installing in my virtual environment

I have created this virtual environment virtualenv. and installed jupyter notebook over there. conda create -p "C:\Users\HPO2KOR\Desktop\Work\venv\virtualenv" pip python=3.6 conda activate...

ERROR: MySQL_python-1.2.5-cp27-none-win_amd64.whl is not a supported wheel on this platform

So I am setting up an old project it's Python 2 and Django 1 where I'm stuck with the installation of requirement.txt. This is the main error I'm getting while installing Building wheel for...

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xaum7z8f/supervisor/

I'm setting up an existing project and when I am running pip install -r requirements.txt After every dependency is installed it gives this error: Command "python setup.py egg_info" failed with...

While instaling Buildozer for kivy i had an error saing "zipp is missing"

It's been several times that I try to install Buildozer to convert my kivy application to APK. I use a version of Linux from the Window Store. After downloading all the dependencies, I launch the...

Error with Python3 to connect to snowflake: snowflake.connector.errors.OperationalError::Failed to execute:'SSLSocket' object has no attribute 'conn

It seems there is some issue with latest snowflake connector . I am trying to install it on Ubuntu OS and trying to connect to snowflake but it gives error AttributeError: 'SSLSocket' object has...

E501 line too long (144 > 79 characters)

subprocess.check_output(['scrapy', 'crawl', 'mySpider', '-a', f'url={self.url}', '-a', f'nbrPage={self.pages}', '-o', 'test.json']) # noqa I splitted the line into multiple ones and I got...

setup.py install for mayavi error code 3221225477

I've been trying to install mayavi package. But I get the following Error Code: Input: pip install mayavi Output: Using cached mayavi-4.7.1.tar.bz2 (7.0 MB) Requirement already satisfied:...

Sub-process dpkg returned an error code (1)

dpkg: error processing package python3-certbot-apache (--configure): dependency problems - leaving unconfigured Errors were encountered while...

Python: TypeError: required field "type_ignores" missing from Module in Jupyter notebook

I have been having issues with my jupyter notebook for a few days. I didn't fix them at the time but have decided to now. Earlier whenever I executed anything in the jupyter notebook, It showed a...

How to fix a problem that "apt-get install" doesn't work because of python issue

I'm using Ubuntu 16.04.I'd like to install a ROS related package with "apt-get install", but it doesn't work. Terminal said like following. $ sudo apt-get install ros-kinetic-libuvc Reading...

how to create a custom python environment from yml file *with* downloads of missing packages

I am trying to build a python 3.5 environment that supports an old hddm library. Standard approaches fail due to my/anaconda's apparent inability in ignore (or downgrade) the 10.1 cuda library in...

Removing yaml tags from yaml.dump()

Am trying to write a yaml file after reading data from a .cfg file. While dumping, the file get dumped with huge metadata that is not desired. When I wasn't using the cfg file, the yaml was not...

Ansible ansible.builtin.url module "Name does not resolve" error

I am trying to use the ansible.builtin.url module to fetch the contents of a remote file on my remote server. I am using one of the examples in the official documentation page of the module, but...

no module named configobj ImportError

when I try to run my python programme in Kali Linux I get this error: python myprogramme.py ImportError: no module named configobj so I installed this using these methods sudo apt install...

How to fix ModuleNotFoundError: No module named '_mysql'?

Environment: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-45-generic x86_64) Server version: Apache/2.4.29 (Ubuntu) Python 3.7.5 Flask 1.1.2 Werkzeug 1.0.1 We deployed a flask application on our VPS...