Skip to content
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

Unreliable cryptacular dependency #170

Closed
chenyangyu1988 opened this issue Feb 27, 2019 · 9 comments
Closed

Unreliable cryptacular dependency #170

chenyangyu1988 opened this issue Feb 27, 2019 · 9 comments

Comments

@chenyangyu1988
Copy link

Installing collected packages: pbkdf2, cryptacular, zope.interface, transaction, SQLAlchemy, zope.sqlalchemy, webob, venusian, plaster, hupper, zope.deprecation, PasteDeploy, plaster-pastedeploy, translationstring, pyramid, oauthlib, requests-oauthlib, anykeystore, defusedxml, python3-openid, velruse, repoze.sendmail, pyramid-mailer, wtforms, wtforms-recaptcha, apex, click, future, hypothesis, joblib, numpy, typing, typing-extensions, protobuf, onnx, pytz, python-dateutil, pandas, scipy, tqdm, torch, torchtext, tensorboardX, pytext-nlp
Running setup.py install for pbkdf2 ... -� �done
Running setup.py install for cryptacular ... -� �\� �|� �error
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-8smael84/cryptacular/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-ouir87qq/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cryptacular
copying cryptacular/init.py -> build/lib.linux-x86_64-3.6/cryptacular
creating build/lib.linux-x86_64-3.6/cryptacular/pbkdf2
copying cryptacular/pbkdf2/init.py -> build/lib.linux-x86_64-3.6/cryptacular/pbkdf2
copying cryptacular/pbkdf2/test_pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptacular/pbkdf2
creating build/lib.linux-x86_64-3.6/cryptacular/bcrypt
copying cryptacular/bcrypt/test_bcrypt.py -> build/lib.linux-x86_64-3.6/cryptacular/bcrypt
copying cryptacular/bcrypt/init.py -> build/lib.linux-x86_64-3.6/cryptacular/bcrypt
creating build/lib.linux-x86_64-3.6/cryptacular/crypt
copying cryptacular/crypt/test_crypt.py -> build/lib.linux-x86_64-3.6/cryptacular/crypt
copying cryptacular/crypt/init.py -> build/lib.linux-x86_64-3.6/cryptacular/crypt
creating build/lib.linux-x86_64-3.6/cryptacular/core
copying cryptacular/core/test_core.py -> build/lib.linux-x86_64-3.6/cryptacular/core
copying cryptacular/core/init.py -> build/lib.linux-x86_64-3.6/cryptacular/core
running egg_info
writing cryptacular.egg-info/PKG-INFO
writing dependency_links to cryptacular.egg-info/dependency_links.txt
writing namespace_packages to cryptacular.egg-info/namespace_packages.txt
writing requirements to cryptacular.egg-info/requires.txt
writing top-level names to cryptacular.egg-info/top_level.txt
reading manifest file 'cryptacular.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cryptacular.egg-info/SOURCES.txt'
copying cryptacular/bcrypt/_bcrypt.c -> build/lib.linux-x86_64-3.6/cryptacular/bcrypt
running build_ext
building 'cryptacular.bcrypt._bcrypt' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/crypt_blowfish-1.2
creating build/temp.linux-x86_64-3.6/cryptacular
creating build/temp.linux-x86_64-3.6/cryptacular/bcrypt
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/usr/local/include/python3.6m -c crypt_blowfish-1.2/crypt_blowfish.c -o build/temp.linux-x86_64-3.6/crypt_blowfish-1.2/crypt_blowfish.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/usr/local/include/python3.6m -c crypt_blowfish-1.2/crypt_gensalt.c -o build/temp.linux-x86_64-3.6/crypt_blowfish-1.2/crypt_gensalt.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/usr/local/include/python3.6m -c crypt_blowfish-1.2/wrapper.c -o build/temp.linux-x86_64-3.6/crypt_blowfish-1.2/wrapper.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/usr/local/include/python3.6m -c cryptacular/bcrypt/_bcrypt.c -o build/temp.linux-x86_64-3.6/cryptacular/bcrypt/_bcrypt.o
In file included from /usr/local/include/python3.6m/Python.h:39:0,
from cryptacular/bcrypt/_bcrypt.c:26:
crypt_blowfish-1.2/crypt.h:17:23: fatal error: gnu-crypt.h: No such file or directory
#include <gnu-crypt.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1

@mcarilli
Copy link
Contributor

mcarilli commented Feb 28, 2019

I have no idea what this is. It looks completely unrelated.

@cskyan
Copy link

cskyan commented Mar 27, 2019

If you were using Anaconda please try conda install cryptacular before you install apex. It works for me.

@mschmill
Copy link

Why was this closed? I just tried to install apex on a clean GCP gpu instance and it gets this error. Installing cryptacular with conda prior to apex does not work.

@ptrblck
Copy link
Contributor

ptrblck commented May 23, 2019

@mschmill Do you get this error running the setup.py to install apex?
If so, could you please post the terminal output so that we can have a look?
I'm currently unsure how cryptacular is related to apex, as it's not a dependency.

@mschmill
Copy link

I am attempting to install apex from pip:

$ pip install apex --user
Collecting apex
Requirement already satisfied: velruse>=1.0.3 in ./.local/lib/python3.7/site-packages (from apex) (1.1.1)
Requirement already satisfied: pyramid>1.1.2 in ./.local/lib/python3.7/site-packages (from apex) (1.10.4)
Requirement already satisfied: pyramid-mailer in ./.local/lib/python3.7/site-packages (from apex) (0.15.1)
Requirement already satisfied: requests in /opt/anaconda3/lib/python3.7/site-packages (from apex) (2.21.0)
Requirement already satisfied: wtforms in ./.local/lib/python3.7/site-packages (from apex) (2.2.1)
Collecting cryptacular (from apex)
  Using cached https://files.pythonhosted.org/packages/73/bd/714b3fbfb3392d6b4e658638d9b74f77ce1072725209c08a6becd90836a7/cryptacular-1.4.1.tar.gz
Requirement already satisfied: zope.sqlalchemy in ./.local/lib/python3.7/site-packages (from apex) (1.1)
Requirement already satisfied: wtforms-recaptcha in ./.local/lib/python3.7/site-packages (from apex) (0.3.2)
Requirement already satisfied: anykeystore in ./.local/lib/python3.7/site-packages (from velruse>=1.0.3->apex) (0.2)
Requirement already satisfied: python3-openid in ./.local/lib/python3.7/site-packages (from velruse>=1.0.3->apex) (3.1.0)
Requirement already satisfied: requests-oauthlib in /opt/anaconda3/lib/python3.7/site-packages (from velruse>=1.0.3->apex) (1.2.0)
Requirement already satisfied: translationstring>=0.4 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (1.3)
Requirement already satisfied: plaster in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (1.0)
Requirement already satisfied: plaster-pastedeploy in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (0.7)
Requirement already satisfied: webob>=1.8.3 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (1.8.5)
Requirement already satisfied: zope.deprecation>=3.5.0 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (4.4.0)
Requirement already satisfied: hupper>=1.5 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (1.6.1)
Requirement already satisfied: setuptools in /opt/anaconda3/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (40.8.0)
Requirement already satisfied: zope.interface>=3.8.0 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (4.6.0)
Requirement already satisfied: venusian>=1.0 in ./.local/lib/python3.7/site-packages (from pyramid>1.1.2->apex) (1.2.0)
Requirement already satisfied: repoze.sendmail>=4.1 in ./.local/lib/python3.7/site-packages (from pyramid-mailer->apex) (4.4.1)
Requirement already satisfied: transaction in ./.local/lib/python3.7/site-packages (from pyramid-mailer->apex) (2.4.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /opt/anaconda3/lib/python3.7/site-packages (from requests->apex) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /opt/anaconda3/lib/python3.7/site-packages (from requests->apex) (2019.3.9)
Requirement already satisfied: idna<2.9,>=2.5 in /opt/anaconda3/lib/python3.7/site-packages (from requests->apex) (2.8)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /opt/anaconda3/lib/python3.7/site-packages (from requests->apex) (1.24.1)
Requirement already satisfied: pbkdf2 in ./.local/lib/python3.7/site-packages (from cryptacular->apex) (1.3)
Requirement already satisfied: SQLAlchemy>=0.5.1 in /opt/anaconda3/lib/python3.7/site-packages (from zope.sqlalchemy->apex) (1.3.1)
Requirement already satisfied: defusedxml in /opt/anaconda3/lib/python3.7/site-packages (from python3-openid->velruse>=1.0.3->apex) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in /opt/anaconda3/lib/python3.7/site-packages (from requests-oauthlib->velruse>=1.0.3->apex) (3.0.1)
Requirement already satisfied: PasteDeploy>=2.0 in ./.local/lib/python3.7/site-packages (from plaster-pastedeploy->pyramid>1.1.2->apex) (2.0.1)
Building wheels for collected packages: cryptacular
  Building wheel for cryptacular (setup.py) ... error
  Complete output from command /opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g5jfjni4/cryptacular/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-5zxnev_z --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/cryptacular
  copying cryptacular/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular
  creating build/lib.linux-x86_64-3.7/cryptacular/core
  copying cryptacular/core/test_core.py -> build/lib.linux-x86_64-3.7/cryptacular/core
  copying cryptacular/core/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/core
  creating build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
  copying cryptacular/pbkdf2/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
  copying cryptacular/pbkdf2/test_pbkdf2.py -> build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
  creating build/lib.linux-x86_64-3.7/cryptacular/crypt
  copying cryptacular/crypt/test_crypt.py -> build/lib.linux-x86_64-3.7/cryptacular/crypt
  copying cryptacular/crypt/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/crypt
  creating build/lib.linux-x86_64-3.7/cryptacular/bcrypt
  copying cryptacular/bcrypt/test_bcrypt.py -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
  copying cryptacular/bcrypt/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
  running egg_info
  writing cryptacular.egg-info/PKG-INFO
  writing dependency_links to cryptacular.egg-info/dependency_links.txt
  writing namespace_packages to cryptacular.egg-info/namespace_packages.txt
  writing requirements to cryptacular.egg-info/requires.txt
  writing top-level names to cryptacular.egg-info/top_level.txt
  reading manifest file 'cryptacular.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'cryptacular.egg-info/SOURCES.txt'
  copying cryptacular/bcrypt/_bcrypt.c -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
  running build_ext
  building 'cryptacular.bcrypt._bcrypt' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/crypt_blowfish-1.2
  creating build/temp.linux-x86_64-3.7/cryptacular
  creating build/temp.linux-x86_64-3.7/cryptacular/bcrypt
  gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/crypt_blowfish.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/crypt_blowfish.o
  gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/crypt_gensalt.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/crypt_gensalt.o
  gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/wrapper.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/wrapper.o
  gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c cryptacular/bcrypt/_bcrypt.c -o build/temp.linux-x86_64-3.7/cryptacular/bcrypt/_bcrypt.o
  In file included from /opt/anaconda3/include/python3.7m/Python.h:44:0,
                   from cryptacular/bcrypt/_bcrypt.c:26:
  crypt_blowfish-1.2/crypt.h:17:23: fatal error: gnu-crypt.h: No such file or directory
   #include <gnu-crypt.h>
                         ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for cryptacular
  Running setup.py clean for cryptacular
Failed to build cryptacular
Installing collected packages: cryptacular, apex
  Running setup.py install for cryptacular ... error
    Complete output from command /opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g5jfjni4/cryptacular/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-vs8xhc1p/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/cryptacular
    copying cryptacular/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular
    creating build/lib.linux-x86_64-3.7/cryptacular/core
    copying cryptacular/core/test_core.py -> build/lib.linux-x86_64-3.7/cryptacular/core
    copying cryptacular/core/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/core
    creating build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
    copying cryptacular/pbkdf2/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
    copying cryptacular/pbkdf2/test_pbkdf2.py -> build/lib.linux-x86_64-3.7/cryptacular/pbkdf2
    creating build/lib.linux-x86_64-3.7/cryptacular/crypt
    copying cryptacular/crypt/test_crypt.py -> build/lib.linux-x86_64-3.7/cryptacular/crypt
    copying cryptacular/crypt/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/crypt
    creating build/lib.linux-x86_64-3.7/cryptacular/bcrypt
    copying cryptacular/bcrypt/test_bcrypt.py -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
    copying cryptacular/bcrypt/__init__.py -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
    running egg_info
    writing cryptacular.egg-info/PKG-INFO
    writing dependency_links to cryptacular.egg-info/dependency_links.txt
    writing namespace_packages to cryptacular.egg-info/namespace_packages.txt
    writing requirements to cryptacular.egg-info/requires.txt
    writing top-level names to cryptacular.egg-info/top_level.txt
    reading manifest file 'cryptacular.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'cryptacular.egg-info/SOURCES.txt'
    copying cryptacular/bcrypt/_bcrypt.c -> build/lib.linux-x86_64-3.7/cryptacular/bcrypt
    running build_ext
    building 'cryptacular.bcrypt._bcrypt' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/crypt_blowfish-1.2
    creating build/temp.linux-x86_64-3.7/cryptacular
    creating build/temp.linux-x86_64-3.7/cryptacular/bcrypt
    gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/crypt_blowfish.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/crypt_blowfish.o
    gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/crypt_gensalt.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/crypt_gensalt.o
    gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c crypt_blowfish-1.2/wrapper.c -o build/temp.linux-x86_64-3.7/crypt_blowfish-1.2/wrapper.o
    gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNO_BF_ASM -Icrypt_blowfish-1.2/ -I/opt/anaconda3/include/python3.7m -c cryptacular/bcrypt/_bcrypt.c -o build/temp.linux-x86_64-3.7/cryptacular/bcrypt/_bcrypt.o
    In file included from /opt/anaconda3/include/python3.7m/Python.h:44:0,
                     from cryptacular/bcrypt/_bcrypt.c:26:
    crypt_blowfish-1.2/crypt.h:17:23: fatal error: gnu-crypt.h: No such file or directory
     #include <gnu-crypt.h>
                           ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-g5jfjni4/cryptacular/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-vs8xhc1p/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-g5jfjni4/cryptacular/

@mschmill
Copy link

is PyPi apex a completely different thing?

@ptrblck
Copy link
Contributor

ptrblck commented May 23, 2019

Thanks for the information!
We don't have a pip package yet, and you are apparently trying to install this apex library. Currently you would have to build apex using the install commands from here.

@mschmill
Copy link

Thanks for your help. Hopefully the next time someone makes this same mistake this will set them straight!

@6desislava6
Copy link

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants