Giter Site home page Giter Site logo

Comments (8)

DS256 avatar DS256 commented on August 23, 2024 1

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.

alex avatar alex commented on August 23, 2024

Are you able to provide instructions to reproducing and/or a core dump?

from bcrypt.

DS256 avatar DS256 commented on August 23, 2024

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.

reaperhulk avatar reaperhulk commented on August 23, 2024

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.

DS256 avatar DS256 commented on August 23, 2024

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.

DS256 avatar DS256 commented on August 23, 2024

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.

reaperhulk avatar reaperhulk commented on August 23, 2024

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.

reaperhulk avatar reaperhulk commented on August 23, 2024

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)

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.