Alright so what I've been trying to do the past hour is install the pywintypes lib and searched up that it was pypiwin32 instead but it doesn't work it fails to build additionally tried installing it manually by downloading the source and running setup.py but got same err: I get this error and I have python 3.10
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Using cached pypiwin32-219.zip (4.8 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Rasmus\AppData\Local\Programs\Python\Python310\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Rasmus\\AppData\\Local\\Temp\\pip-install-3z4zmi2y\\pypiwin32_ec886c51d7334f269d55dee9cd57e04b\\setup.py'"'"'; __file__='"'"'C:\\Users\\Rasmus\\AppData\\Local\\Temp\\pip-install-3z4zmi2y\\pypiwin32_ec886c51d7334f269d55dee9cd57e04b\\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 'C:\Users\Rasmus\AppData\Local\Temp\pip-pip-egg-info-6dg0frr7'
cwd: C:\Users\Rasmus\AppData\Local\Temp\pip-install-3z4zmi2y\pypiwin32_ec886c51d7334f269d55dee9cd57e04b\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Rasmus\AppData\Local\Temp\pip-install-3z4zmi2y\pypiwin32_ec886c51d7334f269d55dee9cd57e04b\setup.py", line 121
print "Building pywin32", pywin32_version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip#sha256=06d478295c89dbdd4187e1ac099bb8eab93c29e298bded4e2fbc77009287fa44 (from https://pypi.org/simple/pypiwin32/). 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 pywin32>=223 (from pypiwin32) (from versions: none)
ERROR: No matching distribution found for pywin32>=223
the only solution I can see is to downgrade from python 3.10 down to 3.9
pywin32 version 302 (NOT pypiwin32, which looks like a mistake from 2018) was uploaded to PyPi on October 10, 2021, and states in the change log:
Support for Python 10, dropped support for Python 3.5 (3.5 security support
ended 13 Sep 2020)
Demo (using PyLauncher to update my 3.10 install):
C:\>py -3.10 -m pip install pywin32
Collecting pywin32
Downloading pywin32-302-cp310-cp310-win_amd64.whl (9.2 MB)
|████████████████████████████████| 9.2 MB 6.8 MB/s
Installing collected packages: pywin32
Successfully installed pywin32-302
Make sure to run the Scripts\pywin32_postinstall.py from an administrator command prompt as well to register it properly. Make sure it runs in the context of the 3.10 installation as well (again using PyLauncher):
C:\Python310\Scripts>py -3.10 pywin32_postinstall.py -install
Parsed arguments are: Namespace(install=True, remove=False, wait=None, silent=False, quiet=False, destination='C:\\Python310\\Lib\\site-packages')
Copied pythoncom310.dll to C:\windows\system32\pythoncom310.dll
Copied pywintypes310.dll to C:\windows\system32\pywintypes310.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\3.10\Help[None]=None
-> Software\Python\PythonCore\3.10\Help\Pythonwin Reference[None]='C:\\Python310\\Lib\\site-packages\\PyWin32.chm'
Registered help file
Pythonwin has been registered in context menu
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.
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.
This question already has an answer here:
Installing the pypiwin32 module
(1 answer)
Closed 10 months ago.
I have tried installing win32com on python version 3.8.8 using several methods finally settling on
!python -m pip install pypiwin32
However I am getting this error.
Collecting pypiwin32
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Downloading pypiwin32-219.zip (4.8 MB)
|████████████████████████████████| 4.8 MB 3.2 MB/s eta 0:00:01
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/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-pip-egg-info-eb1keprl
cwd: /tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip#sha256=06d478295c89dbdd4187e1ac099bb8eab93c29e298bded4e2fbc77009287fa44 (from https://pypi.org/simple/pypiwin32/). 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 pywin32>=223 (from pypiwin32)
ERROR: No matching distribution found for pywin32>=223
Requesting assistance.
Thanks and Regards,
Yadhunandan
Last time I used win32com I installed the package pywin32, not pypiwin32. I am not sure how well pypiwin32 is maintained, as there is no project description on pypi and it only has 3 Releases, the last being in 2018 (https://pypi.org/project/pypiwin32/).
So maybe try this one:
https://pypi.org/project/pywin32/
version pip 21.2.4
python 3.6
The command:
pip install -r requirements.txt
The content of my requirements.txt:
mongoengine==0.19.1
numpy==1.16.2
pylint
pandas==1.1.5
fawkes
The command is failing with this error
ERROR: Command errored out with exit status 1:
command: /Users/*/Desktop/ml/*/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/setup.py'"'"'; __file__='"'"'/private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/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 /private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-pip-egg-info-97994d6e
cwd: /private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/
Complete output (1 lines):
error in mongoengine setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://*/pypi/packages/mongoengine-0.19.1.tar.gz#md5=68e613009f6466239158821a102ac084 (from https://*/pypi/simple/mongoengine/). 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 mongoengine==0.19.1 (from versions: 0.15.0, 0.19.1)
ERROR: No matching distribution found for mongoengine==0.19.1
It looks like setuptools>=58 breaks support for use_2to3:
setuptools changelog for v58
So you should update setuptools to setuptools<58 or avoid using packages with use_2to3 in the setup parameters.
I was having the same problem, pip==19.3.1
I install setuptools==58It worked for me. pip install setuptools==58. The error coming from setuptools==69 that previously run on my device. and Finally saved me setuptools version 58 for this error.
This worked for me.
pip install --upgrade pip setuptools==57.5.0
"pip install setuptools==58" worked for me. The setuptools version was 59 when I upgraded ubuntu to 22.04 and its python 3.10. I started a clean virtual environment for an existings django project. It had just two packages:
`pip list
Package Version
pip 22.0.2
setuptools 59.6.0`
Then I downgrade the setuptools to 58 as pip install setuptools==58.0.0. After that the pip install -r requirements.txt has not such error above.
Upgrading MongoEngine to >= 0.20 would also fix the problem as Python2 support (hence use_2to3) was dropped in 0.20
I'm working on Windows 11 and these solutions didn't work. I installed pybluez2 instead. Your python version >= 3.9 on Windows.
pip install pybluez2
I'm trying to run rasa on an ubuntu system (recently updated to latest LTS version). I made a virtual environment with anaconda, installed pip and then rasa as shown in the documentation. However, I keep getting rasa: command not found when I tried running 'rasa init'
I followed the steps given on other similiar post:
o I uninstalled and reinstalled rasa
o My first installation was with pip3, the second with pip
o The second time, I opened the directory I wanted to work in, using cd, and installed there, and also ran 'pip3 install -U pip'
o I tried running 'rasa init --no-prompt' instead of 'rasa init' and got the same error
o I tried 'pip show rasa' ,and got
Name: rasa
Version: 0.0.5
...
o I tried 'pip list command' and rasa 0.0.5 was visible there
My installation came as successful, but I had this error:
INFO: pip is looking at multiple versions of rasa to determine which version is compatible with other requirements. This could take a while.
Collecting rasa
Using cached rasa-0.1.0-py3-none-any.whl (6.1 kB)
Using cached rasa-0.0.5-py3-none-any.whl
Using cached rasa-0.0.4.tar.gz (5.0 kB)
Using cached rasa-0.0.3.tar.gz (4.7 kB)
ERROR: Command errored out with exit status 1:
command: /home/anaconda3/envs/rasa-env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nwwpljd_/rasa_c501d56996fa4242826f449fb9efb8bc/setup.py'"'"'; file='"'"'/tmp/pip-install-nwwpljd_/rasa_c501d56996fa4242826f449fb9efb8bc/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-pip-egg-info-oo59li03
cwd: /tmp/pip-install-nwwpljd_/rasa_c501d56996fa4242826f449fb9efb8bc/
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-nwwpljd_/rasa_c501d56996fa4242826f449fb9efb8bc/setup.py", line 14, in
with open('HISTORY.rst', 'r', 'utf-8') as f:
File "/home/anaconda3/envs/rasa-env/lib/python3.9/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'HISTORY.rst'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/77/56/5d44415d54043fb441b910bf86fa36bbb3b5565a507ba4ea933117cf109f/rasa-0.0.3.tar.gz#sha256=409e502bc20a29db848b68766decacad15a9cbeb68d1afd90add9945945c9048 (from https://pypi.org/simple/rasa/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached rasa-0.0.2.tar.gz (3.9 kB)
Using cached rasa-0.0.1.tar.gz (1.6 kB)*
But after that, finally, it came as installation successful.
Please help me
Edit: - I have found out on the rasa forum that the problem was that my version of python was incompatible with Rasa. Problem solved!
This error raised while installing geopandas in vs code. I've looking for its solution on the web, but none of them really explain what happened and how to solve it..
Collecting geopandas
Downloading geopandas-0.7.0-py2.py3-none-any.whl (928 kB)
|████████████████████████████████| 928 kB 726 kB/s
Collecting shapely
Downloading Shapely-1.7.0-cp38-cp38-win32.whl (895 kB)
|████████████████████████████████| 895 kB 437 kB/s
Requirement already satisfied: pandas>=0.23.0 in c:\users\mayank\appdata\local\programs\python\python38-32\lib\site-packages (from geopandas) (1.0.3)
Collecting fiona
Downloading Fiona-1.8.13.post1.tar.gz (1.2 MB)
|████████████████████████████████| 1.2 MB 506 kB/s
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mayank\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mayank\\AppData\\Local\\Temp\\pip-install-1le2w4at\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\mayank\\AppData\\Local\\Temp\\pip-install-1le2w4at\\fiona\\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\mayank\AppData\Local\Temp\pip-pip-egg-info-e_ca92eu'
cwd: C:\Users\mayank\AppData\Local\Temp\pip-install-1le2w4at\fiona\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
First you need to do is to install gdal package. I install it by pip with:
pip install https://download.lfd.uci.edu/pythonlibs/w4tscw6k/GDAL-3.2.2-cp39-cp39-win_amd64.whl
Tips: Do not install it directly through the normal pip usage: pip install gdal . You can find a compatible version of gdal for your python3.x Here.
After you have installed gdal, you can do that for fiano, Eg:
pip install https://download.lfd.uci.edu/pythonlibs/w4tscw6k/Fiona-1.8.18-cp39-cp39-win_amd64.whl
Finally, all of them can be installed successfully...
Fiona which is a dependency of geopandas requires a GDAL instance. When installing it needs looks to the PATH environment variable to find the GDAL location. If the PATH doesn't have a reference it fails to install. I found a work around is to grab the GDAL and fiona whl files and install from a local copy.