scrapinghub / js2xml

Convert Javascript code to an XML document
MIT License
186 stars 23 forks source link

warning saying: 'Couldn't write lextab module 'lextab' #16

Closed pawelmhm closed 7 years ago

pawelmhm commented 8 years ago

When running my spider using js2xml in the cloud I get following warning. This appears without any js2xml usage, just after importing module. I'm using Scrapy and I have couple of spiders importing it. This message appears at the top of the logs for all spiders them regardless if they use js2xml or not.

[stderr] WARNING: Couldn't write lextab module 'lextab'. [Errno 13] Permission denied: '/app/python/lib/python2.7/site-packages/js2xml/lextab.py'

not sure what it means. I suspect this is probably caused by some external library and looks like some permissions issue. I dont get this warning when running locally.

Opening issue because I'm not sure what it means and if it should be ignored or somehow fixed?

redapple commented 8 years ago

There was a fix for a similar issue https://github.com/scrapinghub/js2xml/pull/10 Probably not enough. I (or someone willing to dig) need to re-read PLY's sections on debugging, packaging advice on table generation