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

Incorrect import path for test module #4

Open
heibaiyanhuo opened this issue Oct 22, 2017 · 0 comments
Open

Incorrect import path for test module #4

heibaiyanhuo opened this issue Oct 22, 2017 · 0 comments

Comments

@heibaiyanhuo
Copy link
Contributor

The command python -m test.ThroughputTester always gives me a ModuleNotFoundError. I check the module path and find the reason is the Python interpreter will identify the module test as a built-in module instead of the module in playground. I get these path information when I use the interactive command line.
image
Here, though the test module and the playground module are all in the site-packages, the test module is identified as the built-in module.
The easiest way to solve the problem is to change a name for test, like playgroundtest. I don't know if others have this problem, but I test it on macOS and Ubuntu, the issues are the same.

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

1 participant