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

ImportError: No module named reverseContourPen #27

Open
jeremymickel opened this issue Dec 10, 2017 · 10 comments
Open

ImportError: No module named reverseContourPen #27

jeremymickel opened this issue Dec 10, 2017 · 10 comments

Comments

@jeremymickel
Copy link

Hi Frederik, I'm getting an error when I try to install Batch - it says I'm missing reverseContourPen. I've tried reinstalling FontTools / FontMake and cu2qu. Just wondered if you had any advice how to resolve this error.

Thanks in advance.

Traceback (most recent call last):
  File "main.py", line 10, in <module>
  File "/Users/jeremymickel/Library/Application Support/RoboFont/plugins/Batch.roboFontExt/lib/toolBox.py", line 19, in <module>
  File "/Users/jeremymickel/Library/Application Support/RoboFont/plugins/Batch.roboFontExt/lib/variableFontGenerator/__init__.py", line 15, in <module>
  File "build/bdist.macosx-10.13-intel/egg/cu2qu/ufo.py", line 33, in <module>
  File "build/bdist.macosx-10.13-intel/egg/cu2qu/pens.py", line 4, in <module>
ImportError: No module named reverseContourPen
@typemytype
Copy link
Owner

typemytype commented Dec 10, 2017

could you report back the output of this script:

import cu2qu
print cu2qu
import cu2qu.ufo
print cu2qu.ufo

it should be referring to a path inside RoboFont.app

are you injecting path to sys.path inside RoboFont?
do you have anything installed in the sys_path_override folder inside /Library/Application Support/RoboFont?

@jeremymickel
Copy link
Author

Thanks Frederik.

I don't have sys_path_override folder. And I'm not knowingly injecting anything into sys.path - is there a way to check that?

Here is the traceback for the script:

<module 'cu2qu' from '/Library/Python/2.7/site-packages/cu2qu-1.3.0-py2.7.egg/cu2qu/__init__.pyc'>
Traceback (most recent call last):
  File "<untitled>", line 3, in <module>
  File "build/bdist.macosx-10.13-intel/egg/cu2qu/ufo.py", line 33, in <module>
  File "build/bdist.macosx-10.13-intel/egg/cu2qu/pens.py", line 4, in <module>
ImportError: No module named reverseContourPen

@typemytype
Copy link
Owner

and what RoboFont version are you using?

its weird: cu2qu is embedded in RoboFont, it should find that version first before looking in to the local site packages path...

@jeremymickel
Copy link
Author

jeremymickel commented Dec 11, 2017 via email

@typemytype
Copy link
Owner

typemytype commented Dec 12, 2017 via email

@jeremymickel
Copy link
Author

jeremymickel commented Dec 12, 2017 via email

@jeremymickel
Copy link
Author

jeremymickel commented Dec 13, 2017 via email

@typemytype
Copy link
Owner

1.8.4 is the latest retail version

@jeremymickel
Copy link
Author

Thanks Frederik - updated to 1.8.4 but still get the same error.

screen shot 2017-12-13 at 2 33 29 pm

@typemytype
Copy link
Owner

mmm, still weird it finds the external cu2qu first before the internal one.

could you check inside RoboFont: "RoboFont.app/Resources/lib/Python2.7"
and see if cu2qu is in there

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