davidvilla / pydot

pydot fork supporting python-3 and pyparsing >= 2.0
MIT License
6 stars 5 forks source link

Couldn't import dot_parser, loading of dot files will not be possible. #7

Open nehaljwani opened 8 years ago

nehaljwani commented 8 years ago
ubuntu@ip-172-31-43-96:/tmp$ virtualenv tmp
New python executable in tmp/bin/python
Installing setuptools, pip...done.
ubuntu@ip-172-31-43-96:/tmp$ source ./tmp/bin/activate
(tmp)ubuntu@ip-172-31-43-96:/tmp$ pip install pydot2
Downloading/unpacking pydot2
  Downloading pydot2-1.0.33.tar.gz
  Running setup.py (path:/tmp/tmp/build/pydot2/setup.py) egg_info for package pydot2

Downloading/unpacking pyparsing (from pydot2)
  Downloading pyparsing-2.1.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./tmp/lib/python2.7/site-packages (from pydot2)
Installing collected packages: pydot2, pyparsing
  Running setup.py install for pydot2

Successfully installed pydot2 pyparsing
Cleaning up...
(tmp)ubuntu@ip-172-31-43-96:/tmp$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pydot
Couldn't import dot_parser, loading of dot files will not be possible.
>>> 
(tmp)ubuntu@ip-172-31-43-96:/tmp$ 
johnyf commented 8 years ago

Fixed in pydot >= 1.0.29: https://github.com/erocarrera/pydot/issues/117