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

Example.py can't be performed #75

Open
Marshors opened this issue Dec 23, 2018 · 2 comments
Open

Example.py can't be performed #75

Marshors opened this issue Dec 23, 2018 · 2 comments

Comments

@Marshors
Copy link

Hi,
I am new guy of python. Sorry about the stupid question
When I performed example.py. It shows " from . import wm_core. ImportError: attempted relative import with no known parent package"
I couldn't find a way to sovle it.

OS: win7
Version: Python 3.5
in virtualenv & all the package in the requirements are installed

@dougthor42
Copy link
Owner

Hey, sorry for the delay - holidays can be quite busy and whatnot.

Are you installing from source (git clone)? Or are you installing from pip (pip install wafer_map)?

I can think of 2 issues:

  1. If installing from source, you probably also need to install the package itself:

    (venv) C:\temp\wafer_map>python -m pip install -r requirements.txt
    (venv) C:\temp\wafer_map>python -m pip install -e .
    
  2. The example is called by running the wafer_map module, not by calling example.py:

    (venv) C:\temp\wafer_map>python -m wafer_map
    

Give those two things a shot.

@dougthor42
Copy link
Owner

Also I realize now that the README file does not reflect what I've mentioned above... I've made a note to fix that.

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