Error while installing Python-saml package in windows - python

I would like to use python-saml for sso integration with flask web app. while I am trying to install python-saml package using pip install python-saml, I am getting the below error message.
(myvenv) C:\Users\sekar>pip install python3-saml==1.9.0
Collecting python3-saml==1.9.0
Using cached python3_saml-1.9.0-py3-none-any.whl (72 kB)
Collecting xmlsec>=0.6.0
Using cached xmlsec-1.3.3.tar.gz (29 kB)
Building wheels for collected packages: xmlsec
Building wheel for xmlsec (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\sekar\AppData\Local\conda\conda\envs\myvenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"'; __file__='"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\sekar\AppData\Local\Temp\16\pip-wheel-39e4ydgb'
cwd: C:\Users\sekar\AppData\Local\Temp\16\pip-install-9x0le85b\xmlsec\
Complete output (5 lines):
running bdist_wheel
running build
running build_ext
error: HTTP Error 404: The specified blob does not exist.
Retrieving "https://ci.appveyor.com/api/buildjobs/hij3a6776pdv2007/artifacts/libxml2-2.9.4.win64.zip" to "build/extra\libxml2-2.9.4.win64.zip"
----------------------------------------
ERROR: Failed building wheel for xmlsec
Running setup.py clean for xmlsec
Failed to build xmlsec
Installing collected packages: xmlsec, python3-saml
Running setup.py install for xmlsec ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\sekar\AppData\Local\conda\conda\envs\myvenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"'; __file__='"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sekar\AppData\Local\Temp\16\pip-record-l_q25m6k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\sekar\AppData\Local\conda\conda\envs\myvenv\Include\xmlsec'
cwd: C:\Users\sekar\AppData\Local\Temp\16\pip-install-9x0le85b\xmlsec\
Complete output (5 lines):
running install
running build
running build_ext
error: HTTP Error 404: The specified blob does not exist.
Retrieving "https://ci.appveyor.com/api/buildjobs/hij3a6776pdv2007/artifacts/libxml2-2.9.4.win64.zip" to "build/extra\libxml2-2.9.4.win64.zip"
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\sekar\AppData\Local\conda\conda\envs\myvenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"'; __file__='"'"'C:\\Users\\sekar\\AppData\\Local\\Temp\\16\\pip-install-9x0le85b\\xmlsec\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sekar\AppData\Local\Temp\16\pip-record-l_q25m6k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\sekar\AppData\Local\conda\conda\envs\myvenv\Include\xmlsec' Check the logs for full command output.
I tried with conda install python-saml, same error also they stopped this package 2 years before. even I tried python3-saml
the core issue is in xmlsec package..
is there any conda channels or PYPI provide this package?

Update
Since version 1.3.7, prebuilt wheels of xmlsec for Windows are published on PyPI, so you shouldn't experience this issue anymore.
Original answer
I have rebuilt xmlsec windows wheels and uploaded them to the releases page of my fork. To install, first install xmlsec passing the additional PyPI index:
$ pip install xmlsec --extra-index-url=https://hoefling.io/pypi
The added index just proxies install request to Github releases.
Now install python3-saml:
$ pip install python3-saml
(Alternative) Selecting the dist manually
You can manually find the wheel matching your Python installation from the releases page and install it using a direct link, e.g.
$ python -c "from pip._internal.pep425tags import get_supported; print(*get_supported()[0], sep='-')"
cp37-cp37m-win_amd64
# the matching wheel is thus xmlsec-1.3.6.post1-cp37-cp37m-win_amd64.whl
$ pip install https://github.com/hoefling/xmlsec/releases/download/1.3.6.post1/xmlsec-1.3.6.post1-cp37-cp37m-win_amd64.whl
(Optional) Verify xmlsec works by invoking the tests
I have executed tests against all built wheels (check out this job log on Appveyor), but you can also run the tests locally to verify xmlsec installation is working:
$ git clone https://github.com/mehcode/python-xmlsec.git && cd python-xmlsec
$ pip install pytest
$ pytest tests/

Never used python-saml here... However, while searching this error, I found these GitHub issues: Issue 1 and Issue 2
Both of them talk about a problem with dm.xmlsec.binding.
Best,
Felipe

Related

Google colab Glove_Python pip install not working

I am using
! pip install glove_python
I'm getting this error message:
Collecting glove_python
Downloading https://files.pythonhosted.org/packages/3e/79/7e7e548dd9dcb741935d031117f4bed133276c2a047aadad42f1552d1771/glove_python-0.1.0.tar.gz (263kB)
|████████████████████████████████| 266kB 16.9MB/s
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from glove_python) (1.19.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from glove_python) (1.4.1)
Building wheels for collected packages: glove-python
Building wheel for glove-python (setup.py) ... error
**ERROR: Failed building wheel for glove-python**
Running setup.py clean for glove-python
**ERROR: Failed cleaning build dir for glove-python**
Failed to build glove-python
Installing collected packages: glove-python
Running setup.py install for glove-python ... error
**ERROR: Command errored out with exit status 1**: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nypxp28t/glove-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nypxp28t/glove-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-cnn32mbr/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
As suggested below I tried
! python -m pip install glove_python --verbose
Which outputs the following recurring error with different members:
has no member named ‘exc_{member}’; did you mean ‘curexc_value’?
And ends with:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Running setup.py install for glove-python ... error
Cleaning up...
Removing source in /tmp/pip-install-ru3hxbde/glove-python
Removed build tracker '/tmp/pip-req-tracker-ps3qzi71'
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ru3hxbde/glove-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ru3hxbde/glove-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ywzvlm5m/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/install.py", line 455, in run
use_user_site=options.use_user_site,
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/req/__init__.py", line 62, in install_given_reqs
**kwargs
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/req/req_install.py", line 888, in install
cwd=self.unpacked_source_directory,
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/subprocess.py", line 275, in runner
spinner=spinner,
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ru3hxbde/glove-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ru3hxbde/glove-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ywzvlm5m/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Trying pip install glove-python-binary is successful but when I import it I get the following error:
import glove-python-binary
^
SyntaxError: invalid syntax
Seems like glove_python package is very old, last relese of it on PIP was in 2016. And it has only sources there, so should be compiled by C/C++ compiler, which is usually problematic everywhere (needs manual installing correct compiler and all dependencies).
Looks like updated version is glove-python-binary it dates to 2020. Try installing it through ! pip install glove-python-binary.
According to pypi site glove-python-binary needs Python of versions 3.6 or 3.7 or 3.8, smaller or bigger version of Python will not probably work.
When you have any problem or error in pip try adding --verbose to pip command line, this will print you a lot of details about reasons of pip failure.
Also as #GameDev said sometimes you have to also try running command ! python -m pip install PACKAGE instead of ! pip install PACKAGE, to install any Python pip PACKAGE, because first command uses exactly python that you use to run the script, while second may use pip from other Python installation, not from Python installation that is used to run actual script later.
In the google-colab just write:
!pip install glove-python-binary
And for using, do this:
import glove
For example:
from glove import Glove
from glove import Corpus
This worked for me!

I am using python 3.9 and I can't figure out how to install pyaudio in my Windows 10

Currently using Visual Studio Code
Tried using pip install pyaudio but it simply gave an error like:
PS C:\Users\NIKHIL> pip install pyaudio
Defaulting to user installation because normal site-packages is
not writeable
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\NIKHIL\AppData\Local\Temp\pip-wheel-cbxwzcr9'
cwd: C:\Users\NIKHIL\AppData\Local\Temp\pip-install-yo0mmwlt\pyaudio_d4ca14ee2a5246debede93cab086f909\
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\NIKHIL\AppData\Local\Temp\pip-record-u900rrya\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\NIKHIL\AppData\Roaming\Python\Python39\Include\pyaudio'
cwd: C:\Users\NIKHIL\AppData\Local\Temp\pip-install-yo0mmwlt\pyaudio_d4ca14ee2a5246debede93cab086f909\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"'; __file__='"'"'C:\\Users\\NIKHIL\\AppData\\Local\\Temp\\pip-install-yo0mmwlt\\pyaudio_d4ca14ee2a5246debede93cab086f909\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\NIKHIL\AppData\Local\Temp\pip-record-u900rrya\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\NIKHIL\AppData\Roaming\Python\Python39\Include\pyaudio' Check the logs for full command
output.
please suggest a way out of this
You can also try to install it with the .whl file.
Find your Python version
64 or 32 bit?
Find the appropriate file here
For example, my Python version is the 3.9 64bit I would download the "PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl" file.
Open your CMD and go to the folder where the file is. Ex.: cd C:\Users\Miguel\Downloads
Install it: pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
Hope it helped!
This answer from a StackOverflow question might help, as I had the same problem and it solved the problem for me.
First run your IDE or CMD as Administrator and run the following:
pip install pipwin
pipwin install pyaudio
Try these commands below:
pip install pipwin
pipwin install pyaudio
Looking at the error message it seems you require Visual C++ build tools.
The link to download that is also given within that error message.
In case the link does not work,You can download it here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
You can try this and incase errors still persist, reply to this thread.
Upvote if it helped!
PyAudio just doesn't have the wheels for Python 3.7 or higher. If you want to use PyAudio, it is best to download python version 3.6.9 here.
I wish you the best
-arivvid27
I tried with Python 3.9 and didn´t work, so I installed Python 3.8 too and pyaudio worked fine (I've double checked and downloaded both versions of pyaudio on https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio).
I still don't know why it doesn't work on 3.9.
Did it work for someone on python 3.9? If yes, let me know what did you do. Thanks!
you should use python 3.6.9 or lower

Cannot Install AutoItLibrary for Robot Framework on Windows 10

I cannot install the autoitlibrary for robot framework on windows 10, when I try the commands below:
pip install robotframework-autoitlibrary
OR
pip install -U robotframework-autoitlibrary --no-cache-dir --pre
It begins the installation, but then it gives me the error:
C:\WINDOWS\system32>pip install -U robotframework-autoitlibrary --no-cache-dir --pre
Collecting robotframework-autoitlibrary
Downloading robotframework-autoitlibrary-1.2.5.tar.gz (696 kB)
|████████████████████████████████| 696 kB 6.8 MB/s
Requirement already satisfied, skipping upgrade: pywin32 in c:\users\guilherme\appdata\roaming\python\python38\site-packages (from robotframework-autoitlibrary) (227)
Requirement already satisfied, skipping upgrade: pillow in c:\users\guilherme\appdata\local\programs\python\python38\lib\site-packages (from robotframework-autoitlibrary) (7.1.2)
Using legacy setup.py install for robotframework-autoitlibrary, since package wheel is not installed.
Installing collected packages: robotframework-autoitlibrary
Running setup.py install for robotframework-autoitlibrary ... error
ERROR: Command errored out with exit status 2:
command: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary'
cwd: C:\Users\Guilherme\AppData\Local\Temp\pip-install-cuz2ut7_\robotframework-autoitlibrary\
Complete output (3 lines):
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S c:\users\guilherme\appdata\local\programs\python\python38\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
AutoItLibrary requires win32com. See http://starship.python.net/crew/mhammond/win32/.
**----------------------------------------**
ERROR: Command errored out with exit status 2: 'c:\users\guilherme\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guilherme\\AppData\\Local\\Temp\\pip-install-cuz2ut7_\\robotframework-autoitlibrary\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Guilherme\AppData\Local\Temp\pip-record-p7h0dafs\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\guilherme\appdata\local\programs\python\python38\Include\robotframework-autoitlibrary' Check the logs for full command output.
Details:
I've already tried running the prompt as Admin as you can see above, but didn't work too.
My python is the last version: Python 3.8.3 (64bit)
I've already have installed robot framework: Robot Framework 3.2.1 (Python 3.8.3 on win32)
Can someone help me fix this?!
Worked for me when I opened the command window as administrator.
I fixed this problem in my PC using pip install --upgrade robotframework. If this didn't work for you, try unistalling python and installing it again in Windows root filesystem: C:\.

How to fix "error: option --single-version-externally-managed not recognized"

I'll note up front that I've seen the related thread, and I've tried installing everything recommended: setuptools, wheel, egg, but I'm still getting the same error.
I'm running into the error while trying to install Picard:
C:\>pip install picard
Collecting picard
Using cached https://files.pythonhosted.org/packages/e8/ec/e76d4a84d37e6bd93789bf8f7a15f9e63f94cbc8b79607a2152b3fcc313f/picard-2.1.tar.gz
Requirement already satisfied: PyQt5 in c:\program files\python37\lib\site-packages (from picard) (5.12.2)
Requirement already satisfied: mutagen in c:\program files\python37\lib\site-packages (from picard) (1.42.0)
Requirement already satisfied: PyQt5_sip<13,>=4.19.14 in c:\program files\python37\lib\site-packages (from PyQt5->picard) (4.19.17)
Building wheels for collected packages: picard
Building wheel for picard (setup.py) ... error
ERROR: Complete output from command 'c:\program files\python37\python.exe' -u-c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\bdb484\\AppData\\Local\\Temp\\pip-install-lc47_c7l\\picard\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\bdb484\AppData\Local\Temp\pip-wheel-7ktnx238' --python-tag cp37:
ERROR: running bdist_wheel
running build
generating scripts/picard from scripts/picard.in
error: [Errno 2] No such file or directory: 'installer/picard-setup.nsi.in'
----------------------------------------
ERROR: Failed building wheel for picard
Running setup.py clean for picard
Failed to build picard
Installing collected packages: picard
Running setup.py install for picard ... error
ERROR: Complete output from command 'c:\program files\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\bdb484\\AppData\\Local\\Temp\\pip-install-lc47_c7l\\picard\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\bdb484\AppData\Local\Temp\pip-record-wwek3m3r\install-record.txt' --single-version-externally-managed --compile:
ERROR: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command "'c:\program files\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\bdb484\\AppData\\Local\\Temp\\pip-install-lc47_c7l\\picard\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\bdb484\AppData\Local\Temp\pip-record-wwek3m3r\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\bdb484\AppData\Local\Temp\pip-install-lc47_c7l\picard\
I've been googling around for a while without luck.
Any ideas?
The problem is that the windows-specific part of setup.py at https://github.com/metabrainz/picard/blob/d141f019c2b88ab6a3a21c04110dad0522e36616/setup.py#L225-L236, in particular
generate_file('installer/picard-setup.nsi.in', 'installer/picard-setup.nsi', args)
tries to generate installer/picard-setup.nsi from installer/picard-setup.nsi.in. However, the source tarball on PyPI doesn't even include the installer directory:
↪ tar tf picard-2.1.tar.gz | grep installer
↪
We've worked on the source distributions a bit last year (https://tickets.metabrainz.org/browse/PICARD-1373), but so far have only tested them on Linux.
If you want to use Picard on Windows, use the installer from https://picard.musicbrainz.org/downloads/.
error: [Errno 2] No such file or directory: 'installer/picard-setup.nsi.in'
This is a bug in the setup.py: it tries to generate a file without creating the directory installer first. Please report the bug to the authors. Try to install from the repository:
pip install git+https://github.com/metabrainz/picard.git#egg=picard
error: option --single-version-externally-managed not recognized
This is an option for python setup.py install. Try to run python setup.py install --help with any setup.py and see if it has
--single-version-externally-managed used by system package builders to
create 'flat' eggs
near the end.

Can't install dev-setup of hyperledger indy-node

I am trying to install dev-setup on my system using this link
https://github.com/hyperledger/indy-node/blob/master/docs/source/setup-dev.md
as guide i followed all steps now while executing command pip install -e .[tests] I getting error: failed to build wheels for leveldb, ujson, python-rocksdb, sha3, psutil, orderedset..
I tried python3 setup.py bdist_wheel this command executes but then i am not able to run next command
Building wheels for collected packages: leveldb, ujson, python-rocksdb, sha3, psutil, orderedset
Building wheel for leveldb (setup.py) ... error
ERROR: Complete output from command /home/richa/test/bin/python3.5 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-cwvzh10g/leveldb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ufgtvm7j --python-tag cp35:
ERROR: running bdist_wheel
Steps that are easy to miss in that guide include:
Activating the virtual environment with source activate
Installing wheel with pip install wheel

Categories