Pcrypto error #1867

Closed
opened 2025-12-29 17:19:55 +01:00 by adam · 1 comment
Owner

Originally created by @Darknet on GitHub (Jul 24, 2018).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation
[ ] Housekeeping

Environment

  • Python version: 3.6
  • NetBox version: actual 2.1.2. future 2.3.6

Description

Hi

i'm trying to upgrade Netbox from Python 2 to Python 3,

My Os is Centos 7.

Trying to do these steps.

https://netbox.readthedocs.io/en/latest/installation/migrating-to-python3/

i receive the error with pcrypto, and these projects is dead, reading informationg i trying to install pcryptodome, install succesfully.

The error

Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-install-78f0moc1/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 /tmp/pip-record-t0cce_nd/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-78f0moc1/pycrypto/

the pip3 freeze command output

asn1crypto==0.24.0
bcrypt==3.1.4
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
coreapi==2.3.3
coreschema==0.0.4
cryptography==2.3
Django==2.0.7
django-cors-headers==2.4.0
django-debug-toolbar==1.9.1
django-filter==2.0.0
django-mptt==0.8.7
django-rest-swagger==2.2.0
django-tables2==1.21.2
djangorestframework==3.8.2
graphviz==0.8.4
gunicorn==19.8.1
idna==2.7
itypes==1.1.0
Jinja2==2.10
lxml==4.2.3
Markdown==2.6.11
MarkupSafe==1.0
natsort==5.3.3
ncclient==0.5.3
netaddr==0.7.18
openapi-codec==1.3.2
paramiko==2.4.1
Pillow==5.2.0
psycopg2==2.7.5
py-gfm==0.1.3
pyasn1==0.4.3
pycparser==2.18
pycryptodome==3.6.4
PyNaCl==1.2.1
pytz==2018.5
requests==2.19.1
simplejson==3.16.0
six==1.11.0
sqlparse==0.2.4
uritemplate==3.0.0
urllib3==1.23

I read the #1819 article.

Tries to remove and install again pcryptodome and execute again

pip3 install -r requirements.txt

with same error

Any idea??

Originally created by @Darknet on GitHub (Jul 24, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [X] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> [ ] Housekeeping <!-- Changes pertaining to the codebase itself --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 3.6 * NetBox version: actual 2.1.2. future 2.3.6 <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description Hi i'm trying to upgrade Netbox from Python 2 to Python 3, My Os is Centos 7. Trying to do these steps. https://netbox.readthedocs.io/en/latest/installation/migrating-to-python3/ i receive the error with pcrypto, and these projects is dead, reading informationg i trying to install pcryptodome, install succesfully. The error Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-78f0moc1/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 /tmp/pip-record-t0cce_nd/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-78f0moc1/pycrypto/ the pip3 freeze command output asn1crypto==0.24.0 bcrypt==3.1.4 certifi==2018.4.16 cffi==1.11.5 chardet==3.0.4 coreapi==2.3.3 coreschema==0.0.4 cryptography==2.3 Django==2.0.7 django-cors-headers==2.4.0 django-debug-toolbar==1.9.1 django-filter==2.0.0 django-mptt==0.8.7 django-rest-swagger==2.2.0 django-tables2==1.21.2 djangorestframework==3.8.2 graphviz==0.8.4 gunicorn==19.8.1 idna==2.7 itypes==1.1.0 Jinja2==2.10 lxml==4.2.3 Markdown==2.6.11 MarkupSafe==1.0 natsort==5.3.3 ncclient==0.5.3 netaddr==0.7.18 openapi-codec==1.3.2 paramiko==2.4.1 Pillow==5.2.0 psycopg2==2.7.5 py-gfm==0.1.3 pyasn1==0.4.3 pycparser==2.18 pycryptodome==3.6.4 PyNaCl==1.2.1 pytz==2018.5 requests==2.19.1 simplejson==3.16.0 six==1.11.0 sqlparse==0.2.4 uritemplate==3.0.0 urllib3==1.23 I read the #1819 article. Tries to remove and install again pcryptodome and execute again pip3 install -r requirements.txt with same error Any idea??
adam closed this issue 2025-12-29 17:19:55 +01:00
Author
Owner

@Darknet commented on GitHub (Jul 24, 2018):

Ok forget it's an error from my side, the requirements.txt appear the name of the pycrypto package.

replace for pycryptodome and works fine.

@Darknet commented on GitHub (Jul 24, 2018): Ok forget it's an error from my side, the requirements.txt appear the name of the pycrypto package. replace for pycryptodome and works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1867