pyang 1.3 does not work
GoogleCodeExporter opened this issue · 7 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. downloaded pyang 1.3
2. followed instructions in the readme file
3. after either installing or running locally, I always get an error when
running any command in pyang.
What is the expected output? What do you see instead?
- can't use pyang 1.3. Always get the same error with any command.
What version of the product are you using? On what operating system?
- pyang 1.3 (note pyang 1.2 runs without any problems)
- bash-3.2$ cat /etc/release
Oracle Solaris 10 8/11 s10x_u10wos_17b X86
Please provide any additional information below.
Error I always get when trying to run pyang 1.3:
bash-3.2$ pyang -h
Traceback (most recent call last):
File "/home/seibss/pyang/pyang-1.3/bin/pyang", line 310, in <module>
run()
File "/home/seibss/pyang/pyang-1.3/bin/pyang", line 27, in run
plugin.init(plugindirs)
File "/home/seibss/pyang/pyang-1.3/pyang/plugin.py", line 35, in init
pluginmod = __import__(fname[:-3])
File "/home/seibss/pyang/pyang-1.3/pyang/plugins/jsonxsl.py", line 19
type_class = {t:"unquoted" for t in
^
SyntaxError: invalid syntax
bash-3.2$
Original issue reported on code.google.com by bert.sch...@gmail.com
on 29 Apr 2013 at 8:56
GoogleCodeExporter commented
Could you please check the current SVN version?
Original comment by lada.lho...@gmail.com
on 29 Apr 2013 at 10:00
- Changed state: Started
GoogleCodeExporter commented
What's your version of Python (python --version)?
Original comment by lada.lho...@gmail.com
on 29 Apr 2013 at 9:17
- Changed state: Accepted
GoogleCodeExporter commented
bash-3.2$ python --version
Python 2.6.4
Original comment by bert.sch...@gmail.com
on 29 Apr 2013 at 10:28
GoogleCodeExporter commented
The changes I made to make it work with Python 2.6 are now only in the Google
Code repository, so you need SVN to check it out - or git-svn, if you use git.
It will take some time before the changes appear in an official release.
Alternatively, release 1.3 it will work with Python 2.7 and higher (including
3.x).
Original comment by lada.lho...@gmail.com
on 29 Apr 2013 at 11:11
GoogleCodeExporter commented
We don't use SVN (Subversion), it is not installed on the server.
Why would I need SVN to use pyang ?
Original comment by bert.sch...@gmail.com
on 29 Apr 2013 at 10:29
GoogleCodeExporter commented
Thanks. I took down the fix and it pyang 1.3 now works with Python 2.6
Original comment by bert.sch...@gmail.com
on 29 Apr 2013 at 12:00
GoogleCodeExporter commented
Original comment by lada.lho...@gmail.com
on 29 Apr 2013 at 12:01
- Changed state: Fixed