RDFLib/rdflib — Issue #177: "python setup.py egg_info": except TypeError, te: SyntaxError: invalid syntax
Author: gjhiggins
Created: 2012-02-20 08:34:29+00:00
State: open

brianomi...@gmail.com, 2011-09-22T15:09:17.000Z

Installing selenium and getting python SyntaxError from rdflib.

brianos-macbook-pro:rdflib briano$ uname -a
Darwin brianos-macbook-pro.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
brianos-macbook-pro:rdflib briano$

brianos-macbook-pro:rdflib briano$ python --version
Python 3.2.2
brianos-macbook-pro:rdflib briano$

brianos-macbook-pro:~ briano$ pip install selenium
Downloading/unpacking selenium
Real name of requirement selenium is selenium
Downloading selenium-2.6.0.tar.gz (2.4Mb): 2.4Mb downloaded
Running setup.py egg_info for package selenium
no previously-included directories found matching '*'
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma

Downloading/unpacking rdflib==3.1.0 (from selenium)
Real name of requirement rdflib is rdflib
Downloading rdflib-3.1.0.tar.gz (249Kb): 249Kb downloaded
Running setup.py egg_info for package rdflib
Traceback (most recent call last):
File "", line 14, in
File "/Users/briano/build/rdflib/setup.py", line 6, in
from rdflib import __version__
File "rdflib/__init__.py", line 64, in
from rdflib.term import URIRef, BNode, Literal, Variable
File "rdflib/term.py", line 367
except TypeError, te:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/Users/briano/build/rdflib/setup.py", line 6, in

from rdflib import __version__

File "rdflib/__init__.py", line 64, in

from rdflib.term import URIRef, BNode, Literal, Variable

File "rdflib/term.py", line 367

except TypeError, te:

^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/briano/.pip/pip.log
brianos-macbook-pro:~ briano$
brianos-macbook-pro:~ briano$
brianos-macbook-pro:~ briano$
brianos-macbook-pro:~ briano$
brianos-macbook-pro:~ briano$
brianos-macbook-pro:~ briano$ cd /Users/briano/build/rdflib
brianos-macbook-pro:rdflib briano$
brianos-macbook-pro:rdflib briano$
brianos-macbook-pro:rdflib briano$
brianos-macbook-pro:rdflib briano$ python setup.py egg_info
Traceback (most recent call last):
File "setup.py", line 6, in
from rdflib import __version__
File "/Users/briano/build/rdflib/rdflib/__init__.py", line 64, in
from rdflib.term import URIRef, BNode, Literal, Variable
File "/Users/briano/build/rdflib/rdflib/term.py", line 367
except TypeError, te:
^
SyntaxError: invalid syntax
brianos-macbook-pro:rdflib briano$

Comment 1 by gjhigg...@gmail.com
++ Installing selenium and getting python SyntaxError from rdflib.
++ brianos-macbook-pro:rdflib briano$ python --version
++ Python 3.2.2
^^^^^

rdflib has not yet been ported to run on Python 3.

Comment 2 by brianomi...@gmail.com
reverting back to python 2.6 seems to help;

brianos-macbook-pro:~ briano$ sudo pip install selenium
Downloading/unpacking selenium
Running setup.py egg_info for package selenium
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root'
warnings.warn(msg)
Downloading/unpacking rdflib==3.1.0 (from selenium)
Running setup.py egg_info for package rdflib
Installing collected packages: selenium, rdflib
Running setup.py install for selenium
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root'
warnings.warn(msg)
Running setup.py install for rdflib
Successfully installed selenium rdflib
Cleaning up...
brianos-macbook-pro:~ briano$ python --version
Python 2.6.1
brianos-macbook-pro:~ briano$