mooch443 / trex

TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields.
https://trex.run
GNU General Public License v3.0
81 stars 8 forks source link

Errors during "Compile it yourself" installation at build_conda_package.bat #213

Open baccigalopi opened 9 months ago

baccigalopi commented 9 months ago

Several errors were encountered during the "build_conda_package.bat" command within the Anaconda prompt when following the "Compile it yourself" instructions (https://trex.run/docs/install.html#compile-it-yourself). The text from the prompt, which contains the error report, is attached below. After encountering these errors, attempts to install TRex via "conda create -n tracking -c local trex" were unsuccessful. How might I address these errors?

Note, I first installed TRex using "The easy way" for Windows, which seemed successful and even allowed me to initially use the "conda activate tracking" and "deactivate tracking" commands. However, since I desire to utilize Basler cameras in the future, I then elected to repeat the installation process using the "Compile it yourself" instructions, which is when I discovered the error.

To Reproduce Steps to reproduce the behavior: (base) C:\Users(name)>conda install conda build Proceed ([y]/n)? y (base) C:\Users(name)>git clone --recursive https://github.com/mooch443/trex (base) C:\Users(name)>cd trex/conda (base) C:\Users(name)\trex\conda>build_conda_package.bat
ERROR ENCOUNTERED DURING THIS STEP, SEE ATTACHED DOCUMENT

Terminal output file attached.

Expected behavior I expected the "build_conda_package.bat" to perform an error-free load and permit the TRex installation; however, as shown at the end of the attached error report, TRex does not load and is listed as a "package not available for current channels."

Computer:

Error Report.txt

mooch443 commented 8 months ago

Hey, thanks for the report and sorry for the delay! Looking forward to the day where I can just let an AI do this reliably.

I have updated the description at https://trex.run/docs/install.html#compile-it-yourself, but essentially what is happening is that you will need to install Visual Studio 2019 on your PC if you want to compile the software for conda. While the next section states that 2022 is also supported, it is not supported by conda-build at the moment.

baccigalopi commented 8 months ago

Thank you for the response. I have now ensured "Visual Studio Professional 2019" was installed, where I previously had "Visual Studio Community 2019," so that error during installation is no longer present. However, I seem to have different errors now, to include several "Entry Point Not Found" errors and what seems to be permission errors, even though I have ensured the ProgramData\anaconda3 and \trex, along with all subfolders, have Full Control. Have you experienced these issues or have any additional advice? (supporting documentation screenshots and error report attached)

20240103_TRex Error Report 2.txt

Entry Point Not Found Errors

Full Control for folders

mooch443 commented 7 months ago

Hey, that seems odd. Although it appears to be a git error, not a TRex error - or more likely some kind of network access problems. Github sometimes has "slower" times, which can lead to errors, and sometimes it is the policies governing your connection. You could try from a separate location, for example, to see if the network connection is the issue here.

Also, my conda is installed in the user home directory - I don't know if that makes a difference?