Comments (8)
So, it sounds like I may have a corrupt environment and 'wheels' and armv6l that I am not familiar with. I apologize, but since I no longer need bcrypt, I'll let the next person continue this work.
from bcrypt.
Are you able to provide instructions to reproducing and/or a core dump?
from bcrypt.
Sure @alex.
paul@piZERO:~ $ python3
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bcrypt
Illegal instruction
paul@piZERO:~ $
If I run with 'python3 -v' here are the last few lines before it reports 'illegal instruction'
import 'hmac' # <_frozen_importlib_external.SourceFileLoader object at 0xb6650fe8>
# /home/paul/.local/lib/python3.9/site-packages/bcrypt/__pycache__/__about__.cpython-39.pyc matches /home/paul/.local/lib/python3.9/site-packages/bcrypt/__about__.py
# code object from '/home/paul/.local/lib/python3.9/site-packages/bcrypt/__pycache__/__about__.cpython-39.pyc'
import 'bcrypt.__about__' # <_frozen_importlib_external.SourceFileLoader object at 0xb666c610>
Illegal instruction
paul@piZERO:~ $
from bcrypt.
Can you install from source into a virtual environment and provide us the full build output? Please use --no-binary :all: in the pip install so it guarantees a build from source
from bcrypt.
Can you install from source into a virtual environment and provide us the full build output? Please use --no-binary :all: in the pip install so it guarantees a build from source
More than happy to do but I have to figure out how to do it. I've never played with a virtual environment or built from scratch. Will try.
from bcrypt.
I downloaded the source from your site. I ran the following in a VE
(bcrypt_ve) paul@piZERO:~ $ pip install --no-binary :all: /mnt/pi_lib/bcrypt-4.0.1.tar.gz
but it error out with a long message which included:
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install bcrypt:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Ensure you have a recent Rust toolchain installed. bcrypt requires
rustc >= 1.56.0.
Python: 3.9.2
platform: Linux-6.1.21+-armv6l-with-glibc2.31
pip: n/a
setuptools: 67.8.0
setuptools_rust: 1.6.0
rustc: 1.48.0 (471d696c7 2020-12-10)
=============================DEBUG ASSISTANCE=============================
error: Rust 1.48.0 does not match extension requirement >=1.56.0
Following your instructions on your web page, I checked the following.
paul@piZERO:~ $ sudo apt-get install build-essential cargo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9).
cargo is already the newest version (0.47.0-3).
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra libfuse2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I investigate manually installing RUST but it appears no trivial and I suspect that 1.48 may be the highest for my OS+HW.
Should I proceed with the attempt to upgrade Rust?
from bcrypt.
So this strongly suggests that you somehow downloaded a binary wheel previously, which would be incompatible with your architecture since we don't ship wheels to pypi for this arch. If you want to install this successfully you'll need to install a newer rust via rustup, yes.
from bcrypt.
Alternately, piwheels.org
has a wheel for the latest version (https://piwheels.org/project/bcrypt/) that should work for you. It's the armv6l version.
from bcrypt.
Related Issues (20)
- Precompiled ARM package in pip? HOT 5
- Emphasise difference between round and work factor HOT 2
- 4.0 breaks passlib? HOT 2
- Invalid work factors are not handled cracefully HOT 2
- 4.0.0 issue Runtime.ImportModuleError: Unable to import module HOT 7
- Can't install on PyPy HOT 13
- Include a wheel for linux_armv7l HOT 1
- module 'bcrypt._bcrypt' has no attribute 'encode_base64' HOT 5
- Rust Version more recent than stable branch for Debian HOT 3
- hash comparison suddenly fails for two days then works normally is this possible? HOT 4
- PyPi hashes for bcrypt==3.2.0 don't match those from Pipfile.lock HOT 2
- installing on raspberry pi desktop on 2012 MacBook Air fails HOT 1
- Salts Error HOT 8
- 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
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.