Closed eliasdorneles closed 7 years ago
I have the same error. @eliasdorneles You resolve this?
@podolskyi, I can investigate next week only. Do you get an error? As far as I know it's a warning only, yet annoying one.
I am getting the same error. And when I try to parse the example in the README, I get the following error:
Traceback (most recent call last):
File "
@akmahaja, can you provide input JavaScript ? Ideally as another issue since this one is about the warnings on yacc tables. Thanks.
@redapple I used the example on the gitpage of the js2xml, but it works fine for the pages I want to parse. So either I understood it incorrectly to use the example on the README page on the git or the example in not a valid input for the js2xml.parse. Thanks
@akmahaja , I'm able to run the example from the README in a fresh virtualenv with js2xml.
It does still show the warning WARNING: Couldn't create <module 'js2xml.yacctab' from '/home/paul/.virtualenvs/js2xml/local/lib/python2.7/site-packages/js2xml/yacctab.pyc'>. Won't overwrite existing tabmodule
(but it's a warning, not an error)
See the console logs here: https://gist.github.com/redapple/dc5ab033a8cc0cebfe4b
Here's what I ran this against:
$ pip freeze
argparse==1.2.1
js2xml==0.1.2
lxml==3.5.0
ply==3.8
slimit==0.8.1
wsgiref==0.1.2
Can you check again your input and your installation of js2xml? If you're getting an error, can I ask you to open a seperate issue, and paste input and statements that lead to the error. Thanks.
This change should fix the warnings: https://github.com/redapple/js2xml/pull/10
Closed via https://github.com/redapple/js2xml/pull/10
I've tried installing js2xml into a new virtualenv, and I get a bunch of warnings complaining about not being able to write lex and yacc table pyc files.
Despite this, the library still works -- it's just that the warnings are annoying. More environment info: