Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Problem with Jocular on a Raspberry Pi


Recommended Posts

Good evening

 

I'm trying to install the Jocular software on a Raspberry Pi 3+ and everything seems to be working fine but it won't start Jocular. The Python version is 3.9.5 and the environment is Astroberry I've followed all the steps that Martin Meredith describes on his website, and I'm a bit lost because I can't get it to work.

Any help or idea?

In the attached file is the Jocular debug, so that if it is possible to check the error.

thanks and regards

 

Luis  Gil

jocular --debug.png

jocular --debug.txt

Link to comment
Share on other sites

I believe jocular uses KivyMD for its UI. Try installing the following:

sudo apt-get install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0

That should fix it.

EDIT: Getting the packages above may actually not fix it. In that case, try using a python version older than 3.8

Edited by Victor Boesen
  • Like 1
Link to comment
Share on other sites

On 09/03/2022 at 21:46, Victor Boesen said:

I believe jocular uses KivyMD for its UI. Try installing the following:

sudo apt-get install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0

That should fix it.

EDIT: Getting the packages above may actually not fix it. In that case, try using a python version older than 3.8

https://kivy.org/doc/stable/installation/installation-rpi.html#install-source-rpi

sudo apt update

sudo apt install pkg-config libgl1-mesa-dev libgles2-mesa-dev \
   libgstreamer1.0-dev \
   gstreamer1.0-plugins-{bad,base,good,ugly} \
   gstreamer1.0-{omx,alsa} libmtdev-dev \
   xclip xsel libjpeg-dev


sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
Finally, you need to add this to your .profile file in your home directory

PATH="/home/astroberry/.local/bin:$PATH"

Link to comment
Share on other sites

Hi,

Thank you all very much for your answers and help.

I have achieved something, although the Kivy interface still does not load, it gives a warning notice.

I don't want to make any changes in Python regarding the version, because the same thing left it wrong and it's more difficult to fix it.

What do you think is the best way to solve the problem?

Martin, yes,  it will run slow on a Raspberry PI, but I have tried almost all software for EAA and for public outreach observations it is the best. The immersion and simulation as if you were in front of the eyepiece is magnificent, and with the new camera and plate solve plugins for this I see it as unbeatable.

and the use of a Raspberry PI for this avoids carrying PC and additional power supplies.

We usually project on a fairly large screen with a digital projector

Thanks again, and I look forward to your advice.

 

Luis Gil

 l1091891477_jocularDEBUGII.thumb.png.5d27ffef4d85aeaf238d4cc6cc380567.png 

jocular DEBUG.txt

  • Like 1
Link to comment
Share on other sites

Make sure the dynamic libraries cache is updated:

sudo ldconfig -v

If you are getting output similar to this when running your app:

[INFO ] GL: OpenGL vendor <b'VMware, Inc.'>

[INFO ] GL: OpenGL renderer <b'llvmpipe (LLVM 9.0.1, 128 bits)'>

Then it means that the renderer is NOT hardware accelerated. This can be fixed by adding your user to the render group:

sudo adduser "$USER" render

You will then see an output similar to this:

[INFO ] GL: OpenGL vendor <b'Broadcom'>

[INFO ] GL: OpenGL renderer <b'V3D 4.2'>

maybe above might resolve your problem worth a try

Link to comment
Share on other sites

19 hours ago, winterspace said:

Hi,

Thank you all very much for your answers and help.

I have achieved something, although the Kivy interface still does not load, it gives a warning notice.

I don't want to make any changes in Python regarding the version, because the same thing left it wrong and it's more difficult to fix it.

What do you think is the best way to solve the problem?

Martin, yes,  it will run slow on a Raspberry PI, but I have tried almost all software for EAA and for public outreach observations it is the best. The immersion and simulation as if you were in front of the eyepiece is magnificent, and with the new camera and plate solve plugins for this I see it as unbeatable.

and the use of a Raspberry PI for this avoids carrying PC and additional power supplies.

We usually project on a fairly large screen with a digital projector

Thanks again, and I look forward to your advice.

 

Luis Gil

 l1091891477_jocularDEBUGII.thumb.png.5d27ffef4d85aeaf238d4cc6cc380567.png 

jocular DEBUG.txt 4.08 kB · 4 downloads

This will fix the "importing numpy c-extensions failed" error

sudo apt-get install libatlas-base-dev

Victor

Link to comment
Share on other sites

Hello everyone

 

I still have problems starting jocular.

 

I follow your instructions and I receive different messages in the console of the raspberry pi. in the image a screenshot of the console message

. this is getting complicated.

regards

 

Luis

jocular debug III.png

Link to comment
Share on other sites

10 minutes ago, winterspace said:

Hello everyone

 

I still have problems starting jocular.

 

I follow your instructions and I receive different messages in the console of the raspberry pi. in the image a screenshot of the console message

. this is getting complicated.

regards

 

Luis

jocular debug III.png

Did you try installing the following?

sudo apt-get install libatlas-base-dev

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.