pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

Failed to install 'python-graphviz' with conda and Python 3.7 #2

Closed fmannhardt closed 6 years ago

fmannhardt commented 6 years ago

Trying to install pm4py according to the installation guide, I encounter the following error:

Collecting python-graphviz (from -r requirements.txt (line 9))
  Could not find a version that satisfies the requirement python-graphviz (from -r requirements.txt (line 9)) (from versions: )
No matching distribution found for python-graphviz (from -r requirements.txt (line 9))

Full trace is here:

PS C:\Process Mining\Python\pm4py> pip install -r requirements.txt
Collecting ciso8601 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/61/d8/e17159b6037a26e3facdfeec8750dd17312284a915c5e0da79562b982035/ciso8601-2.0.1.tar.gz
Collecting cvxopt (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/df/06/1d498703387acd6593592a57cd8fee740e5e8e53a0feed453afc024b9b92/cvxopt-1.2.1-cp37-cp37m-win_amd64.whl (803kB)
    100% |████████████████████████████████| 808kB 1.6MB/s
Collecting dataclasses (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/26/2f/1095cdc2868052dd1e64520f7c0d5c8c550ad297e944e641dbf1ffbb9a5d/dataclasses-0.6-py3-none-any.whl
Collecting flask (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 2.0MB/s
Collecting flask-cors (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/d1/db/f3495569d5c3e2bdb9fb8a66c54503364abb6f35a9da2227cf5c9c50dc42/Flask_Cors-3.0.6-py2.py3-none-any.whl
Collecting lxml (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/56/95/ec75d37b4244c00a49584a29bce2adc11b81a6295eadf410b3bfd8f7fa7d/lxml-4.2.4-cp37-cp37m-win_amd64.whl (3.6MB)
    100% |████████████████████████████████| 3.6MB 1.6MB/s
Collecting graphviz (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/47/87/313cd4ea4f75472826acb74c57f94fc83e04ba93e4ccf35656f6b7f502e2/graphviz-0.9-py2.py3-none-any.whl
Collecting pandas (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/58/a8/03e5fe0edbc522e46cb27df2abfb4266814129253d8462f38bc704a76a2a/pandas-0.23.4-cp37-cp37m-win_amd64.whl (7.9MB)
    100% |████████████████████████████████| 7.9MB 1.7MB/s
Collecting python-graphviz (from -r requirements.txt (line 9))
  Could not find a version that satisfies the requirement python-graphviz (from -r requirements.txt (line 9)) (from versions: )
No matching distribution found for python-graphviz (from -r requirements.txt (line 9))

My environment is:

PS C:\Process Mining\Python\pm4py> pip list
Package           Version
----------------- ---------
astroid           2.0.4
certifi           2018.8.24
colorama          0.3.9
isort             4.3.4
lazy-object-proxy 1.3.1
mccabe            0.6.1
pip               18.0
pylint            2.1.1
setuptools        40.2.0
six               1.11.0
wheel             0.31.1
wincertstore      0.2
wrapt             1.10.11

and

PS C:\Process Mining\Python\pm4py> conda list
# packages in environment at C:\Users\felixm\AppData\Local\Continuum\anaconda3\envs\pm4py:
#
# Name                    Version                   Build  Channel
astroid                   2.0.4                     <pip>
certifi                   2018.8.24                py37_1
colorama                  0.3.9                     <pip>
isort                     4.3.4                     <pip>
lazy-object-proxy         1.3.1                     <pip>
mccabe                    0.6.1                     <pip>
pip                       10.0.1                   py37_0
pip                       18.0                      <pip>
pylint                    2.1.1                     <pip>
python                    3.7.0                hea74fb7_0
setuptools                40.2.0                   py37_0
six                       1.11.0                    <pip>
vc                        14                   h0510ff6_3
vs2015_runtime            14.0.25123                    3
wheel                     0.31.1                   py37_0
wincertstore              0.2                      py37_0
wrapt                     1.10.11                   <pip>

Looking at the available packages: https://pypi.org/search/?q=graphviz it seems that you want to use this one? https://pypi.org/project/graphviz-python/

s-j-v-zelst commented 6 years ago

Hmm, this indeed seems not to be a pip package. I needed it in my miniconda installation to make it work. I will remove it from the requirements list for now. Have to see what a cross platform for this solution is...

madhavij commented 5 years ago

Keep running into Failed building wheel for ciso8601 even with Python 3.6

Javert899 commented 5 years ago

Hi,

This issue shows up when the Visual Studio along with the C++ compiler is not installed correctly

Try following strictly the installation tutorial on the website http://pm4py.pads.rwth-aachen.de/windows/