Typefacet AttributeError

lepascal's picture


I wanted to try out the TypeFacet autokern script. I'm using it with Anaconda. When I run the script, I get the following error:

$ env PYTHONPATH=dependencies/RoboFab/lib:dependencies/pystache:dependencies/svgwrite:dependencies/PyYAML/lib:dependencies/FontTools/Lib:python/src-main python python/src-main/autokern/Autokern.py --ufo-src-path python/src-main/autokern/Regular.ufo --ufo-dst-path out/Regular-kerned.ufo --min-distance-ems 0.00 --max-distance-ems 0.00 --max-x-extrema-overlap-ems 0.0 --intrusion-tolerance-ems 0.0 --precision-ems 0.005 --log-path logs --kern-samples-only

Processing configuration...
Renaming old logs folder to: logs.2
Error: 'NoneType' object has no attribute 'endswith'
Traceback (most recent call last):
File "python/src-main/autokern/Autokern.py", line 3248, in
File "python/src-main/autokern/Autokern.py", line 3188, in process
File "python/src-main/autokern/Autokern.py", line 373, in configure
File "python/src-main/autokern/Autokern.py", line 335, in configureLogging
srcCssFile = os.path.abspath(os.path.join(TFSProject.findProjectRootFolder(), 'data', 'styles.css'))
File "/Users/pascal/anaconda/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Somehow it has to do with that findProjectRootFolder() doesn't return anything. However, I have no idea how to fix this. Any ideas, anyone?


lepascal's picture

I accidentally quadruple-posted due to 503 errors. Could someone delete the three other posts, please?

Syndicate content Syndicate content