Python unable to pip install Dryscrape - python

I'm trying to install dryscrape python library using pip.
I tried :
pip install dryscrape
But i'm getting error, Traceback :
Collecting dryscrape
Using cached https://files.pythonhosted.org/packages/b5/75/c45f796ec5bc7f98c38b9ae425390ef5f4a76153c8b5af946adb97e7e622/dryscrape-1.0.tar.gz
Collecting webkit_server>=1.0
Using cached https://files.pythonhosted.org/packages/29/f2/f4f454cccde75e95359e91fa58f14497350dc97e58534f9003c77eca3dff/webkit-server-1.0.tar.gz
Requirement already satisfied: lxml in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (4.4.2)
Requirement already satisfied: xvfbwrapper in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from dryscrape) (0.2.9)
Installing collected packages: webkit-server, dryscrape
Running setup.py install for webkit-server ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/
Complete output (4 lines):
running install
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"'; __file__='"'"'/private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-install-ljjlzqoi/webkit-server/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dp/kmfkxb6s6138xklg8y951y140000gn/T/pip-record-gmf2apev/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

I was able to replicate the issue, so I tried googling the following:
Dryscrape no such file or directory found src/webkit_server
and the first result is This StackOverflow Question. I followed the instructions there are it solved the issue.

Related

Cant install PyCurl

i tried to install py curl but i get this error...
pip install pycurl
Collecting pycurl
Using cached pycurl-7.43.0.6.tar.gz (222 kB)
ERROR: Command errored out with exit status 10:
command: 'c:\users\lequi\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lequi\\AppData\\Local\\Temp\\pip-install-vgtj42e_\\pycurl\\setup.py'"'"'; __file__='"'"'C:\\Users\\lequi\\AppData\\Local\\Temp\\pip-install-vgtj42e_\\pycurl\\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\lequi\AppData\Local\Temp\pip-pip-egg-info-y5vol4q7'
cwd: C:\Users\lequi\AppData\Local\Temp\pip-install-vgtj42e_\pycurl\
Complete output (1 lines):
Please specify --curl-dir=/path/to/built/libcurl
----------------------------------------
ERROR: Command errored out with exit status 10: python setup.py egg_info Check the logs for full command output.
Can someone Help?
An answer was already given here. Try downloading and compiling pycurl manually

Error while installing PyTorch using pip - cannot build wheel

I get the following output when I try to run pip3 install pytorch or pip install pytorch
Collecting pytorch
Using cached pytorch-1.0.2.tar.gz (689 bytes)
Building wheels for collected packages: pytorch
Building wheel for pytorch (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/chaitanya/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3v4wd97t/pytorch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3v4wd97t/pytorch/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-8rsdyb8e
cwd: /tmp/pip-install-3v4wd97t/pytorch/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-3v4wd97t/pytorch/setup.py", line 15, in <module>
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
----------------------------------------
ERROR: Failed building wheel for pytorch
Running setup.py clean for pytorch
Failed to build pytorch
Installing collected packages: pytorch
Running setup.py install for pytorch ... error
ERROR: Command errored out with exit status 1:
command: /home/chaitanya/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3v4wd97t/pytorch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3v4wd97t/pytorch/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-eld9j0g4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/chaitanya/.local/include/python3.8/pytorch
cwd: /tmp/pip-install-3v4wd97t/pytorch/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-3v4wd97t/pytorch/setup.py", line 11, in <module>
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
----------------------------------------
ERROR: Command errored out with exit status 1: /home/chaitanya/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3v4wd97t/pytorch/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3v4wd97t/pytorch/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-eld9j0g4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/chaitanya/.local/include/python3.8/pytorch Check the logs for full command output.
I downloaded the matching wheel from here, but am couldn't figure out what to do with it. My Python installation is using anaconda3, if that's needed. What should I do from here? Tips on how I could have resolved this on my own would also be appreciated.
From your error:
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
which tells you what you need to know, instead of
pip install pytorch
it should be
pip install torch
I downloaded the matching wheel from here, but am couldn't figure out what to do with it
Installing .whl files is as easy as
pip install <path to .whl file>
My Python installation is using anaconda3
That is very relevant. You should generally avoid as much as possible to use pip in your conda environment. Instead, you can find the correct conda install command for your setup(cuda version etc.) from pytroch.org, e.g. for cuda 11 it would be
conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch

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:\.

Install Plotly ERROR: Command errored out with exit status 1:

I am new to python notebook and python. I'm currently taking python for data science on LinkedIn learning, and I'm running into problem below and couldn't find the solution.
''''! pip3 install plotly''''
Collecting plotly
Using cached https://files.pythonhosted.org/packages/15/90/918bccb0ca60dc6d126d921e2c67126d75949f5da777e6b18c51fb12603d/plotly-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/3.8/lib/python/site-packages (from plotly) (1.14.0)
Collecting retrying>=1.3.3 (from plotly)
Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Installing collected packages: retrying, plotly
Running setup.py install for retrying ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build/lib
copying retrying.py -> build/lib
running install_lib
copying build/lib/retrying.py -> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
error: could not create '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/retrying.py': Permission denied
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"'; __file__='"'"'/private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-install-br5inttz/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xz/w52k1b9n2935_w13djkjn9pc0000gn/T/pip-record-w8sk2i31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Try:
pip install plotly==4.6.0 --user
https://plotly.com/python/getting-started/

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.

Categories