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.
Related
I have been trying to pip install mariadb python connector on replit, but it is showing the following error. Same thing happens on a private ide on my windows machine,
Using cached https://package-proxy.replit.com/pypi/packages/d9/70/d5048fa20d2cd986181094cc35ccae284f36e80fe61e2821b79d281b03a2/mariadb-0.9.52.tar.gz (72 kB) ERROR: Command errored out with exit status 1: command: /home/runner/mariadbtech/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/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-u63vb67x cwd: /tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/ Complete output (12 lines): /nix/store/bm7jr70d9ghn5cczb3q0w90apsm05p54-bash-5.1-p8/bin/sh: line 1: mariadb_config: command not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/setup.py", line 24, in <module> cfg = get_config(options) File "/tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/mariadb_posix.py", line 49, in get_config cc_version = mariadb_config(config_prg, "cc_version") File "/tmp/pip-install-prparsb3/mariadb_2ca8becd72fb47d8909e643e9dfd429b/mariadb_posix.py", line 26, in mariadb_config raise EnvironmentError( OSError: mariadb_config not found. Please make sure, that MariaDB Connector/C is installed on your system, edit the configuration file 'site.cfg' and set the 'mariadb_config' option, which should point to the mariadb_config utility. ---------------------------------------- WARNING: Discarding https://package-proxy.replit.com/pypi/packages/d9/70/d5048fa20d2cd986181094cc35ccae284f36e80fe61e2821b79d281b03a2/mariadb-0.9.52.tar.gz#sha256=554e7067ea68430fb7c3b4df1be7c9f2ff3ab7bf806c2d9076f959645e7a96de (from https://package-proxy.replit.com/pypi/simple/mariadb/) (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 mariadb (from versions: 0.9.52, 0.9.53, 0.9.54, 0.9.55, 0.9.56, 0.9.57, 0.9.58, 0.9.59, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.1.0a1, 1.1.0b1, 1.1.0b2, 1.1.0rc1) ERROR: No matching distribution found for mariadb
I also tried downloading the c and python connectors from web and manually importing into folder, then it shows the error, cant find attribute connect or attribute connection depending on what I try to use
The solution is in the message.
Please make sure, that MariaDB Connector/C is installed on your system.
Either set the environment variable MARIADB_CONFIG or edit the configuration
file 'site.cfg' and set the 'mariadb_config option, which should point
to the mariadb_config utility.
The MariaDB Download website at <https://downloads.mariadb.com/Connectors/c/>
provides latest stable releease of Connector/C.
From this answer, you need to install libmariadb3 and libmariadb-dev. However, I do not think you can use apt-get install on replit environemnt (according to this forum post).
You are going to need a local development environment if you want to proceed further.
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.
i am getting the following error when i run the command pip install -e geonode. I am in the process of installing geonode. I am using window 10.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\eidulameen.sh\Documents\geonode_env\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\setup.py'"'"'; __file__='"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\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\eidulameen.sh\AppData\Local\Temp\pip-pip-egg-info-71v4l6zx'
cwd: C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz#sha256=faa85e053c0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869 (from https://pypi.org/simple/uwsgi/). 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 uWSGI==2.0.19.1 (from geonode)
ERROR: No matching distribution found for uWSGI==2.0.19.1
Any ideas how to solve the issue. Thank you in advance.
The issue is related to these production and tests packages in requirements.txt and setup.cfg as they should run in a Linux environment not Windows.
If you try to comment them, the issue will not appear.
Also, you may try the Cartoview Windows Installer. Cartoview is an extension of GeoNode visualizing the layers and maps in geospatial apps.
I've used Homebrew to install berkeley-db and am now struggling to install the bsddb3 Python package. Any help would be much appreciated.
bash-3.2$ BERKELEYDB_DIR=/usr/local/Cellar/berkeley-db/18.1.32_1 pip install bsddb3
Collecting bsddb3
Using cached bsddb3-6.2.7.tar.gz (437 kB)
ERROR: Command errored out with exit status 1:
command: /Users/ryonlife/.local/share/virtualenvs/peg-scrapy-pegbot-ndRdHu61/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup.py'"'"'; __file__='"'"'/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/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 /private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/pip-egg-info
cwd: /private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup.py", line 42, in <module>
import setup3
File "/private/var/folders/00/9r872f810sz481x6k9pqkldw0000gn/T/pip-install-03k5olgq/bsddb3/setup3.py", line 354, in <module>
db_ver = (int(fullverstr[0]), int(fullverstr[2]))
ValueError: invalid literal for int() with base 10: '.'
Trying to use the Berkeley DB you specified...
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The trick for me was using Homebrew to install berkeley-db#4, rather than berkeley-db.
brew install berkeley-db#4
BERKELEYDB_DIR=$(brew --prefix berkeley-db#4) pip install bsddb3
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 11.1.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.
I am trying to install a pip module called "frhdtools". When I try to install it by running pip3 install frhdtools, I get this error:
Collecting frhdtools
Using cached https://files.pythonhosted.org/packages/ac/8b/026dd40093d1b67f15e30bff9bf8ed64d133c38cee996ba702cf941b6259/frhdtools-0.0.4.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\gabri\\appdata\\local\\temp\\pip-install-gvvrdp\\frhdtools\\setup.py'"'"'; __file__='"'"'c:\\users\\gabri\\appdata\\local\\temp\\pip-install-gvvrdp\\frhdtools\\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: c:\users\gabri\appdata\local\temp\pip-install-gvvrdp\frhdtools\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\gabri\appdata\local\temp\pip-install-gvvrdp\frhdtools\setup.py", line 10, in <module>
version=open(versionFile).read(),
IOError: [Errno 2] No such file or directory: 'VERSION'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I got this error on an Ubuntu installlation about a month back and I ended up having to download the source and just run a file inside it. I am on Windows 10 now, and I was hoping it was just an issue with Ubuntu, but I guess not. I have made sure that it is Python3-compatible (in fact it is python3 only). Any thanks is greatly appreciated, thanks!
Looks like a broken package. It's not including the VERSION file that is required by setup.py. I'm not familiar enough with Python on Windows to tell you how to fix the package, but assuming this is what you're looking for, you can just download it (or clone it) directly from the GitHub page, where the VERSION file is included.