Skip to content

ImportError: No module named yapsy.PluginManager #102

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

Open
abhijithvnair94 opened this issue Nov 10, 2018 · 2 comments
Open

ImportError: No module named yapsy.PluginManager #102

abhijithvnair94 opened this issue Nov 10, 2018 · 2 comments

Comments

@abhijithvnair94
Copy link

I tried to run the code

sudo python user.py -p /dev/ttyUSB0

But it shows the error -

Traceback (most recent call last):
File "user.py", line 12, in
from yapsy.PluginManager import PluginManager
ImportError: No module named yapsy.PluginManager

I tried to install yapsy after that also the same error is showing . If I use the code without sudo, then its shows like

serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

Thats why I used the sudo command.
Kindly help me in solving this error

@ikmckenz
Copy link
Contributor

This is because the PYTHONPATH is different when running as sudo. Check this stack overflow question for a way around this:

https://stackoverflow.com/questions/25346171/cant-import-module-when-using-root-user

@shenjianaixuexi
Copy link

hello .Have you solved the problems ? Can you give me some advice. thank you

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