You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really struggling to find a working blowfish hashing implementation that I can use.
But I'm not able to get this installed on my dev machine, error will be posted below.
Also, in reference to issue #5 I don't get it installed on Ubuntu 13.10 as well.
Your package seems to be the best choice for this, if it would only work.
By the way, none of the bcrypt packages available through pypi will install on either the server or the dev machine.
Error:
OS/X:
Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded
Running setup.py egg_info for package bcrypt
OS/X: confusion between 'cc' versus 'gcc' (see issue 123)
will not use '__thread' in the C code
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip_build_root/bcrypt/setup.py", line 104, in <module>
"Programming Language :: Python :: 3.3",
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 811, in obtain
return installer(requirement)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 327, in fetch_build_egg
return cmd.easy_install(req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 921, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'cc' failed with exit status 1
Complete output from command python setup.py egg_info:
OS/X: confusion between 'cc' versus 'gcc' (see issue 123)
will not use '__thread' in the C code
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Ubuntu 13.10, after installing python-cffi:
Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded
Running setup.py egg_info for package bcrypt
bcrypt/__pycache__/_cffi_677459_d17cc0.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_ubuntu/bcrypt/setup.py", line 28, in <module>
from bcrypt import __about__, _ffi
File "bcrypt/__init__.py", line 71, in <module>
).hexdigest()[:6],
File "/usr/lib/python2.7/dist-packages/cffi/api.py", line 311, in verify
lib = self.verifier.load_library()
File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 68, in load_library
self.compile_module()
File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 56, in compile_module
self._compile_module()
File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 142, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command python setup.py egg_info:
bcrypt/__pycache__/_cffi_677459_d17cc0.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
The text was updated successfully, but these errors were encountered:
thanks for the quick reply. Know this to be two different error's, would it have been a cleaner approach, had I put these in two different issues? Just so I know for the future.
For the Ubuntu issue, I got it installed now. BTW, does bcrypto patch my glibc?
For the Mac issue, exporting ARCHFLAGS prior to running will solve this. But, running it as non-root user you should run it as
→ sudo -E pip install bcrypt
-E makes sudo "consider the environment" or rather preserve the environment when switching to the super user context, overriding the env_reset.
Hello,
I'm really struggling to find a working blowfish hashing implementation that I can use.
But I'm not able to get this installed on my dev machine, error will be posted below.
Also, in reference to issue #5 I don't get it installed on Ubuntu 13.10 as well.
Your package seems to be the best choice for this, if it would only work.
By the way, none of the bcrypt packages available through pypi will install on either the server or the dev machine.
Error:
OS/X:
Ubuntu 13.10, after installing python-cffi:
The text was updated successfully, but these errors were encountered: