ether / ep_hash_auth

Etherpad plugin that allows the usage of hash values for authentoication in settings.json
Apache License 2.0
5 stars 10 forks source link

Installation problem: Error: Cannot find module 'bcrypt' #2

Closed Wikinaut closed 8 years ago

Wikinaut commented 8 years ago

[updated with the solution]

solution to get the extension and the password hash generator working:

apt-get install python-bcrypt apt-get install bcrypt apt-get install python-pip pip install passlib (*) pip install bcrypt npm install node-gyp -g npm install bcrypt -g npm install bcrypt -save

problem:

I installed python-bcrypt (and also bcrypt) like explained, but got errors:

#python -c 'from passlib.hash import bcrypt;print(bcrypt.encrypt("mys3cr3t", rounds=10))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named passlib.hash

and

# su -u etherpad bin/run.sh
[ERROR] console - 
Failed to load '/srv/etherpad-lite/node_modules/ep_hash_auth/ep_hash_auth' for 'ep_hash_auth/ep_hash_auth/hooks/authenticate': 
Error: Cannot find module 'bcrypt'

Pls. can you assist.

rugk commented 8 years ago

Did you installed bcrypt? npm install bcrypt You can install passlib with pip.

Wikinaut commented 8 years ago

bycrypt: yes passlib was not mentioned in your installation instructions.

Wikinaut commented 8 years ago

Installation:

apt-get install python-bcyrpt
apt-get install bcrypt
apt-get install python-pip
pip install passlib (*)

Works now. Pls. update the installation instructions with (*) Thanks.

rugk commented 8 years ago

I am not the author of this plugin, but I also recommend adding the commands you proposed.

Wikinaut commented 8 years ago

I still don't get it running.

bin/run.sh ==>

"....Error: Cannot find module 'bcrypt'"

Wikinaut commented 8 years ago

I also tried pip install bcrypt but this appears to be unrelated.

Wikinaut commented 8 years ago

http://stackoverflow.com/questions/34546272/cannot-find-module-bcrypt

I tried the commands and my issue is resolved.

npm install node-gyp -g
npm install bcrypt -g
npm install bcrypt -save
Wikinaut commented 8 years ago

Summary: see first post!