GithubHelp home page GithubHelp logo

Comments (21)

sronilsson avatar sronilsson commented on August 30, 2024

Hi @KaiserArndt2 !

What version of python image library do you see when you do pip show pillow?

Rather than python version 3.11.7, how does it look if you use python 3.6 (recommended), python 3.9 or python 3.10 (if necessary)?

If you stay in python 3.11.7, if you do pip install pillow=10.3.0, and then try to restart simba with simba, how does it look?

from simba.

KaiserArndt2 avatar KaiserArndt2 commented on August 30, 2024

Hi @sronilsson,

Thank you for the quick reply, I was running in 10.2.0 after running pip show pillow (below photo).
image

While still in this version I attempted to run the suggested pip install pillow=10.3.0. However simba still didn't open giving these errors.
image

I also attempted to revert back to python version 3.6 and run simba. This didn't work either giving the following errors as well.
image

I didn't try reinstalling simba after any of these attempts, not sure if it would matter. Is this something I should try?

Thanks for the help!

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Hello @KaiserArndt2 - thanks for testing this.

In your first screengrab, I see that you are in base (outside of the simba conda environment) and there you have Pillow 10.2.1.

Just to check - when you installed Pillow 10.3.0, did you install it in that base environment, or did you do it in the simba environment after running conda activate simba ?

If you are in Python 3.6, then SimBA should use Pillow 8.3.2 rather than 10.3.0 (I know.. versions can be messy).

If you are in python 3.6, which version of pillow do you see if you do pip show pillow? If you do, pip install pillow==8.3.2 in simba python 3.6 followed by simba, does that help?

PS. I have these two lines in the simba python requirements for when you do pip install simba-uw-tf-dev to pair different pillow versions to the python version the user is comming from:

Pillow==8.3.2; python_version=="3.6"
Pillow==10.3.0; python_version>="3.9"
....

from simba.

KaiserArndt2 avatar KaiserArndt2 commented on August 30, 2024

Hi @sronilsson,

I was running in base apparently. But in the simba environment I was on pillow 10.4.0. I tried changing the pillow to 8.3.2 as you suggested. This gave additional errors, but said it installed correctly (image below).

image

Attempting to run simba gave new and different errors.

image

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Got it, there seems to be some tangles in the dependencies... almost there I think :)

What if you:

i) create a brand new python 3.6 conda environment,
ii) and then pip install simba-uw-tf-dev,
iii) then confirm that you have pillow 8.3.2 with pip show pillow, if you dont have it: install it with pip install pillow==8.3.2.
iv) launch simba with simba ?

from simba.

KaiserArndt2 avatar KaiserArndt2 commented on August 30, 2024

Ok thank you! I got simba to open. Though I got a message saying ffmpeg is not installed, is this important for fully running simba?

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Great, yeah I would get it installed - ffmpeg is very useful and SimBA uses it to perform visualizations and create videos.

There are some inttructions if you google, e.g., HERE or HERE

from simba.

KaiserArndt2 avatar KaiserArndt2 commented on August 30, 2024

Thank you for the help, I got everything launching without error. But, now when I am making a 'test' project I am getting the following errors when I click the 'create project config' button. The project specifications are in the image bellow. The folder is within a DeepLabCut project folder I have. These are the exact inputs I had before hitting the button.
image

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Thanks @KaiserArndt2 - I tried to fill in the form just like you, but it ran.. do you see any error messages in the Main SimBA terminal GUI?

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

... PS. which version of SImBA do you have?

from simba.

KaiserArndt2 avatar KaiserArndt2 commented on August 30, 2024

Weird, I just relaunched SimBA and did the exact same things and it worked. So not sure what happened.

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Weird, I just relaunched SimBA and did the exact same things and it worked. So not sure what happened.

#open-source :)

from simba.

tknopfel avatar tknopfel commented on August 30, 2024

I followed this conversion and it helped me to come to a point where launching simba resulted in a brief popup of the SimBA logo which then disappeared. I am new to this and wonder which point I missed.

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Hi @tknopfel ! After the splash screen / pop-up, do you see any error messages / messages in the terminal from where you launched Simba?

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

... and what Simba version do you see, if you type pip show simba-uw-tf-dev in the terminal?

from simba.

tknopfel avatar tknopfel commented on August 30, 2024

from simba.

tknopfel avatar tknopfel commented on August 30, 2024

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

Thanks @tknopfel - do you have a screenshot or a copy paste of the error message that includes the lib part? It would be helpful to dig where the error comes from.

from simba.

tknopfel avatar tknopfel commented on August 30, 2024

Thanks, below is what I see on the terminal. No red lines/error:
But:
"C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\enum.py" does not exist in my environment", if that matters

(simbaennew) C:\Users\tknopfel>simba
Traceback (most recent call last):
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\Scripts\simba.exe_main
.py", line 7, in
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\site-packages\simba\SimBA.py", line 1098, in main
app = App()
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\site-packages\simba\SimBA.py", line 936, in init
self.txt.tag_configure(TagNames.GREETING.value, justify="center", foreground="blue", font=Formats.FONT_LARGE.value)
File "C:\Users\tknopfel\AppData\Local\anaconda3\envs\simbaennew\lib\enum.py", line 326, in getattr
raise AttributeError(name) from None
AttributeError: FONT_LARGE

from simba.

sronilsson avatar sronilsson commented on August 30, 2024

@tknopfel - yeah I'm not sure what it is doing looking in the lib directory.. there is no lib directory in SimBA.

I haven't seen this before, one possibility is that it downloaded on your end at the very same time an update was pushed to SimBA perhaps?

If you uninstall simba with pip uninstall simba-uw-tf-dev followed by installing it again with pip install simba-uw-tf-dev, how does it run then?

from simba.

tknopfel avatar tknopfel commented on August 30, 2024

from simba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.