#147 ✓resolved
Ben Blanch

Syntax errors

Reported by Ben Blanch | November 10th, 2014 @ 11:07 PM

After a fresh install of tvnamer on a Synology DS214play, there are multiple syntax errors. Looking for guidance.

/volume1/Downloads # ipkg install python25 py25-setuptools git
ipkg install python25 py25-setuptools git  
Package python25 (2.5.6-2) installed in /opt/ is up to date.  
Package py25-setuptools (0.6c11-2) installed in /opt/ is up to date.  
Package git ( installed in /opt/ is up to date.  
Nothing to be done  
Successfully terminated.  
/volume1/Downloads # cd /volume1/@tmp
cd /volume1/@tmp  
/volume1/@tmp # git clone https://github.com/dbr/tvnamer.git
git clone https://github.com/dbr/tvnamer.git  
Cloning into 'tvnamer'...  
remote: Counting objects: 2838, done.  
remote: Compressing objects: 100% (54/54), done.  
remote: Total 2838 (delta 29), reused 0 (delta 0)  
Receiving objects: 100% (2838/2838), 780.49 KiB | 224.00 KiB/s, done.  
Resolving deltas: 100% (1759/1759), done.  
Checking connectivity... done  
/volume1/@tmp # cd tvnamer
cd tvnamer  
/volume1/@tmp/tvnamer # python setup.py install
python setup.py install  
running install  
running bdist_egg  
running egg_info  
creating tvnamer.egg-info  
writing requirements to tvnamer.egg-info/requires.txt  
writing tvnamer.egg-info/PKG-INFO  
writing top-level names to tvnamer.egg-info/top_level.txt  
writing dependency_links to tvnamer.egg-info/dependency_links.txt  
writing entry points to tvnamer.egg-info/entry_points.txt  
writing manifest file 'tvnamer.egg-info/SOURCES.txt'  
reading manifest file 'tvnamer.egg-info/SOURCES.txt'  
reading manifest template 'MANIFEST.in'  
warning: no files found matching 'Fabfile'  
writing manifest file 'tvnamer.egg-info/SOURCES.txt'  
installing library code to build/bdist.linux-i686/egg  
running install_lib  
running build_py  
creating build  
creating build/lib  
creating build/lib/tvnamer  
copying tvnamer/__init__.py -> build/lib/tvnamer  
copying tvnamer/_titlecase.py -> build/lib/tvnamer  
copying tvnamer/cliarg_parser.py -> build/lib/tvnamer  
copying tvnamer/compat.py -> build/lib/tvnamer  
copying tvnamer/config.py -> build/lib/tvnamer  
copying tvnamer/config_defaults.py -> build/lib/tvnamer  
copying tvnamer/main.py -> build/lib/tvnamer  
copying tvnamer/tvnamer_exceptions.py -> build/lib/tvnamer  
copying tvnamer/unicode_helper.py -> build/lib/tvnamer  
copying tvnamer/utils.py -> build/lib/tvnamer  
creating build/bdist.linux-i686  
creating build/bdist.linux-i686/egg  
creating build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/__init__.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/_titlecase.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/cliarg_parser.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/compat.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/config.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/config_defaults.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/main.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/tvnamer_exceptions.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/unicode_helper.py -> build/bdist.linux-i686/egg/tvnamer  
copying build/lib/tvnamer/utils.py -> build/bdist.linux-i686/egg/tvnamer  
byte-compiling build/bdist.linux-i686/egg/tvnamer/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/_titlecase.py to _titlecase.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/cliarg_parser.py to cliarg_parser.pyc  
build/bdist.linux-i686/egg/tvnamer/cliarg_parser.py:40: Warning: 'with' will become a reserved keyword in Python 2.6  
  File "build/bdist.linux-i686/egg/tvnamer/cliarg_parser.py", line 40
    with Group(parser, "Console output") as g:
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-i686/egg/tvnamer/compat.py to compat.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/config.py to config.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/config_defaults.py to config_defaults.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/main.py to main.pyc  
build/bdist.linux-i686/egg/tvnamer/main.py:93: Warning: 'as' will become a reserved keyword in Python 2.6  
  File "build/bdist.linux-i686/egg/tvnamer/main.py", line 93
    except OSError as e:
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-i686/egg/tvnamer/tvnamer_exceptions.py to tvnamer_exceptions.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/unicode_helper.py to unicode_helper.pyc  
byte-compiling build/bdist.linux-i686/egg/tvnamer/utils.py to utils.pyc  
build/bdist.linux-i686/egg/tvnamer/utils.py:313: Warning: 'as' will become a reserved keyword in Python 2.6  
  File "build/bdist.linux-i686/egg/tvnamer/utils.py", line 313
    except re.error as errormsg:
SyntaxError: invalid syntax

creating build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying tvnamer.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO  
zip_safe flag not set; analyzing archive contents...  
creating dist  
creating 'dist/tvnamer-2.3-py2.5.egg' and adding 'build/bdist.linux-i686/egg' to it  
removing 'build/bdist.linux-i686/egg' (and everything under it)  
Processing tvnamer-2.3-py2.5.egg  
Copying tvnamer-2.3-py2.5.egg to /opt/local/lib/python2.5/site-packages  
Adding tvnamer 2.3 to easy-install.pth file  
Installing tvnamer script to /opt/local/bin

Installed /opt/local/lib/python2.5/site-packages/tvnamer-2.3-py2.5.egg  
Processing dependencies for tvnamer==2.3  
Searching for tvdb-api>=1.10  
Reading http://pypi.python.org/simple/tvdb_api/  
Best match: tvdb-api 1.10  
Downloading https://pypi.python.org/packages/source/t/tvdb_api/tvdb_api-1.10.tar.gz#md5=c6ad0033d9565cb52a79ff6e70f22770  
Processing tvdb_api-1.10.tar.gz  
Running tvdb_api-1.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-f7xhKt/tvdb_api-1.10/egg-dist-tmp-7mdhTS  
build/bdist.linux-i686/egg/tvdb_api.py:585: Warning: 'as' will become a reserved keyword in Python 2.6  
  File "build/bdist.linux-i686/egg/tvdb_api.py", line 585
    except (IOError, urllib2.URLError) as errormsg:
SyntaxError: invalid syntax

zip_safe flag not set; analyzing archive contents...  
Adding tvdb-api 1.10 to easy-install.pth file

Installed /opt/local/lib/python2.5/site-packages/tvdb_api-1.10-py2.5.egg  
Searching for simplejson==3.6.5  
Best match: simplejson 3.6.5  
Processing simplejson-3.6.5-py2.5-linux-i686.egg  
simplejson 3.6.5 is already the active version in easy-install.pth

Using /opt/local/lib/python2.5/site-packages/simplejson-3.6.5-py2.5-linux-i686.egg  
Finished processing dependencies for tvnamer==2.3  
/volume1/@tmp/tvnamer # ln -s /opt/local/bin/tvnamer /usr/bin/tvnamer
ln -s /opt/local/bin/tvnamer /usr/bin/tvnamer  
/volume1/@tmp/tvnamer # tvnamer --help
tvnamer --help  
/opt/local/lib/python2.5/site-packages/tvnamer-2.3-py2.5.egg/tvnamer/main.py:93: Warning: 'as' will become a reserved keyword in Python 2.6
Traceback (most recent call last):  
  File "/usr/bin/tvnamer", line 8, in <module>
    load_entry_point('tvnamer==2.3', 'console_scripts', 'tvnamer')()
  File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "/opt/lib/python2.5/site-packages/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/opt/local/lib/python2.5/site-packages/tvnamer-2.3-py2.5.egg/tvnamer/main.py", line 93
    except OSError as e:
SyntaxError: invalid syntax

Comments and changes to this ticket

  • dbr/Ben

    dbr/Ben November 11th, 2014 @ 06:28 PM

    • State changed from “new” to “open”

    Ah, the issue is I removed support for Python 2.5 in order to support Python 3.3+

    Both 2.6 and 2.7 are supported - can you upgrade to either of these?

    tvnamer==2.3 with tvdb_api==1.9 are the last versions which support Python 2.5

  • dbr/Ben

    dbr/Ben August 25th, 2018 @ 01:51 PM

    • State changed from “open” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket