Issue 101 in python-graph: Installation using setup.py does not work in Python 3

12 views
Skip to first unread message

python...@googlecode.com

unread,
Oct 13, 2011, 3:50:15 AM10/13/11
to python...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 101 by peni...@gmail.com: Installation using setup.py does not
work in Python 3
http://code.google.com/p/python-graph/issues/detail?id=101

If I try to install any of two modules (core, dot) in pygraph, I got an
error "SyntaxError: invalid syntax". It seems to be a problem with
different syntax in Python version 2.x and 3.x. There are also problems
with usage of print as a keyword, usage of obsolete setuptools and
importing urllib2.


What steps will reproduce the problem?
1. Unpack the distribution package and change directory
to 'python-graph-1.8.0/core'
2. Run command: setup.py install
3. The same problem is also in module 'dot'

What is the expected output? What do you see instead?
I get an error message
E:\tmp\python-graph-1.8.0\core>setup.py install
Traceback (most recent call last):
File "E:\tmp\python-graph-1.8.0\core\setup.py", line 7, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\tmp\python-graph-1.8.0\core\setup.py", line 9, in <module>
import ez_setup
File "E:\tmp\python-graph-1.8.0\core\ez_setup\__init__.py", line 106
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
Windows XP, Python 3.2.1, python-graph 1.8.0

python...@googlecode.com

unread,
Nov 13, 2011, 7:01:09 AM11/13/11
to python...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 101 by pmatiello: Installation using setup.py does not

Hello, are you able to install if you remove the ez_setup directory inside
core?

Also, you won't be able to use dot with Python 3 as it requires pydot
(which is still Python2-only, AFAIK).

python...@googlecode.com

unread,
Nov 22, 2011, 4:51:06 AM11/22/11
to python...@googlegroups.com

Comment #2 on issue 101 by peni...@gmail.com: Installation using setup.py

Hello,
I am not able to install the package core wihout the directory ez_setup.
The reason is apparent from the source code of the file setup.py.
It seems tat setuptools are available only for Python up to 2.7, so
ez_setup is imported in setup.py.

By the way, pydot has a branch for Python 3.x, so the situation is not so
hopeless.

Cheers,
Tomas

python...@googlecode.com

unread,
Nov 22, 2011, 7:46:14 PM11/22/11
to python...@googlegroups.com

Comment #3 on issue 101 by pmatiello: Installation using setup.py does not

I played a bit here and managed to install python-graph-core on Python
3.2.2 without issues. I believe that you are lacking Distribute in your
Python3 installation.

http://pypi.python.org/pypi/distribute

Please install Distribute and then try to install python-graph-core again.
Let me know if this works out for you.

python...@googlecode.com

unread,
Dec 31, 2011, 7:31:18 AM12/31/11
to python...@googlegroups.com
Updates:
Status: Invalid

Comment #4 on issue 101 by pmatiello: Installation using setup.py does not

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages