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

Import issue: No module named 'examples' #139

Open
mrdc opened this issue Dec 24, 2024 · 1 comment
Open

Import issue: No module named 'examples' #139

mrdc opened this issue Dec 24, 2024 · 1 comment

Comments

@mrdc
Copy link

mrdc commented Dec 24, 2024

Hi,

I see this error when I try to run some code in examples:

pylgbst-master/examples/vernie/android_remote.py"
Traceback (most recent call last):
  File "/Users/xxxxxxxxxxxxxxx/pylgbst-master/examples/vernie/android_remote.py", line 12, in <module>
    from examples.vernie import Vernie
ModuleNotFoundError: No module named 'examples'

Maybe, it's better to refactor the code to exclude import examples.? Somehow it's not working for me, even when I copy examples inside examples, which is strange, because import is resolved when I press on Vernie in both cases: without copying and with copying.

pylgbst 1.3.0
VSCode: 1.96.2
Python 3.12
@undera
Copy link
Owner

undera commented Jan 4, 2025

Try setting PYTHONPATH env variable to the root of repository, it should work.

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

2 participants