Giter VIP home page Giter VIP logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
Install bcrypt and it will work.

Original comment by [email protected] on 2 Jun 2012 at 2:00

from py-bcrypt.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 22, 2024
try apt-get install python2.7-dev

Original comment by [email protected] on 9 Jul 2015 at 3:47

from py-bcrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.