ANP-Granular / ParticleTracking

Library and GUI for tracking (rod-like) particles on camera images in 2D and 3D
https://particletracking.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 2 forks source link

[Applicationization branch] Cannot run the program #59

Closed dmitrypuzyrev closed 2 years ago

dmitrypuzyrev commented 2 years ago

I cannot run new installable version on home computer, both ways (from source as before and after installation). Nothing happens, no error produced but program does not start. It did not start at the Institute as well, but there Python and PyQT are old. Here's the installation log [PyQt line seems strange, but not sure it's a problem]:

(base) C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python>pip install .
Processing c:\users\dmitry\documents\github\track_gui\python
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: PyQt5>=5.15.4 in c:\users\dmitry\anaconda3\lib\site-packages (from RodTracker==0.0.1) (5.15.7)
Requirement already satisfied: pandas>=1.2.5 in c:\users\dmitry\anaconda3\lib\site-packages (from RodTracker==0.0.1) (1.5.0)
Requirement already satisfied: numpy>=1.21.0 in c:\users\dmitry\anaconda3\lib\site-packages (from RodTracker==0.0.1) (1.21.5)
Requirement already satisfied: pytz>=2020.1 in c:\users\dmitry\anaconda3\lib\site-packages (from pandas>=1.2.5->RodTracker==0.0.1) (2022.2.1)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\dmitry\anaconda3\lib\site-packages (from pandas>=1.2.5->RodTracker==0.0.1) (2.8.2)
Requirement already satisfied: PyQt5-sip<13,>=12.11 in c:\users\dmitry\anaconda3\lib\site-packages (from PyQt5>=5.15.4->RodTracker==0.0.1) (12.11.0)
Requirement already satisfied: six>=1.5 in c:\users\dmitry\anaconda3\lib\site-packages (from python-dateutil>=2.8.1->pandas>=1.2.5->RodTracker==0.0.1) (1.16.0)
Building wheels for collected packages: RodTracker
  Building wheel for RodTracker (pyproject.toml) ... done
  Created wheel for RodTracker: filename=RodTracker-0.0.1-py3-none-any.whl size=15849429 sha256=3d8cd0440825ce8e036e6d70d62942071433afb90ce9407351930ce844be7ccc
  Stored in directory: C:\Users\Dmitry\AppData\Local\Temp\pip-ephem-wheel-cache-eicwcmbo\wheels\a9\8a\c9\b7cdd2901176595f65b49f97fa0daf44080f5b93f3818b93be
Successfully built RodTracker
Installing collected packages: RodTracker
Successfully installed RodTracker-0.0.1

(base) C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python>cd C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\src\RodTracker

(base) C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\src\RodTracker>python RodTracker.py

(base) C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\src\RodTracker>RodTracker

(base) C:\Users\Dmitry\Documents\GitHub\Track_Gui\Python\src\RodTracker>
a-niem commented 2 years ago

@dmitrypuzyrev: From your console output I see, that you are using (Ana)conda together with pip. This might cause problems in the package management and result in your failed installation. Please try one or both of the following options to fix your issue:

  1. Avoid the use of conda environments and instead use the venv library to create a virtual environment and use only pip as a package manager. See instructions for help with the use of venv.
  2. Create a fresh conda environment and follow the instructions from the Anaconda team for the use of pip in a conda environment. This Stack Overflow post might also be of interest for that.

Please also note, that the installation was not intended to be done in a conda environment and therefore not tested under that condition.

dmitrypuzyrev commented 2 years ago

@DrMole0815 Thank you for response! I think we should discuss it in more detail on Thursday. Just a brief note:

  1. I would like to uninstall and completely avoid the use of Anaconda, but it seems it's still preferred distribution, especially among the students. I think it's maybe a little too much to ask from the user. Again, we will talk about it)
  2. I have now the (almost) fresh install of Anaconda, it was only updated. There were some conflicts when I added conda-forge channel and switched to strict priority channels but all of it was fixed since then. I am sure I did not install any package via pip except for the RodTracker. It is also strange that the program does not start in the usual way python RodTracker.py even before installation via pip, while basically the same version (develop branch) does work.
a-niem commented 2 years ago

The installation instructions have been updated with a section for conda users (see 306c0f8).