gustavochm / phasepy

Other
82 stars 28 forks source link

Can't install it on Arch Linux #13

Closed fedebenelli closed 2 years ago

fedebenelli commented 3 years ago

Hi, i'm trying to install it on Arch Linux 5.13.13-arch1-1 And I'm getting the following output in pip: I've tried both installing it on my system and on a virtual environment to avoid conflicts with other packages, but in neither cases it works.

Collecting phasepy
  Using cached phasepy-0.0.50.tar.gz (179 kB)
Requirement already satisfied: numpy in ./lib/python3.9/site-packages (from phasepy) (1.21.2)
Requirement already satisfied: scipy in ./lib/python3.9/site-packages (from phasepy) (1.7.1)
Requirement already satisfied: pandas in ./lib/python3.9/site-packages (from phasepy) (1.3.2)
Requirement already satisfied: pytz>=2017.3 in ./lib/python3.9/site-packages (from pandas->phasepy) (2021.1)
Requirement already satisfied: python-dateutil>=2.7.3 in ./lib/python3.9/site-packages (from pandas->phasepy) (2.8.2)
Requirement already satisfied: six>=1.5 in ./lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas->phasepy) (1.16.0)
Building wheels for collected packages: phasepy
  Building wheel for phasepy (setup.py): started
  Building wheel for phasepy (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/ruther/installs/phasepy/phasepy/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-y_fx1gj5
       cwd: /tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/
  Complete output (81 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/phasepy
  copying phasepy/saft_forcefield.py -> build/lib.linux-x86_64-3.9/phasepy
  copying phasepy/mixtures.py -> build/lib.linux-x86_64-3.9/phasepy
  copying phasepy/math.py -> build/lib.linux-x86_64-3.9/phasepy
  copying phasepy/constants.py -> build/lib.linux-x86_64-3.9/phasepy
  copying phasepy/__init__.py -> build/lib.linux-x86_64-3.9/phasepy
  creating build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/wongsandler.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/vtcubicpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/vtcubicmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/volume_solver.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/vdwpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/vdwmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/tsatpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/qmr.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/psatpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/mixingrules.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/mhv1.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/mhv.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/cubicpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/cubicmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/cubic.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/alphas.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  copying phasepy/cubic/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
  creating build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/stability.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/multiflash.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/lle.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/hazt.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/hazb.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/flash.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/equilibriumresult.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/dew.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/bubble.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  copying phasepy/equilibrium/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
  creating build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/ternaryfit.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/fitvt.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/fitpsat.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/fitmulticomponent.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/fitcii.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/binaryfit.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  copying phasepy/fit/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/fit
  creating build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/tensionresult.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/sgtpure.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/sgt_beta0.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/reference_component.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/path_sk.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/path_hk.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/linear_spot.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/coloc_z_ds.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/coloc_z.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  copying phasepy/sgt/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
  creating build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/wilson.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/virialgama.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/virial.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/uniquac.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/unifac.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/redlichkister.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/nrtl.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  copying phasepy/actmodels/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
  creating build/lib.linux-x86_64-3.9/phasepy/database
  copying phasepy/database/unifac.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
  copying phasepy/database/dortmund-2021.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
  copying phasepy/database/dortmund-2018.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
  running build_ext
  building 'phasepy.coloc_cy' extension
  creating build/temp.linux-x86_64-3.9
  creating build/temp.linux-x86_64-3.9/phasepy
  creating build/temp.linux-x86_64-3.9/phasepy/src
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/home/ruther/installs/phasepy/phasepy/include -I/usr/include/python3.9 -c phasepy/src/coloc_cy.c -o build/temp.linux-x86_64-3.9/phasepy/src/coloc_cy.o
  cc1: fatal error: phasepy/src/coloc_cy.c: No such file or directory
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for phasepy
  Running setup.py clean for phasepy
Failed to build phasepy
Installing collected packages: phasepy
    Running setup.py install for phasepy: started
    Running setup.py install for phasepy: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/ruther/installs/phasepy/phasepy/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uw8ze5si/install-record.txt --single-version-externally-managed --compile --install-headers /home/ruther/installs/phasepy/phasepy/include/site/python3.9/phasepy
         cwd: /tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/
    Complete output (81 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/phasepy
    copying phasepy/saft_forcefield.py -> build/lib.linux-x86_64-3.9/phasepy
    copying phasepy/mixtures.py -> build/lib.linux-x86_64-3.9/phasepy
    copying phasepy/math.py -> build/lib.linux-x86_64-3.9/phasepy
    copying phasepy/constants.py -> build/lib.linux-x86_64-3.9/phasepy
    copying phasepy/__init__.py -> build/lib.linux-x86_64-3.9/phasepy
    creating build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/wongsandler.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/vtcubicpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/vtcubicmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/volume_solver.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/vdwpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/vdwmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/tsatpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/qmr.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/psatpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/mixingrules.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/mhv1.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/mhv.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/cubicpure.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/cubicmix.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/cubic.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/alphas.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    copying phasepy/cubic/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/cubic
    creating build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/stability.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/multiflash.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/lle.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/hazt.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/hazb.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/flash.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/equilibriumresult.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/dew.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/bubble.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    copying phasepy/equilibrium/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/equilibrium
    creating build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/ternaryfit.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/fitvt.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/fitpsat.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/fitmulticomponent.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/fitcii.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/binaryfit.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    copying phasepy/fit/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/fit
    creating build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/tensionresult.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/sgtpure.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/sgt_beta0.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/reference_component.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/path_sk.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/path_hk.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/linear_spot.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/coloc_z_ds.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/coloc_z.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    copying phasepy/sgt/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/sgt
    creating build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/wilson.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/virialgama.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/virial.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/uniquac.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/unifac.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/redlichkister.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/nrtl.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    copying phasepy/actmodels/__init__.py -> build/lib.linux-x86_64-3.9/phasepy/actmodels
    creating build/lib.linux-x86_64-3.9/phasepy/database
    copying phasepy/database/unifac.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
    copying phasepy/database/dortmund-2021.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
    copying phasepy/database/dortmund-2018.xlsx -> build/lib.linux-x86_64-3.9/phasepy/database
    running build_ext
    building 'phasepy.coloc_cy' extension
    creating build/temp.linux-x86_64-3.9
    creating build/temp.linux-x86_64-3.9/phasepy
    creating build/temp.linux-x86_64-3.9/phasepy/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I/home/ruther/installs/phasepy/phasepy/include -I/usr/include/python3.9 -c phasepy/src/coloc_cy.c -o build/temp.linux-x86_64-3.9/phasepy/src/coloc_cy.o
    cc1: fatal error: phasepy/src/coloc_cy.c: No such file or directory
    compilation terminated.
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/ruther/installs/phasepy/phasepy/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_6694gmq/phasepy_ca664c48d8184bac9c0fc101292d1036/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-uw8ze5si/install-record.txt --single-version-externally-managed --compile --install-headers /home/ruther/installs/phasepy/phasepy/include/site/python3.9/phasepy Check the logs for full command output.
WARNING: You are using pip version 20.3.3; however, version 21.2.4 is available.
You should consider upgrading via the '/home/ruther/installs/phasepy/phasepy/bin/python -m pip install --upgrade pip' command.
gustavochm commented 2 years ago

Hi fedebenelli, its seems to be an issue when compiling the cython files. Could you manually verify if you have all the required package installed? This should something like: pip3 install cython and sudo apt-get install build-essential.

Please let me know how it goes.

fedebenelli commented 2 years ago

I needed cython! (was almost sure that I had it), thanks!