View previous topic :: View next topic |
Author |
Message |
manu.rhel n00b
Joined: 11 Apr 2014 Posts: 44
|
Posted: Mon Jul 15, 2024 4:00 am Post subject: Python module error |
|
|
Hi Experts, I need some help with an ongoing issue. I am trying to run a python script using prsync . This script runs fine when I am logged in as root, however when I am logged in as a user, it fails with error - no module version found.
As root - there is no module error
Quote: | prsync
Usage: prsync [OPTIONS] local remote
prsync: error: Paths not specified.
|
As normal user -
Quote: | $ prsync
Traceback (most recent call last):
File "/usr/bin/prsync", line 23, in <module>
from psshlib.cli import common_parser, common_defaults
File "/home/monit/.local/lib/python3.10/site-packages/psshlib/cli.py", line 9, in <module>
import version
ModuleNotFoundError: No module named 'version' |
Python version is 3.12.3
Quote: |
# python -V
Python 3.12.3
|
What I see is that from the normal user, site-packages is coming from 3.10. Is that expected because Python version is 3.12.3 is installed.
Please suggest and thanks in advance. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22618
|
Posted: Mon Jul 15, 2024 2:24 pm Post subject: |
|
|
I see no Gentoo package named prsync, so moved to Unsupported Software.
Your output suggests to me that /usr/bin/prsync is being run with Python 3.10(.x), even though your system default Python is Python 3.12.3.
Your output shows that it is using a Python module installed in $HOME, which is why this is behaving differently for root versus for a user. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|