wting / python-graph

Automatically exported from code.google.com/p/python-graph
Other
5 stars 4 forks source link

Missing __init__.py in dist-packages/pygraph #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to install python graph with pip (it fails due to missing setup.py)
2. Go to downloaded sources /core and sudo python install.py
3. /usr/local/lib/python2.7/dist-packages/pygraph# ls
algorithms  classes  mixins  readwrite

What is the expected output? /usr/local/lib/python2.7/dist-packages/pygraph# ls
algorithms  classes  mixins  readwrite __init__.py __init__.pyc

What version of the product are you using? Happens in linux, windows and macos

That makes pyinstaller fail when executing generated packages that use 
pygraph-core

Original issue reported on code.google.com by julia.si...@biicode.com on 17 May 2013 at 7:04

GoogleCodeExporter commented 9 years ago
Hello, Julia. I've just made a test and both python-graph-core and 
python-graph-dot installed without issues with pip. Can you provide more 
information? What exact command line are you using to install python-graph?

Original comment by pmatiello on 18 May 2013 at 10:20

GoogleCodeExporter commented 9 years ago
*$ sudo pip install python-graph*
Password:
Downloading/unpacking python-graph
  Downloading python-graph-1.8.2.zip (341kB): 341kB downloaded
  Running setup.py egg_info for package python-graph
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
    IOError: [Errno 2] *No such file or directory:
'/tmp/pip-build/python-graph/setup.py'*
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

IOError: [Errno 2] No such file or directory:
'/tmp/pip-build/python-graph/setup.py'

*$ ls  /tmp/pip-build/python-graph/*
__MACOSX     pip-egg-info python-graph

Original comment by julia.si...@biicode.com on 20 May 2013 at 7:55

GoogleCodeExporter commented 9 years ago
Please try installing the package python-graph-core. Something like the line 
below should work:

$ sudo pip install python-graph-core

Original comment by pmatiello on 20 May 2013 at 10:52

GoogleCodeExporter commented 9 years ago

Original comment by pmatiello on 20 May 2013 at 10:52

GoogleCodeExporter commented 9 years ago
$ *sudo pip install python-graph-core*
Downloading/unpacking python-graph-core
  Downloading python-graph-core-1.8.2.tar.gz
  Running setup.py egg_info for package python-graph-core

Installing collected packages: python-graph-core
  Running setup.py install for python-graph-core
    *Skipping installation of
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-p
ackages/pygraph/__init__.py
(namespace package)*

    Installing
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-p
ackages/python_graph_core-1.8.2-py2.7-nspkg.pth
Successfully installed python-graph-core
Cleaning up...

$ ls
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-p
ackages/pygraph/
algorithms classes    mixins     readwrite

(no __init__.py there)

Original comment by julia.si...@biicode.com on 21 May 2013 at 7:44