olebole / python-cpl

Python bindings for CPL recipes
http://pypi.python.org/pypi/python-cpl
GNU General Public License v2.0
10 stars 5 forks source link

can't import CPL_recipe #2

Closed sirpercival closed 9 years ago

sirpercival commented 9 years ago

Dunno if you're still paying attention to this... but I'll open this issue anyway. I installed via cloning the repo and then doing python setup.py install --prefix=PREFIX... then to check I started python and tried import cpl and got:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cpl/__init__.py", line 9, in <module>
    from .recipe import Recipe
  File "cpl/recipe.py", line 15, in <module>
    from . import CPL_recipe
ImportError: cannot import name CPL_recipe

I'm running Mavericks and python 2.7.6. Thanks!

olebole commented 9 years ago

Just a wild guess: did you add the directory to your pythonpath, and did you also not run the import statement in the source directory?

sirpercival commented 9 years ago

Ha. I ran the import in the python-cpl directory, but not the cpl subdirectory. I'll add python-cpl to my pythonpath.

olebole commented 9 years ago

OK, I am closing this. Please re-open if the problem persists.