kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
236 stars 77 forks source link

Module Not Found 'PAM' #262

Open vrk5398 opened 5 years ago

vrk5398 commented 5 years ago

Hello I have installed all the packages required to install and run Wok. But, when I run the command "$ sudo python src/wokd" it throws the error related to PAM. I have installed python-pam but also getting this error. Can you please help me resolve this? OS - RHEL 8 | Python Version - 3.6.8

Thank You.

Screenshot from 2019-05-31 06-34-23

alinefm commented 5 years ago

Hi @vrk5398

Do you have python3-pam installed in your system?

I don't have a RHEL 8 image to try on, but this is the required package for Fedora 30

vrk5398 commented 5 years ago

hie @alinefm When I try to run '# pip3 install python3-pam' it throws an error "No matching distribution found for python3-pam" . Check out the screenshot. Screenshot from 2019-06-01 02-25-49

alinefm commented 5 years ago

Try to install/enable EPEL8 repo and run dnf install python3-pam:

https://linuxconfig.org/redhat-8-epel-install-guide

MaxPayneFH commented 5 years ago

Hello, I'm experiencing the same issue on Fedora 29 when building from source.

sudo pip3 install python-pam WARNING: Running pip install with root privileges is generally not a good idea. Trypip3 install --userinstead. Requirement already satisfied: python-pam in ./python3.7/site-packages (1.8.4)

sudo dnf install python3-pam Package python3-pam-1.8.4-1.fc29.noarch is already installed.

sudo python3 src/wokd Traceback (most recent call last): File "src/wokd", line 30, in <module> import wok.server File "/home/max/Git/wok/src/wok/server.py", line 28, in <module> from wok import auth File "/home/max/Git/wok/src/wok/auth.py", line 33, in <module> import PAM ModuleNotFoundError: No module named 'PAM'

Do we need to create a symlink to use PAM with this project ? Could you please help?

MaxPayneFH commented 5 years ago

Hello, I'm experiencing the same issue on Fedora 29 when building from source.

sudo pip3 install python-pam WARNING: Running pip install with root privileges is generally not a good idea. Trypip3 install --userinstead. Requirement already satisfied: python-pam in ./python3.7/site-packages (1.8.4)

sudo dnf install python3-pam Package python3-pam-1.8.4-1.fc29.noarch is already installed.

sudo python3 src/wokd Traceback (most recent call last): File "src/wokd", line 30, in <module> import wok.server File "/home/max/Git/wok/src/wok/server.py", line 28, in <module> from wok import auth File "/home/max/Git/wok/src/wok/auth.py", line 33, in <module> import PAM ModuleNotFoundError: No module named 'PAM'

Do we need to create a symlink to use PAM with this project ? Could you please help?

MaxPayneFH commented 5 years ago

Hello, I'm experiencing the same issue on Fedora 29 when building from source.

sudo pip3 install python-pam WARNING: Running pip install with root privileges is generally not a good idea. Trypip3 install --userinstead. Requirement already satisfied: python-pam in ./python3.7/site-packages (1.8.4)

sudo dnf install python3-pam Package python3-pam-1.8.4-1.fc29.noarch is already installed.

sudo python3 src/wokd Traceback (most recent call last): File "src/wokd", line 30, in <module> import wok.server File "/home/max/Git/wok/src/wok/server.py", line 28, in <module> from wok import auth File "/home/max/Git/wok/src/wok/auth.py", line 33, in <module> import PAM ModuleNotFoundError: No module named 'PAM'

Do we need to create a symlink to use PAM with this project ? Could you please help?