Luna
Luna

Reputation: 161

Couldn't find cython libraries

I found the following problem in executing my python function:

Traceback (most recent call last):
  File "/home/ppd/myfunc.py", line 2, in <module>
    from   cythonUtilsPy.cythonUtils import *
ImportError: No module named cythonUtils

How to add this cythonUtils module to my path?

Upvotes: 1

Views: 307

Answers (1)

Andrew Clark
Andrew Clark

Reputation: 208405

Based on the error message, it looks like cythonUtilsPy is already on your path and was found, but the submodule cythonUtilsPy.cythonUtils was not found. Unless you are importing the wrong cythonUtilsPy, there is no path manipulation you can do to fix this.

You need to track down why cythonUtils is not showing up as a submodule of cythonUtilsPy, if cythonUtils is a directory perhaps it is missing an __init__.py.

Upvotes: 1

Related Questions