Comments (11)
Install bcrypt and it will work.
Original comment by [email protected]
on 2 Jun 2012 at 2:00
from py-bcrypt.
Try to run 'python' from another location (not where py-bcrypt was unpacked).
I had same problem as you, when tried to run from ~/python-install/py-bcrypt-0.2
So I changed to ~ and tried again - everything worked fine :)
Python tries to import bcrypt from source folder
(~/python-install/py-bcrypt-0.), it has folder bcrypt with __init__.py ...
Original comment by [email protected]
on 11 Jun 2012 at 3:32
from py-bcrypt.
Had to change "from _bcrypt import *" to "from _bcrypt import hashpw,
encode_salt" for this module to work with pypy.
Original comment by [email protected]
on 24 Nov 2012 at 1:07
from py-bcrypt.
This works for me. Are you running python from a directory that has a "bcrypt"
subdirectory? That will break things.
Original comment by [email protected]
on 28 Jul 2013 at 12:01
from py-bcrypt.
Does this work on Python 3? I'm on Python 3.3.2 and I'm getting the same error
message.
Original comment by [email protected]
on 30 Jul 2013 at 5:04
from py-bcrypt.
Nevermind, just found this. Would be nice if this was in the main tree.
For my friends coming here from Google like me:
https://github.com/wcdolphin/python-bcrypt
Original comment by [email protected]
on 30 Jul 2013 at 5:08
from py-bcrypt.
tip does work from python-3. See
https://code.google.com/p/py-bcrypt/wiki/ReleaseNotes_0_4 for the release
that's coming in a week or so.
Original comment by [email protected]
on 30 Jul 2013 at 10:01
from py-bcrypt.
wrt comment #3 - I just tried on pypy (stable and tip, non-JIT) and the module
(at tip) imported okay but fails. It looks like PyArg_ParseTupleAndKeywords()
is broken somehow - it returns success but doesn't actually fill in the string
arguments or their respective lengths.
I'll try again with the JIT version of pypy in case that makes any difference;
it seems to be what most people use.
Original comment by [email protected]
on 31 Jul 2013 at 2:21
from py-bcrypt.
No change with JIT version. Browsing the pypy code, PyArg_ParseTupleAndKeywords
is implemented in ./pypy/module/cpyext/src/getargs.c and "s#" arguments are
supported by convertsimple().
I'll file a pypy bug and see what happens.
Original comment by [email protected]
on 31 Jul 2013 at 4:21
from py-bcrypt.
https://bugs.pypy.org/issue1569 filed - it looks like 's#' arg parsing is
returning garbage on my pypy
Original comment by [email protected]
on 31 Jul 2013 at 4:53
from py-bcrypt.
try apt-get install python2.7-dev
Original comment by [email protected]
on 9 Jul 2015 at 3:47
from py-bcrypt.
Related Issues (19)
- Windows & MSVS2008 compilation HOT 14
- signedness warning when compiling under Ubuntu Linux 10.04.3 LTS HOT 2
- Crash in bcrypt_hashpw if py-bcrypt is compiled on Windows 7 with cygwin, gcc. HOT 4
- pybc_blf.h not included in certain situations HOT 1
- Python 3 Support (with patch) HOT 8
- Failed to install using pip HOT 4
- how to use it on google app engine ? HOT 4
- Build failure on mingw32 with solution HOT 3
- windows version HOT 1
- Doesn't Compile on SmartOS HOT 2
- Thread safety problem HOT 1
- Build failure on mingw32 with solution, updated for 0.3 HOT 10
- Add classifiers to setup.py
- Patch for /bcrypt/pybc_blf.h HOT 3
- Compile error on XCode 5.1+
- bcrypt/bcrypt_python.c:18:20: fatal error: Python.h: No such file or directory HOT 1
- doesn't compile on windows 7 x64 HOT 5
- install on windows 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-bcrypt.