Python error when I try to install cloudgenix_config - python

I installed Python3.9.1 and I am trying to run :
pip install cloudgenix_config or pip3 install cloudgenix_config
I keep getting the attached error:
WARNING: Discarding https://files.pythonhosted.org/packages/49/b2/7c7a103c72c049ba6816f8bb29274b3ba5c0e4952c3e779f363940cad499/clo udgenix_config-1.0.0b2.tar.gz#sha256=5fe3101ab46cd7ca3128f914b9bee4afd0da4954f6db7b7da9de2b01380e4967 (from https://pypi.org/simpl e/cloudgenix-config/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached cloudgenix_config-1.0.0b1.tar.gz (57 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z34o7ve8/cloudgenix -config_6817b103e5384c87b5004a215f801528/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z34o7ve8/cloudgenix-config_6817b103e5384c87 b5004a215f801528/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO( '"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code , __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_ajoxfg8
cwd: /tmp/pip-install-z34o7ve8/cloudgenix-config_6817b103e5384c87b5004a215f801528/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 23, in <module>
from setuptools.dist import Distribution
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/usr/lib/python3.9/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/usr/lib/python3.9/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e2/63/bfcf3223c5b7159779d9515dfe60381199b91cb630705b05d80be4f2d4a5/clo udgenix_config-1.0.0b1.tar.gz#sha256=07439d49951b8f5b9254f6098afa2bcb390109d0b30cd2fd2cfab4505b41091b (from https://pypi.org/simpl e/cloudgenix-config/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cloudgenix_config (from versions: 1.0.0b1, 1.0.0b2, 1.0.0b3, 1.0.0b 4, 1.0.0b5, 1.0.0b6, 1.1.0b1, 1.2.0b1, 1.2.0b2, 1.2.0b4, 1.3.0b1, 1.3.0b2, 1.3.0b3, 1.4.0b1, 1.4.0b2, 1.4.0b4, 1.4.0b5, 1.5.0b1)
ERROR: No matching distribution found for cloudgenix_config```

From the PyPI page, it looks like this package only supports Python 3.6 through 3.8. That is the most likely reason you're getting this kind of error. If you really need to use it, I suggest installing 3.8 if you don't already have it on your system.

Related

pygamevideo module not able to import

I am fairly new to python and am trying to import the pygamevideo module, but I keep getting an error message that tells me that there is "No such file or directory: 'requirements.txt'" I pasted the error below. I am using repl.it.
Thanks for any help I get.
pip install pygamevideo
Collecting pygamevideo
Downloading pygamevideo-1.0.0.tar.gz (2.6 kB)
ERROR: Command errored out with exit status 1:
command: /opt/virtualenvs/python3/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j5bka7jd/pygamevideo_676e088740714a8391a075734662c062/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j5bka7jd/pygamevideo_676e088740714a8391a075734662c062/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yoytu39b
cwd: /tmp/pip-install-j5bka7jd/pygamevideo_676e088740714a8391a075734662c062/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-j5bka7jd/pygamevideo_676e088740714a8391a075734662c062/setup.py", line 28, in <module>
install_requires=open("requirements.txt", "r").readlines()
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/6e/b2/63f63e37b75bb1efb7d51b055366a52fad92b765a08ec89cfd7a2b5bd6f0/pygamevideo-1.0.0.tar.gz#sha256=7e64da54a116f6b68fdfa5d72425c59cb6ba95ab59514f018e8e3bcdef73100f (from https://pypi.org/simple/pygamevideo/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pygamevideo (from versions: 1.0.0)
ERROR: No matching distribution found for pygamevideo
WARNING: You are using pip version 21.2.dev0; however, version 21.3.1 is available.
You should consider upgrading via the '/opt/virtualenvs/python3/bin/python3 -m pip install --upgrade pip' command.
Looks like outdated programs. Try upgrading pip and then using pip3 (worked for me), also upgrade python because it just says python3 but for me, it says python3.9. Also, try looking up the module on PyPI. It might help you out.

unable to install MYSQLDB

sudo pip install MySQL-python
Collecting MySQL-python
Using cached MySQL-python-1.2.5.zip (108 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4dq45q4u/MySQL-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4dq45q4u/MySQL-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-4dq45q4u/MySQL-python/pip-egg-info
cwd: /tmp/pip-install-4dq45q4u/MySQL-python/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-4dq45q4u/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-install-4dq45q4u/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
neosoft#neosoft:~$ ^C
Your problem is here:
No module named 'ConfigParser'
That module was renamed configparserin Python 3. So it appears you are trying to install the Python 2 version of mysql in a Python 3 environment.

AttributeErrors when installing various Python packages

I am still a bit new to Python, and when installing various Python packages, I get an error
AttributeError: module 'X' has no attribute 'Y', where X and Y are specific to that package. Most packages install without issues, but some are giving me this error. I have Python 3.8 installed on my Windows 10 64-bit, and, for example, when I try to install this package, I get this error:
C:\WINDOWS\system32>pip install micropython-warnings
Collecting micropython-warnings
Using cached micropython-warnings-0.1.1.tar.gz (630 bytes)
ERROR: Command errored out with exit status 1:
command: 'c:\users\justinas\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Justinas\\AppData\\Local\\Temp\\pip-install-1aq8t49t\\micropython-warnings\\setup.py'"'"'; __file__='"'"'C:\\Users\\Justinas\\AppData\\Local\\Temp\\pip-install-1aq8t49t\\micropython-warnings\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Justinas\AppData\Local\Temp\pip-pip-egg-info-1od9eu5k'
cwd: C:\Users\Justinas\AppData\Local\Temp\pip-install-1aq8t49t\micropython-warnings\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\justinas\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\__init__.py", line 17, in <module>
import setuptools.version
File "c:\users\justinas\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\version.py", line 1, in <module>
import pkg_resources
File "c:\users\justinas\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 3240, in <module>
warnings.filterwarnings("ignore", category=PEP440Warning, append=True)
AttributeError: module 'warnings' has no attribute 'filterwarnings'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
And this is quite common with lots of packages. How exactly do I fix this?

Error installing coco-0.4.0.tar.gz in Python: "Command errored out with exit status 1"

I am trying to install coco-0.4.0.tar.gz in python through pip install, but I'm getting this error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\brene\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"'; __file__='"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\pip-egg-info'
cwd: C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\setup.py", line 9, in <module>
import coco
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\coco.py", line 18, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
coco 0.4.0, the last release was at Jan 5, 2013. The package announces compatibility with Python 2.6 and 2.7.
setup.py imports module coco (from the file coco.py) which imports docopt without installing it.
My resolution is: the package is buggy, old, outdated and abandoned. Not recommended for any use.
If you want to try it anyway — first install docopt:
pip install docopt

Cannot install pattern module in python on windows ubuntu

I am trying to import a python module called pattern in my code. However, when I run:
pip install pattern
I get the following output:
Collecting pattern
Using cached
https://files.pythonhosted.org/packages/1e/07/b0e61b6c818ed4b6145fe01d1c341223aa6cfbc3928538ad1f2b890924a3/Pattern-3.6.0.tar.gz
Collecting future (from pattern)
Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
Collecting backports.csv (from pattern)
Using cached https://files.pythonhosted.org/packages/8e/26/a6bd68f13e0f38fbb643d6e497fc3462be83a0b6c4d43425c78bb51a7291/backports.csv-1.0.7-py2.py3-none-any.whl
Collecting mysqlclient (from pattern)
Using cached https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4Proy9/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4Proy9/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-4Proy9/mysqlclient/
Complete output (12 lines):
sh: 1: mysql_config: not found
sh: 1: mariadb_config: not found
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-4Proy9/mysqlclient/setup.py", line 16, in <module>
metadata, options = get_config()
File "setup_posix.py", line 61, in get_config
libs = mysql_config("libs")
File "setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
EnvironmentError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I already have mysql installed and I've tried installing mysqlclient as well. I am not sure what to do!
To build/install mysqlclient you will need mysqlclient libraries and header files. To determine their location mysqlclient needs to call mysql_config script (which was not found).
You need to install mysql client library. (e.g. libmysqlclient-dev). Also make sure that mysql_config script is in your path.

Categories

Resources