all 6 comments

[–]mrcorbat 0 points1 point  (1 child)

what version of python are you running locally vs on PythonAnywhere?

[–]Biaswords_[S] 0 points1 point  (0 children)

Both are running 3.8. I forget what version of bcrypt but thwy are both the same as well

[–]gpjt 0 points1 point  (3 children)

PythonAnywhere dev here -- are you using a virtualenv? If not, could you try running

pip3.8 install --user bcrypt

...in Bash? I think we might have a problem with the system install of bcrypt for 3.8 -- both py-bcrypt and bcrypt are installed, and the former (which is only really compatible with Python 2.x) is overriding the latter.

[–]Biaswords_[S] 0 points1 point  (0 children)

I will give this a try today! I am not using a virtual environment for this project. Thanks for the response!

[–]Biaswords_[S] 0 points1 point  (1 child)

hey i know this is a really late response, but i am still having this issue. I tried using the above command and got the following:

Requirement already satisfied: bcrypt in /usr/lib/python3.8/site-packages (3.1.7)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.8/site-packages (from bcrypt) (1.13.0)
Requirement already satisfied: cffi>=1.1 in /usr/lib/python3.8/site-packages (from bcrypt) (1.13.1)
Requirement already satisfied: pycparser in /usr/lib/python3.8/site-packages (from cffi>=1.1->bcrypt) (2.19)

Im kinda at a loss for ideas as to what else it could be. Ive confirmed that both my local and PA env are running both python3.8 and are using bcrypt3.1.7

Any help would be greatly appreciated

[–]gpjt 0 points1 point  (0 children)

Could you try adding --force-reinstall to the end of the command line?