YttriLab / B-SOID

Behavioral segmentation of open field in DeepLabCut, or B-SOID ("B-side"), is a pipeline that pairs unsupervised pattern recognition with supervised classification to achieve fast predictions of behaviors that are not predefined by users.
GNU General Public License v3.0
190 stars 54 forks source link

streamlit launching error: ImportError: DLL load failed #38

Closed gregoriog closed 3 years ago

gregoriog commented 3 years ago

OS: Windows 10 Python 3.7.4 Hi, I guess this might be the stupidest issue ever, but I am extremely new to Python and I can't manage to launch bsoid_v2. I have followed the installation steps (https://github.com/YttriLab/B-SOID). When running the app streamlit run bsoid_app.py I get the error pasted below (I'm using Firefox). On the other hand streamlit launches properly on Firefox when I execute streamlit hello in the Anaconda Promt What am I doing wrong? Thanks!

ImportError: DLL load failed: Le module spécifié est introuvable.
Traceback:

File "c:\users\galinane\anaconda3\envs\bsoid_v2\lib\site-packages\streamlit\script_runner.py", line 332, in _run_script
    exec(code, module.__dict__)
File "C:\Users\galinane\Documents\Python Scripts\B-SOID\bsoid_app.py", line 3, in <module>
    from bsoid_app import data_preprocess, extract_features, clustering, machine_learner, \
File "C:\Users\galinane\Documents\Python Scripts\B-SOID\bsoid_app\video_creator.py", line 10, in <module>
    from bsoid_app.bsoid_utilities.videoprocessing import *
File "C:\Users\galinane\Documents\Python Scripts\B-SOID\bsoid_app\bsoid_utilities\videoprocessing.py", line 5, in <module>
    import cv2
File "c:\users\galinane\anaconda3\envs\bsoid_v2\lib\site-packages\cv2\__init__.py", line 5, in <module>
    from .cv2 import *
runninghsus commented 3 years ago

Hi @gregoriog

Did you end up figuring out? If not, did you create bsoid_v2 using the following command in anaconda? conda env create -n bsoid_v2 -f requirements_win.yaml

gregoriog commented 3 years ago

Hi! I never managed to make it work in that computer and I ended up switching to another machine where it worked smoothly. Thanks for the feedback