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

ModuleNotFoundError: No module named 'clips._clips' #3

Closed
gitttt opened this issue Jul 31, 2018 · 1 comment
Closed

ModuleNotFoundError: No module named 'clips._clips' #3

gitttt opened this issue Jul 31, 2018 · 1 comment

Comments

@gitttt
Copy link

gitttt commented Jul 31, 2018

On Windows Server 2016, python 3.7, importing clips gives me the below error, no matter if installed using pip install clipspy or built by myself.

PS C:\tmp\clipspy> python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win3
Type "help", "copyright", "credits" or "license" for more information.
>>> import clips
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\tmp\clipspy\clips\__init__.py", line 30, in <module>
    from clips.error import CLIPSError
  File "C:\tmp\clipspy\clips\error.py", line 32, in <module>
    from clips.router import Router
  File "C:\tmp\clipspy\clips\router.py", line 5, in <module>
    from clips._clips import lib, ffi
ModuleNotFoundError: No module named 'clips._clips'
@noxdafox
Copy link
Owner

noxdafox commented Jul 31, 2018

Looking at the traceback, it seems you are still importing from C:\tmp\clipspy which is where you temporarily built clipspy and not the installation location.

Are you sure you are setting the right Python import path?

EDIT: nevermind, it seem you are executing the interpreter from C:\tmp\clipspy. The Python interpreter prefers the CWD when it comes to importing modules. You need to either run the interpreter from another CWD or set the PYTHONPATH accordingly.

@gitttt gitttt closed this as completed Aug 1, 2018
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