gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Syntax error in iri2uri.pyc while installing #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Python3, along with older versions.
2. Install httplib2 with an older version of Python.
3. Install httplib2 with Python3.

What is the expected output? What do you see instead?
I shouldn't have seen a syntax error.

user@comp:~/Desktop/httplib2-0.5.0$ sudo python3 setup.py install
running install
running build
running build_py
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
Removing /usr/local/lib/python3.0/dist-packages/httplib2-0.5.0.egg-info
Writing /usr/local/lib/python3.0/dist-packages/httplib2-0.5.0.egg-info

What version of the product are you using? On what operating system?
httplib2-0.5.0
Python 3.0.1+ (r301:69556, Apr 15 2009, 15:59:22) [GCC 4.3.3] on linux2
Eeebuntu (based on Ubuntu) Linux

Original issue reported on code.google.com by Jir...@gmail.com on 28 Oct 2009 at 9:28

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
"""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