Closed GoogleCodeExporter closed 8 years ago
I thought I had the solution when I found httplib2-python3-0.5.0 at
http://httplib2.googlecode.com/files/httplib2-python3-0.5.0.tar.gz, but I got
the
same problem. The "print" instruction that's in the second syntax error doesn't
look
like Python3. Maybe someone forgot to run 2to3?
user@comp:~/Desktop/httplib2/httplib2-python3-0.5.0$ sudo python3 setup.py
install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-3.0
creating build/lib.linux-i686-3.0/httplib2
copying httplib2/iri2uri.py -> build/lib.linux-i686-3.0/httplib2
copying httplib2/__init__.py -> build/lib.linux-i686-3.0/httplib2
running install_lib
byte-compiling /usr/local/lib/python3.0/dist-packages/httplib2/iri2uri.py to
iri2uri.pyc
File "/usr/local/lib/python3.0/dist-packages/httplib2/iri2uri.py", line 87
u"ftp://ftp.is.co.za/rfc/rfc1808.txt",
^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python3.0/dist-packages/httplib2/__init__.py to
__init__.pyc
File "/usr/local/lib/python3.0/dist-packages/httplib2/__init__.py", line 726
print "connect: (%s, %s)" % (self.host, self.port)
^
SyntaxError: invalid syntax
running install_egg_info
Writing /usr/local/lib/python3.0/dist-packages/httplib2-python3_0.5.0.egg-info
Original comment by Jir...@gmail.com
on 29 Oct 2009 at 3:31
I installed the non-3.0 lib, realized my mistake, then installed the 3.0. Got
the same
error. I deleted the site-packages directory and reinstalled the 3.0 lib and
it
worked.
I think this may be a case of the old files getting called accidentally by the
3.0 lib
(user install error?)
Original comment by samuelro...@gmail.com
on 13 Nov 2009 at 8:39
"""I think this may be a case of the old files getting called accidentally by
the 3.0
lib (user install error?)"""
I'll close the issue for now.
Original comment by joe.gregorio@gmail.com
on 26 Dec 2009 at 4:47
Original issue reported on code.google.com by
Jir...@gmail.com
on 28 Oct 2009 at 9:28