denisecailab / ezTrack

Free, platform independent, behavior tracking software.
GNU General Public License v3.0
118 stars 41 forks source link

Failure to Load Necessary Packages #54

Closed matinsaba closed 2 years ago

matinsaba commented 2 years ago

Hi,

When I am tried to load necessary packages I got the error below:

cannot import name 'Markup' from 'jinja2' (/Users/user/opt/miniconda3/envs/ezTrack/lib/python3.8/site-packages/jinja2/init.py)

ZachPenn commented 2 years ago

This is a compatibility issue with the latest version of jinja2.

Try the following:

From Terminal, activate your environment (conda activate ezTrack), and then enter the following command:

conda install jinja2=3.0.3

After you should be able to open jupyter and run things without issue.

matinsaba commented 2 years ago

Hi, Thank you for your help. that was one of attempt to fix it and now I am seeing another error. module 'typing' has no attribute '_SpecialForm'

I did uninstall and install the conda, deleted the ezTrack from my .env folder and install it again.

I also did try to run the program on another computer in the lab and still got the same error.

ZachPenn commented 2 years ago

This is good to know. Two things that could help me resolve this:

ZachPenn commented 2 years ago

A few other things:

Running on a macbook with Google Chrome, after using the following install command, I am unable to replicate your error:

conda create -y -n ezTrack -c conda-forge python=3.8 pandas=1.3.2 matplotlib=3.1.1 opencv=4.5.3 jupyter=1.0.0 holoviews=1.14.5 scipy=1.7.1 scikit-learn=0.24.2 bokeh=2.3.3 jinja2=3.0.3 tqdm

Another thing, before doing this please be sure to do a clean environment removal:

conda remove --name ezTrack --all

Let me know how it goes.