-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pycrypto no longer supported (especially in aarch64-linux-gnu-gcc) #1048
Comments
Is there any solution to this |
this is the closest open issue to the one i have run into while installing , i copied the commands for Linux and most of the setup is fine except for pycrypto build
I have python3 on my VM. |
I have an issue my pycrypto too.
The line 87 on Python.h file is : In the I think the error is related _PyTime_t API. In this link about the lonintrepr.h issue, webknjaz claims
Is it because the project doesn't compile with python 3.11 ? I will try with older versions of python 3. PS : I tried with python3.10 and It works ! I think it's a dependency problem in python >=3.11 |
edit requirements.txt file
sudo pip3 install -r requirements.txt Enjoy!! |
Expected Behaviour
Requirement already satisfied
Actual Behaviour
$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/mitm6-0.3.0-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
Requirement already satisfied: pexpect in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (4.8.0)
Collecting pycrypto (from -r requirements.txt (line 2))
Using cached pycrypto-2.6.1.tar.gz (446 kB)
...
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
....
In file included from /usr/include/python3.11/Python.h:86,
from src/_fastmath.c:31:
/usr/include/python3.11/cpython/pytime.h:208:60: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
208 | PyAPI_FUNC(int) _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts);
| ^~~~~~~~
/usr/include/python3.11/cpython/pytime.h:213:56: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
213 | PyAPI_FUNC(int) _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts);
| ^~~~~~~~
/usr/include/python3.11/cpython/pytime.h:217:63: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration
217 | PyAPI_FUNC(void) _PyTime_AsTimespec_clamp(_PyTime_t t, struct timespec ts);
| ^~~~~~~~
src/_fastmath.c:33:10: fatal error: longintrepr.h: No such file or directory
33 | #include <longintrepr.h> / for conversions */
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycrypto
Running setup.py clean for pycrypto
Failed to build pycrypto
ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects
Version
pycrypto-2.6.1
Set in Kali
Description: Kali GNU/Linux Rolling
Release: 2023.4
Codename: kali-rolling
The text was updated successfully, but these errors were encountered: