I can't seem to install scapy_http on my windows machine. I have installed scapy-http (Please note the difference), but it doesn't work.
I always get this error when trying to install scapy_http:
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\desktop\spoofer\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-osyn3x82\\meinheld\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-osyn3x82\\meinheld\\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\USER\AppData\Local\Temp\pip-pip-egg-info-u_2h8iz_'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-osyn3x82\meinheld\
Complete output (2 lines):
Are you really running a posix compliant OS ?
Be posix compliant is mandatory
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
how can I install it with no issues?.
Scapy 2.4.3+ includes scapy-http so there's no need to install it.
See the disclaimer on scapy-http's github page: https://github.com/invernizzi/scapy-http
OBSOLETE!
Scapy 2.4.3+ has native support for HTTP. It has the same syntax as this package (isn't that nice), plus it packs more features!
Please consider this package as obsolete - long live Scapy!
Related
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
I'm new to Python, having coded exclusively in R before this.
I'm trying to install a few modules and keep running into the same problem.
pip install fiona
Collecting fiona
Using cached Fiona-1.8.17.tar.gz (1.3 MB)
Note: you may need to restart the kernel to use updated packages.
ERROR: Command errored out with exit status 1:
command: 'C:\forpython\envs\virtual\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Jonah Foong\\AppData\\Local\\Temp\\pip-install-hshotvxk\\fiona\\setup.py'"'"'; __file__='"'"'C:\\Users\\Jonah Foong\\AppData\\Local\\Temp\\pip-install-hshotvxk\\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\Jonah Foong\AppData\Local\Temp\pip-pip-egg-info-hjs8r8t5'
cwd: C:\Users\Jonah Foong\AppData\Local\Temp\pip-install-hshotvxk\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.
I've trawled the forums and looked for past solutions, each to no avail. I have updated setuptools, but the error still appears. I am also running this in a virtual environment.
What seems to be the problem here? It's very frustrating to face issues installing modules on my first day using Python. Any help is appreciated. Thanks.
PS: I'm running Python 3.8.5 on Spyder, if that helps.
don't let me install the lib machine.
I have installed the new version of python 3.8X 64bit, and I need the machine library but it gives me error status 1 and then status 2.
Why does it happen to me and how do I solve this problem?
HOW INSTALL MACHINE??
Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB)
Collecting pycrypto
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\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\javier.gutierrez\AppData\Local\Temp\pip-wheel-bc38nqbl'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-4736ysct\pycrypto\
Complete output (183 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
.......................
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-4736ysct\\pycrypto\\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\javier.gutierrez\AppData\Local\Temp\pip-record-g2ah2ovt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\javier.gutierrez\appdata\local\programs\python\python38-32\Include\pycrypto' Check the logs for full command output.```
_______________________________________________________________________________
[[[[[[[_You are therefore probably looking for another module, since you tagged micropython, maybe this one? neither does it allow me to install the upython lib._
_I have redrawn all and added the path besides checking that this 64bits_
**thanks for your help**]]]]]]]]
_________________________________________________________________________________
Collecting micropython-machine
Using cached micropython-machine-0.2.tar.gz (1.7 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'"'"'; __file__='"'"'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\_, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\pip-egg-info'
cwd: C:\Users\javier.gutierrez\AppData\Local\Temp\pip-install-d28uahkh\micropython-machine\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\python\lib\tokenize.py", line 392, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\javier.gutierrez\\AppData\\Local\\Temp\\pip-install-d28uahkh\\micropython-machine\\setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
I have installed the new version of python 3.8X 64bit
No, you have python 3.8 32 bit, as your path suggests:
c:\users\javier.gutierrez\appdata\local\programs\python\ python38-32
Also your error suggests that it is trying to build for 32 bit:
creating build\lib.win32
Why does it happen to me
The module you are trying to install has pycrypto as a requirement, which has not been updated since 2014 and is only compatible up to python 3.5. It is also insecure and should not be used.
Looking at the module you are trying to install which is this one, it is pretty much empty, containing only an example setup.py and an example __init__.py.
You are therefore probably looking for another module, since you tagged micropython, maybe this one?
I have tried installing cvxpy (https://www.cvxpy.org/install/) for python. I use Python 3.8 for all my projects and am not to fond of making virtual environments where i use 3.7. Does anyone have a fix for using cvxpy on python 3.8 (I am using windows)?
Thanks!
ERROR: Command errored out with exit status 1:
ommand: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\install-record.txt' --single-version-externally-managed --compile
cwd: AppData\Local\Temp\pip-install-kehvj2di\osqp\
-- Selecting Windows SDK version to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:5 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
The system cannot find the file specified
-- Configuring incomplete, errors occurred!
See also "AppData/Local/Temp/pip-install-kehvj2di/osqp/osqp_sources/build/CMakeFiles/CMakeOutput.log".
The system cannot find the file specified
CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe osqpstatic.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m &&
error: [Errno 2] No such file or directory: 'osqp_sources\\build\\out\\Release\\osqp.lib'
----------------------------------------
ERROR: Command errored out with exit status 1: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\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 'python -m pip install --upgrade pip' command.
Your problem does not seem to be the Python version, but lack of build tools. Install Microsoft Visual Build Tools and make sure they are on the PATH (so that conda can execute MSBuild.exe).
Build Tools installation instructions from cvxpy (in pptx).
When I use
pip3 install pygame
on my built in mac terminal, I expect it to return nothing or maybe something confirming the download, but instead I get
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/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/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/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-record-riycfu31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
That was only the error message itself, the actual output was about 400 lines long, I can post that if need be.
pygame 1.9.6 doesn't provide binary wheels for Python 3.8 for MacOS X; they provides wheels for w32/w64 and they provide wheels for MacOS X for Python 3.4-3.7.
My advice is to use Python 3.7. Python 3.8 is ok but 3rd-party modules are not yet available.