Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named pdagent.config : on RedHat 6.9 #159

Open
mayankgupta0510 opened this issue Jan 27, 2021 · 2 comments
Open

ImportError: No module named pdagent.config : on RedHat 6.9 #159

mayankgupta0510 opened this issue Jan 27, 2021 · 2 comments

Comments

@mayankgupta0510
Copy link

[root@mo-0bda67593 bin]# pd-send -k cf2b1fbcc57646fdb1b6f3cc6f0564d0 -t trigger -d "Test test" -i server.test
Traceback (most recent call last):
File "/usr/bin/pd-send.py", line 126, in
import pdagent.config
ImportError: No module named pdagent.config

@arlinux
Copy link

arlinux commented Jun 12, 2021

Perform the following procedure:

For example: use your new python ver and copy

cp -a /usr/lib/python2.7/site-packages/pdagent /usr/share/pdagent/bin/

Then try restart!!

@tayarajat
Copy link

Post doing this there might even be the case that there is python3 on your system and pd-send is picking up that.
You can try any of these:

  • python /usr/bin/pd-send.py instead of pd-send
  • /usr/bin/pd-send file have an if condition to check python version. Remove that and use the else part only to use python2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants