flupke / pypotrace

Python bindings for potrace library
Other
165 stars 43 forks source link

import error in OS X #17

Closed wsonv closed 5 years ago

wsonv commented 6 years ago

Hi! I have a problem importing potrace in python3.6 (tried in 2.7 and got the same error)

I tested it on High Sierra and El Capitan.

Error message is as follow

import potrace Traceback (most recent call last): File "", line 1, in File "/Users/wonjunson/Downloads/svg/lib/python3.6/site-packages/pypotrace/potrace/init.py", line 1, in from potrace._potrace import * ModuleNotFoundError: No module named 'potrace._potrace'

there was no module _potrace.py in the folder. There were _potrace.pyx and _potrace.pyd

Could you help me deal with this problem? Thank you!

flupke commented 6 years ago

Hi, looks like the Cython module was not compiled, try

$ python setup.py build_ext --inplace