25 Replies
@Elaid Tebabkha try these steps:
First find your python:
Then cd one level above and into
lib
, so if python is located at usr/bin/python
then do:
Then find the name of your libpython:
Then put the full path into that env var e.g:
Then try running it again, if it works put it into your shell startup script e.g. bash:
Please explain me more with photos.
My os Ubuntu 20.04.6 LTS .
Please πππ
Which step from above are you getting stuck on?
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
Not working.
@Elaid Tebabkha what is the output of step 1:
Congrats @Elaid Tebabkha, you just advanced to level 2!
No thing
What about:
which python3
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
How to link it
Do:
Is MOJO have a methods in Mojo to receive the inputs from users?
Yeah you have no libpython on that system, here's what I recommend:
install miniconda: https://docs.conda.io/projects/miniconda/en/latest/
create a virtual environment:
Link to the libpython that is now installed:
See beginning part of https://www.youtube.com/watch?v=5Sm9IVMet9c&t=2862s that shows how to use Python input in mojo code.
freeCodeCamp.org
YouTube
Mojo Programming Language β Full Course for Beginners
Learn Mojo in this full tutorial. The Mojo programming language combines the usability of Python with the performance of C. It's basically an enhanced version of Python specifically designed for Artificial Intelligence developers.
π» Code: https://github.com/Infatoshi/intro-to-mojo
βοΈ Course created by @elliotarledge
Elliot's discord: https://...
It exists input in python, I want in MOJO.
Please can you explain me more step by step πππ
None in Mojo yet, but the Python interop one works.
lippython3.11.so exists in x86_64-linux-gnu.
Now, All things work.π
Thanks
I encountered the same problem. I followed you instructions, then the problem got solved.
The only different part is that my libpython is under /usr/lib/x86_64-linux-gnu/ instead of /usr/lib
I'm using WSL2. I guess that's why my libpython is under different location.
Thank you, Jack.
https://github.com/modularml/mojo/issues/551
This post also helps me a lot.
GitHub
error: Unable to locate a suitable libpython
when running Mojo ex...Bug description Compiled Mojo programs that import Python code fail with the message Unable to locate a suitable libpython, please set MOJO_PYTHON_LIBRARY. This is because Mojo currently does not e...
Me too
Awesome thanks for reporting back