You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running DeepLabCut on my Mac (11.6.2), but every time I go to label frames, the program crashes. The long error report that's being spit out can be seen below; I haven't been able to figure out what's going on.
I've been trying to run the package on a Pyenv build (python version 3.8.12) with the latest versions of DLC. Because Pyenv doesn't provide a shim for wxPython (pythonw), I installed the 3.8.12 as a framework build. This allows me to run the GUI version of DLC, but a crash occurs when I try to label frames with the GUI. This happens if I'm running DLC from the GUI or if I just run deeplabcut.label_frames(config_path). The label_frame GUI opens, but the crash specifically occurs when a folder with frames to be labeled is selected and loaded.
I thought this might be an issue specific to Pyenv, so I installed Anaconda, and after running conda install python.app in the DLC environment, I can label frames successfully, indicating that this problem is specific to Pyenv.
Are there any ideas of how to get DLC working with Pyenv? If not - I can just continue using conda. Thanks in advance!
Operating System
macOS Big Sur 11.6.2
DeepLabCut version
deeplabcut==2.2.0.6
DeepLabCut mode
single animal
Device type
CPU - 2.6 GHz 6-Core Intel Core i7
Steps To Reproduce
Install Pyenv with brew and set up all of the correct shim/shell modifications
Install python 3.8.12 using env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.8.12 and update pip pip install -U pip
Open DLC from the GUI or try to just label frames. python -m deeplabcut or after opening python and loading the config path, deeplabcut.label_frames(config_path)
Cause the crash by loading a folder with the frames to label from the DLC path.
### Anything else?
_No response_
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/DeepLabCut/DeepLabCut/blob/master/CODE_OF_CONDUCT.md)
The text was updated successfully, but these errors were encountered:
Unfortunately Pyenv doesn’t create shims for pythonw. One of the devs suggested that it wasn’t needed. The reason I was imagining that it might be a DLC issue is because I can get the GUI running and working for everything but the label_frames.
I can create an issue over on the Pyenv page if you think this isn’t a DLC issue!
@JacobBumgarner, any reason why you chose to install deeplabcut without conda or venv? I have no problem labeling frames on my mac (Monterey) using either one, so I suspect this has to do with your pyenv installation 😕
Frankly, I just tried using pyenv because it is my main environment manager. I originally used conda when I started with python development, but chose to switch to pyenv/virtualenv because I had some trouble with PyQt5 compatibility when I was developing VesselVio. Those compatibility issues have since gone away, but I've stayed with pyenv because it works well for me.
Having said this - I am able to use DLC with conda on my mac (Big Sur 11.6.5). Because DLC has so many other viable deployment options other than pyenv, I'm going to close this. No need to keep an unnecessary issue open :)
This issue can at least exist in case others try to use DLC with pyenv and can't figure out what's going on. The solution: don't be picky and just use conda!
Is there an existing issue for this?
Bug description
I'm running DeepLabCut on my Mac (11.6.2), but every time I go to label frames, the program crashes. The long error report that's being spit out can be seen below; I haven't been able to figure out what's going on.
I've been trying to run the package on a Pyenv build (python version 3.8.12) with the latest versions of DLC. Because Pyenv doesn't provide a shim for wxPython (pythonw), I installed the 3.8.12 as a framework build. This allows me to run the GUI version of DLC, but a crash occurs when I try to label frames with the GUI. This happens if I'm running DLC from the GUI or if I just run
deeplabcut.label_frames(config_path)
. The label_frame GUI opens, but the crash specifically occurs when a folder with frames to be labeled is selected and loaded.I thought this might be an issue specific to Pyenv, so I installed Anaconda, and after running
conda install python.app
in the DLC environment, I can label frames successfully, indicating that this problem is specific to Pyenv.Are there any ideas of how to get DLC working with Pyenv? If not - I can just continue using conda. Thanks in advance!
Operating System
macOS Big Sur 11.6.2
DeepLabCut version
deeplabcut==2.2.0.6
DeepLabCut mode
single animal
Device type
CPU - 2.6 GHz 6-Core Intel Core i7
Steps To Reproduce
Install Pyenv with brew and set up all of the correct shim/shell modifications
Install python 3.8.12 using
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.8.12
and update pippip install -U pip
Install DeepLabCut
pip install deeplabcut 'deeplabcut[gui]'
Open DLC from the GUI or try to just label frames.
python -m deeplabcut
or after opening python and loading the config path,deeplabcut.label_frames(config_path)
Cause the crash by loading a folder with the frames to label from the DLC path.
Relevant log output
The text was updated successfully, but these errors were encountered: