Python Error No Module Named Configparser
Contents |
in CentOS. Below is importerror: no module named 'configparser' mysql the complete error message: $packstack --gen-answer-file=answers.txt Traceback
Install Configparser Python
(most recent call last): File "/usr/local/bin/packstack", line 4, in
Mysql-python Python 3
error says, the packstack command is not able to load one of the Python module named ConfigParser. It means, you have to install ConfigParser module. I suggest you to install Python PIP, which allows you to install modules quite pip install configparser invalid syntax easily. Once you have PIP installed, below is the command to install ConfigParser module. $pip install configparser Collecting configparser Using cached configparser-3.3.0r2.tar.gz Building wheels for collected packages: configparser Running setup.py bdist_wheel for configparser Stored in directory: /root/.cache/pip/wheels/1a/3e/f9/d34006ad6b1edfe5006aa704f5ee305c553344a7a6d8550c29 Successfully built configparser Installing collected packages: configparser Successfully installed configparser-3.3.0.post2 Note: In case, if pip install configparser failed with an error as shown below: $pip install ConfigParser Collecting ConfigParser Downloading configparser-3.3.0r2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "
Sign in Pricing Blog Support Search GitHub This repository Watch 159 Star 2,149
Importerror: No Module Named 'configparser' Mac
Fork 518 pyinstaller/pyinstaller Code Issues 286 Pull requests 28
Configparser Python 3 Install
Projects 0 Wiki Pulse Graphs New issue "import configparser" broke load ConfigParser #1871 Open ombschervister oserror: mysql_config not found opened this Issue Mar 10, 2016 · 14 comments Projects None yet Labels support Milestone No milestone Assignees No one assigned https://techglimpse.com/fix-no-module-named-import-error/ 5 participants ombschervister commented Mar 10, 2016 I’ve found an apparent bug. Downloaded winpython 2.7.10.104, installed with pip the following libraries: pip install pyqode.core pip install pyqode.qt Then if I try to use collect_submodules(‘PyQt4’) in the spec-file, ConfigParser import is not working Error Messages: In the master branch: Traceback https://github.com/pyinstaller/pyinstaller/issues/1871 (most recent call last): File "
Sign in Pricing Blog Support Search GitHub This repository Watch 65 Star 472 Fork 142 clinton-hall/nzbToMedia Code Issues 223 Pull requests 0 Projects 0 Wiki Pulse https://github.com/clinton-hall/nzbToMedia/issues/266 Graphs New issue ImportError: No module named 'ConfigParser' #266 Closed Jorman opened this Issue Feb 17, 2014 · 25 comments Projects None yet Labels External/Dependency Issue question Milestone https://www.pythonanywhere.com/forums/topic/1760/ No milestone Assignees No one assigned 4 participants Jorman commented Feb 17, 2014 Hi man! I'm trying to setup my new nas, with sickbeard, transmission and some stuff, but when no module I transmission call nzbtomedia I got this error. I use arch on armv5 platform I think to know where is the issue, on python3 ConfigParser is renamed on configparser, but I also use nzbget, that use python. http://docs.python.org/2/library/configparser.html So I can't uninstall python because is a dependency for nzbget There is a way to force nzbtomedia to use python2 or 2.7 instead no module named python? Or to import configparser or ConfigParser depending on system? I don't know if is the right solution, maybe the solution is more simple, but I can't find it Owner clinton-hall commented Feb 17, 2014 What NAS brand? this has recently cropped up in QNAP... With multiple versions of python, you can force nzbget to use one version by using absolute path etc, then set the default python to point to python2.7 etc... But does nzbget actually need another version of python? On all my NAS nzbget uses python for postprocess scripts, and these all use python2.7... First you need to find out what python is your default which python Then test all other python installs (e.g /usr/local/python2.7) to see if they have ConfigParser You can test by /usr/local/bin/python2.7 Import ConfigParser Then you can symlink the default python to the working version... ln -sf /usr/local/python2.7 /usr/bin/python The other way is just to edit the first line of each of my scripts... From #!/usr/bin/env python To #/usr/local/python2.7 The problem is this stuffs up git pull... You need to stash, pull, revert each time. clinton-hal
to python 3.4 but I'm running into some problems with getting MySQL working... First of all I'm using a virtualenv for all the python related files and I'm trying to get this to work with Django 1.7 First I had to make a few changes to the WSGI file to get it to work with python 3: import os import sys activate_this = '/home/janis/.virtualenvs/footbagsite/bin/activate_this.py' with open(activate_this) as f: code = compile(f.read(), activate_this, 'exec') exec(code, dict(__file__=activate_this)) ## assuming your django settings file is at '/home/janis/dev-site/footbag_site/settings.py' path = '/home/janis/footbagsite/dev-site/' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'footbag_site.settings' from django.core.wsgi import get_wsgi_application application = get_wsgi_application() First I started with what was suggested at the documentation here: https://www.pythonanywhere.com/wiki/UsingMySQL I tried installing the mysql connector with: pip3.4 install https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.0.2.tar.gz Along with the associated changes to the Django settings: 'ENGINE': 'mysql.connector.django',#backend from mysql. However this didn't work as the mysql module was not being imported successfully, I would post the stacktrace but the error logging is no longer working for me. I also tried using pip install mysqlclient but had problems with this. I get a 500 server error but nothing appears in the logs for that error. From that point onwards I'm getting 500 server errors but nothing is appearing in the logs anymore. I'm not sure how to proceed from here, any advice would be appreciated. janis | 30 posts | Nov. 8, 2014, 10:02 p.m. | permalink Also the Django documentation suggests that you install MySQL-python. The problem with this is that when you try pip3.4 install MySQL-python you get an error instaling because it can't find ConfigParser: File "/home/janis/.virtualenvs/footbagsite/build/MySQL-python/setup.py", line 13, in