M
Modularβ€’12mo ago
Elaid Tebabkha

Can't find libpython

See the photo.πŸ™πŸ™πŸ™
No description
25 Replies
Jack Clayton
Jack Claytonβ€’12mo ago
@Elaid Tebabkha try these steps: First find your python:
which python
which python
Then cd one level above and into lib, so if python is located at usr/bin/python then do:
cd /usr/lib
cd /usr/lib
Then find the name of your libpython:
ls libpython*
ls libpython*
Then put the full path into that env var e.g:
export MOJO_PYTHON_LIBRARY="/usr/lib/libpython3.11.so"
export MOJO_PYTHON_LIBRARY="/usr/lib/libpython3.11.so"
Then try running it again, if it works put it into your shell startup script e.g. bash:
echo "export MOJO_PYTHON_LIBRARY=/usr/lib/libpython3.11.so" >> ~/.bashrc
echo "export MOJO_PYTHON_LIBRARY=/usr/lib/libpython3.11.so" >> ~/.bashrc
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
Please explain me more with photos. My os Ubuntu 20.04.6 LTS . Please πŸ™πŸ™πŸ™
Jack Clayton
Jack Claytonβ€’12mo ago
Which step from above are you getting stuck on?
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
From step 1 to 3. When I did these steps, in the phase to run a program mojo an error occurred. Of course I deleted this from .bashrc to solve everything. Then when I install Pyside6 by pip, in the phase when I try to execute program mojo with for example lib matplotlib an error occurred like : Qt plug-in not found, try to re-install it, Simbolyzer.. To solve this I have to uninstall pyside6
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
Not working.
No description
Jack Clayton
Jack Claytonβ€’12mo ago
@Elaid Tebabkha what is the output of step 1:
which python
which python
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
ModularBot
ModularBotβ€’12mo ago
Congrats @Elaid Tebabkha, you just advanced to level 2!
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
No thing
Jack Clayton
Jack Claytonβ€’12mo ago
What about: which python3
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
No description
Jack Clayton
Jack Claytonβ€’12mo ago
It looks like this is no longer a problem for you, I just saw this thread: https://discord.com/channels/1087530497313357884/1157689606062493696/1157689606062493696 So your libpython must be linked correctly
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
How to link it
Jack Clayton
Jack Claytonβ€’12mo ago
Do:
cd /usr/lib
ls libpython*
cd /usr/lib
ls libpython*
Elaid Tebabkha
Elaid Tebabkhaβ€’12mo ago
No description
Want results from more Discord servers?
Add your server