adamspierer / FreeClimber

FreeClimber is a background-subtracting particle detection platform designed to quantify group climbing performance in a Drosophila negative geotaxis (climbing) assay
MIT License
16 stars 5 forks source link

GUI pythonw not found #3

Open irvita opened 2 years ago

irvita commented 2 years ago

Hi there,

I would really appreciate help in running the video files from the GUI (on Mac). I managed to run it from the command line to get an output in csv form but when executing the command below:

pythonw ./scripts/FreeClimber_gui.py --video_file ./example/w1118_m_2_1.h264

I get this output:

zsh: command not found: pythonw

atramell commented 1 year ago

I have the same problem.

adamspierer commented 1 year ago

Hi @irvita @atramell,

I haven't encountered this error, but it might be an issue with the wxPython package or how the system runs the GUI.

First, confirming you have everything downloaded into the virtual environment and the virtual environment is active?

Second, can you confirm you have wxPython and Python3 installed in the environment? https://docs.conda.io/projects/conda/en/4.6.0/user-guide/tasks/manage-environments.html#viewing-a-list-of-the-packages-in-an-environment

Third, this looks like a similar issue but I am unsure if the same solution will work. Give this a try and let me know? https://forum.image.sc/t/zsh-permission-denied-pythonw-or-command-not-found-pythonw-when-installing-cellprofiler-w-conda-on-mac/73966

atramell commented 1 year ago

Good evening! I tried doing the conda install.app command, but it needs a python version above 3.8. Can I run FreeClimber on python 3.8? Thank you! Sincerely, Abigail Tramell

On Tue, Jun 27, 2023 at 4:40 PM adamspierer @.***> wrote:

Hi @irvita https://github.com/irvita @atramell https://github.com/atramell,

I haven't encountered this error, but it might be an issue with the wxPython package or how the system runs the GUI.

First, confirming you have everything downloaded into the virtual environment and the virtual environment is active?

Second, can you confirm you have wxPython and Python3 installed in the environment?

https://docs.conda.io/projects/conda/en/4.6.0/user-guide/tasks/manage-environments.html#viewing-a-list-of-the-packages-in-an-environment

Third, this looks like a similar issue but I am unsure if the same solution will work. Give this a try and let me know?

https://forum.image.sc/t/zsh-permission-denied-pythonw-or-command-not-found-pythonw-when-installing-cellprofiler-w-conda-on-mac/73966

— Reply to this email directly, view it on GitHub https://github.com/adamspierer/FreeClimber/issues/3#issuecomment-1610181468, or unsubscribe https://github.com/notifications/unsubscribe-auth/BABPDS5K27ZDR4XDFIRG4LTXNNAMJANCNFSM6AAAAAAQE6VLHY . You are receiving this because you were mentioned.Message ID: @.***>

adamspierer commented 1 year ago

Hi @atramell ,

If you haven't already, I recommend following the tutorial. An early step walks you through the creation of an Anaconda virtual environment, which has the version of Python (3.6) and packages that are known to work well together. It's an annoying step to download and activate the virtual environment each time, but is good for version controlling packages and "future-proofing" the software.

Downloading Python from Anaconda will also cover a similar issue that can arise if you were to download Python on the computer for a single user instead of for all users.

Once you have the virtual environment with Python 3.6 running, you could also try to create an environment with Python 3.8 and installing/updating the packages to answer your question.

Keep me posted on whether or not things work.

atramell commented 1 year ago

Good morning! I was able to get FreeClimber running, but whenever I try to test the parameters, it takes extremely long and I was wondering how I can get it to run faster. Thank you for your help! Sincerely, Abigail Tramell

On Wed, Jun 28, 2023 at 10:18 AM adamspierer @.***> wrote:

Hi @atramell https://github.com/atramell ,

If you haven't already, I recommend following the tutorial https://github.com/adamspierer/FreeClimber/blob/master/TUTORIAL.md. An early step walks you through the creation of an Anaconda virtual environment, which has the version of Python (3.6) and packages that are known to work well together. It's an annoying step to download and activate the virtual environment each time, but is good for version controlling packages and "future-proofing" the software.

Downloading Python from Anaconda will also cover a similar issue that can arise if you were to download Python on the computer for a single user instead of for all users.

Once you have the virtual environment with Python 3.6 running, you could also try to create an environment with Python 3.8 and installing/updating the packages to answer your question.

Keep me posted on whether or not things work.

— Reply to this email directly, view it on GitHub https://github.com/adamspierer/FreeClimber/issues/3#issuecomment-1611501668, or unsubscribe https://github.com/notifications/unsubscribe-auth/BABPDS6PA46CWNVNC42XHHTXNQ4LLANCNFSM6AAAAAAQE6VLHY . You are receiving this because you were mentioned.Message ID: @.***>

adamspierer commented 1 year ago

Hi @atramell ,

Are you using the test file or your own file?

For others who might encounter your last problem, what was the solution?

atramell commented 1 year ago

Good morning!

I downloaded python.app through an anaconda environment with a version of python that is above 3.8 and then I was able to use the pythonw command in my 3.6 env. The amount of frames that I am using is 30 frames per second and the video file is 30 seconds long. When I used to run it with my .avi files it worked, but now that my videos are formatted as .mp4 files, it no longer works and python is using so much of my application memory that I have to force quit terminal. I tried the test file that is .mp4 formatted and it worked fine, so I am not sure what the issue is. Thank you for all your help!

Sincerely, Abigail Tramell

On Wed, Jun 28, 2023 at 1:07 PM adamspierer @.***> wrote:

Hi @atramell https://github.com/atramell ,

Are you using the test file or your own file?

  • If it is the test file, restart your computer and try it again. It shouldn't take more than 5-15 seconds to run depending on the specs of your computer.
  • If it is your own file, try to restart your computer and/or downsize the file or reduce the frames you are testing

For others who might encounter your last problem, what was the solution?

— Reply to this email directly, view it on GitHub https://github.com/adamspierer/FreeClimber/issues/3#issuecomment-1611788706, or unsubscribe https://github.com/notifications/unsubscribe-auth/BABPDSZQVSZNC4RP7KJH5YTXNRQEPANCNFSM6AAAAAAQE6VLHY . You are receiving this because you were mentioned.Message ID: @.***>

atramell commented 1 year ago

Correction: My old files were formatted as .mov files, but when I changed my new .mp4 files to .mov files they still did not work.

On Mon, Jul 3, 2023 at 10:23 PM Abigail Tramell @.***> wrote:

Good morning!

I downloaded python.app through an anaconda environment with a version of python that is above 3.8 and then I was able to use the pythonw command in my 3.6 env. The amount of frames that I am using is 30 frames per second and the video file is 30 seconds long. When I used to run it with my .avi files it worked, but now that my videos are formatted as .mp4 files, it no longer works and python is using so much of my application memory that I have to force quit terminal. I tried the test file that is .mp4 formatted and it worked fine, so I am not sure what the issue is. Thank you for all your help!

Sincerely, Abigail Tramell

On Wed, Jun 28, 2023 at 1:07 PM adamspierer @.***> wrote:

Hi @atramell https://github.com/atramell ,

Are you using the test file or your own file?

  • If it is the test file, restart your computer and try it again. It shouldn't take more than 5-15 seconds to run depending on the specs of your computer.
  • If it is your own file, try to restart your computer and/or downsize the file or reduce the frames you are testing

For others who might encounter your last problem, what was the solution?

— Reply to this email directly, view it on GitHub https://github.com/adamspierer/FreeClimber/issues/3#issuecomment-1611788706, or unsubscribe https://github.com/notifications/unsubscribe-auth/BABPDSZQVSZNC4RP7KJH5YTXNRQEPANCNFSM6AAAAAAQE6VLHY . You are receiving this because you were mentioned.Message ID: @.***>

adamspierer commented 1 year ago

Checking in to see if you ended up getting things to work, your solution, and if I can close out this issue?

The file formats you mentioned were all tested previously so I think it is a deeper issue than just reformatting the video? Let me know either way.