brands-d / kMap

kMap.py is a python based program for simulation and data analysis in photoemission tomography.
GNU General Public License v3.0
23 stars 9 forks source link

Manually install with python setup.py install #31

Closed tromask closed 3 years ago

tromask commented 3 years ago

Tried to make a new installation with python setup.py install, while having a slightly different package version, e.g. matplotlib=3.3.3 instead of 3.3.0. It seems like after install kmap, the script tries to still install the packages according to requirements.txt. Is it as intended?

(base) C:\Users\admin\Programs\kMap>python setup.py install
C:\Users\admin\Miniconda3\lib\site-packages\setuptools\dist.py:452: UserWarning: Normalizing '1.5.0-b' to '1.5.0b0'
  warnings.warn(tmpl.format(**locals()))
running install
running bdist_egg
running egg_info
writing kMap.egg-info\PKG-INFO
writing dependency_links to kMap.egg-info\dependency_links.txt
writing requirements to kMap.egg-info\requires.txt
writing top-level names to kMap.egg-info\top_level.txt
reading manifest file 'kMap.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'kMap.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying kmap\kMap.py -> build\lib\kmap
copying kmap\__init__.py -> build\lib\kmap
copying kmap\config\config.py -> build\lib\kmap\config
......
......
byte-compiling build\bdist.win-amd64\egg\kmap\tests\__init__.py to __init__.cpython-38.pyc
byte-compiling build\bdist.win-amd64\egg\kmap\__init__.py to __init__.cpython-38.pyc
byte-compiling build\bdist.win-amd64\egg\kmap\__main__.py to __main__.cpython-38.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying kMap.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating 'dist\kMap-1.5.0b0-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing kMap-1.5.0b0-py3.8.egg
creating c:\users\admin\miniconda3\lib\site-packages\kMap-1.5.0b0-py3.8.egg
Extracting kMap-1.5.0b0-py3.8.egg to c:\users\admin\miniconda3\lib\site-packages
Adding kMap 1.5.0b0 to easy-install.pth file

Installed c:\users\admin\miniconda3\lib\site-packages\kmap-1.5.0b0-py3.8.egg
Processing dependencies for kMap==1.5.0b0
Searching for PyQt5==5.15.0
Reading https://pypi.org/simple/PyQt5/
Downloading https://files.pythonhosted.org/packages/7c/06/0b3cbfd63fc6cbd3585d1a3b2729055e19c646ae329050e174e3c29a4741/PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl#sha256=5bac0fab1e9891d73400c2470a9cb810e6bdbc7027a84ae4d3ec83436f1109ec
Best match: PyQt5 5.15.0
Processing PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
Installing PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl to c:\users\admin\miniconda3\lib\site-packages
Adding PyQt5 5.15.0 to easy-install.pth file
Installing pylupdate5-script.py script to C:\Users\admin\Miniconda3\Scripts
Installing pylupdate5.exe script to C:\Users\admin\Miniconda3\Scripts
Installing pyrcc5-script.py script to C:\Users\admin\Miniconda3\Scripts
Installing pyrcc5.exe script to C:\Users\admin\Miniconda3\Scripts
Installing pyuic5-script.py script to C:\Users\admin\Miniconda3\Scripts
Installing pyuic5.exe script to C:\Users\admin\Miniconda3\Scripts

Installed c:\users\admin\miniconda3\lib\site-packages\pyqt5-5.15.0-py3.8-win-amd64.egg
Searching for numpy==1.19.0
Reading https://pypi.org/simple/numpy/
Downloading https://files.pythonhosted.org/packages/df/f3/3fdea08ad680100b5e7abf810a154ce142a63266df1abfdca5cb0f66cca1/numpy-1.19.0-cp38-cp38-win_amd64.whl#sha256=c2edbb783c841e36ca0fa159f0ae97a88ce8137fb3a6cd82eae77349ba4b607b
Best match: numpy 1.19.0
Processing numpy-1.19.0-cp38-cp38-win_amd64.whl
Installing numpy-1.19.0-cp38-cp38-win_amd64.whl to c:\users\admin\miniconda3\lib\site-packages
Adding numpy 1.19.0 to easy-install.pth file
Installing f2py-script.py script to C:\Users\admin\Miniconda3\Scripts
Installing f2py.exe script to C:\Users\admin\Miniconda3\Scripts

Installed c:\users\admin\miniconda3\lib\site-packages\numpy-1.19.0-py3.8-win-amd64.egg
Searching for matplotlib==3.3.0
Reading https://pypi.org/simple/matplotlib/
Downloading https://files.pythonhosted.org/packages/a3/f0/0e5f5fe42696aef6a5ab7555658f700ea1caee51406751e559b596dbb70d/matplotlib-3.3.0-cp38-cp38-win_amd64.whl#sha256=2a9d10930406748b50f60c5fa74c399a1c1080aa6ce6e3fe5f38473b02f6f06d
interrupted
brands-d commented 3 years ago

The problem seems to be that I specified the version numbers with a '==' instead of a '>=', meaning it will look for the exact version 3.3.0 and not use and higher ones.

This will be fixed in an upcoming bigger update because I'm in the process of reworking the installation process anyways to address issue 20.

brands-d commented 3 years ago

The update is now live (commit c061074) and any matplotlib version equal or above 3.3.0 should be fine now. Same for the other dependencies. However, it was necessary to change the versions for h5py and pyqtgraph. They may need to be reinstalled the first time.