Comments (6)
Hmm... So this looks like it might actually be a problem with CFFI itself. The error that's occuring now is that it can't import the _cffi_backend
from the installed library. What happens if you install cffi before running the build for bcrypt?
from bcrypt.
Exactly the same as pyca/pyopenssl#157 read my comments in that issue.
The problem is that bcrypt tries to import itself during setup.py to trigger cffi compilation, even with cffi installed on the host and cross-compilation going well it will ultimately fail when it tries to import the cross-compiled binary on the host.
from bcrypt.
This is since 1.1.0, 1.0.2 was fine.
from bcrypt.
Well bcrypt has always imported itself during setup.py
, it's just previously there was two compilations, one was implicit that compiled on import, and one was explicit that compiled as part of the setup.py build_ext
run. bcrypt 1.1.0 is very careful not to call _load_library
during the invocation of setup.py
. In fact this is failing before that is even taking place since it's failing at _ffi = FFI()
which is occurring before anything bcrypt specific.
Is there a set of commands I can use to reproduce this on either an OS X box or some kind of Linux box?
from bcrypt.
Importing occurs on the host where cffi isn't installed. I installed it and now it seems to work. I'll try to import it on target and keep you posted.
from bcrypt.
It seems to work with cffi installed on the host. I can import bcrypt on the target. I don't know if the C extension is loaded properly though, I'll reopen if I have any problem.
I'm sceptical about the module trying to import itself during setup. Setup is about setting up things before you use it. In bcrypt's case that's almost OK because you don't have a lot of dependencies but still, that doesn't seem right.
from bcrypt.
Related Issues (20)
- Comment on #449
- Please provide precompiled package for python 3.11 HOT 4
- No version of bcrypt for Python 3.10 HOT 1
- Error when using bcrypt to salt and hash password HOT 1
- checkpw issue, I need some guide. HOT 4
- Python2.7 ImportError: cannot import name _bcrypt HOT 3
- Document packages bundled inside wheels HOT 2
- python 3.7.3 HOT 4
- "Illegal instruction" on Raspberry Pi Zero HOT 10
- new release needed for python 3.12 compatibility at build time HOT 9
- New release results in bcrypt break HOT 22
- I use `bcrypt` with `passlib` HOT 2
- Install [email protected]. 400 bad request HOT 1
- AttributeError: module 'bcrypt' has no attribute '__about__' with new 4.1.1 version HOT 20
- install 4.1.1 on M2 chip failed HOT 1
- Why is the macOS 11/12 wheel dropped? HOT 3
- The bcrypt.hashpw(val1, val2) function always produces the same output even if the values are different. HOT 4
- [4.1.1] ImportError: PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process HOT 14
- new version on mipsel 32 bit Atomic error HOT 4
- Is BSD license applicable?
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 bcrypt.