IBM / pyflowgraph

Flow graphs for Python
Apache License 2.0
25 stars 8 forks source link

Pip installation error due to dependency issue #33

Open doshibhavy opened 3 years ago

doshibhavy commented 3 years ago

I'm trying to install PyFlowGraph in conda environment using PIP but the installation is failing with given error.

`(base) C:\Windows\system32>pip install pyflowgraph==0.0.1 Collecting pyflowgraph==0.0.1 Downloading pyflowgraph-0.0.1-py2.py3-none-any.whl (16 kB) Requirement already satisfied: six in c:\programdata\miniconda3\lib\site-packages (from pyflowgraph==0.0.1) (1.15.0) Collecting PySide<1.2.4,>=1.2.2 Using cached PySide-1.2.2.tar.gz (9.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\ProgramData\Miniconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\setup.py'"'"'; file='"'"'C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\doshi\AppData\Local\Temp\pip-pip-egg-info-iissbheg' cwd: C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\setup.py", line 89, in from utils import rmtree File "C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\utils.py", line 10, in import popenasync File "C:\Users\doshi\AppData\Local\Temp\pip-install-b0fj7thi\pyside_942316f248e34c29a40589d59519b7b6\popenasync.py", line 26, in if subprocess.mswindows: AttributeError: module 'subprocess' has no attribute 'mswindows'

WARNING: Discarding https://files.pythonhosted.org/packages/b4/7b/2fc9d9e5c651c1550362d87bc4ab4cfe5368b312c1eaf477b5a4be708abd/PySide-1.2.2.tar.gz#sha256=53129fd85e133ef630144c0598d25c451eab72019cdcb1012f2aec773a3f25be (from https://pypi.org/simple/pyside/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement PySide<1.2.4,>=1.2.2 (from pyflowgraph) ERROR: No matching distribution found for PySide<1.2.4,>=1.2.2`

sophiakolak commented 2 years ago

I'm also getting this error. The issue is actually coming from failure to install PySide (one of the dependencies). When I try to just separately install PySide using pip3 install PySide I get the same error as you AttributeError: module 'subprocess' has no attribute 'mswindows' After googling around, this error seems to be a problem with PySide's compatibility with python3. This package (pyflowgraph) requires PySide<1.2.4 and >=1.2.2, but as far as I can tell, Python3 now works with PySide2 and PySide is deprecated. In general I get the sense that pyflowgrah is not configured to work with Python3. It could probably be fixed by updating the dependencies, but I don't really feel like digging into that. I was able to install by running pip2 install pyflowgraph==0.0.2 but this isn't ideal, since most people (including myself) are using Python3 environments.