❤🔥
❤🔥
MModular
Created by osvr_2 on 12/31/2023 in #questions
`The Mojo:fire: development environment was not found. If the Mojo SDK is installed, please set the
Did you write export for mojo in .bashrc?
19 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
Well then you need to make an issue on Github so that they make an update for installing mojo, so that they do the installation using venv
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
Hmm, I didn’t know that python packages could somehow affect the operation of the system, I always installed the packages and there were no problems with the system. I don't think it's that critical.
30 replies
MModular
Created by Nikolay on 9/16/2023 in #questions
plans for a net package?
There is a libc library in which a network socket is created using
external_call
external_call
https://github.com/igorgue/mojo-libc/blob/main/libc.mojo
2 replies
MModular
Created by Sean on 9/17/2023 in #questions
Mojo Not Found in CLI
The installer displays 3 commands after successful installation that you need to run to add mojo to the environment path
echo 'export MODULAR_HOME="/home/YOUR USER/.modular"' >> ~/.bashrc
echo 'export PATH="/home/YOUR USER/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
echo 'export MODULAR_HOME="/home/YOUR USER/.modular"' >> ~/.bashrc
echo 'export PATH="/home/YOUR USER/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
You need replace YOUR USER to your user in system.
3 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
Yeah, I forgot to add that.
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
One idea, try copying .modular to your user's folder and replacing /root/ with /home/YOUR USER/
sudo cp -r /root/.modular /home/YOUR USER
echo 'export MODULAR_HOME="/home/YOUR USER/.modular"' >> ~/.bashrc
echo 'export PATH="/home/YOUR USER/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
sudo cp -r /root/.modular /home/YOUR USER
echo 'export MODULAR_HOME="/home/YOUR USER/.modular"' >> ~/.bashrc
echo 'export PATH="/home/YOUR USER/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
Did you write the commands that the installer issued after installation?
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
try execute
modular install mojo
modular install mojo
from root user
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
Try entering
modular clean
modular clean
And install mojo again
modular install mojo
modular install mojo
30 replies
MModular
Created by Dawn's Knight on 9/16/2023 in #questions
Python bug
As far as I understand, mojo uses the system python. In the latest version of python on Linux, you cannot install packages using pip without using env, but this is very easily fixed. Just delete 1 file
rm /usr/lib/python3.11/EXTERNALLY-MANAGED
rm /usr/lib/python3.11/EXTERNALLY-MANAGED
And try to run the mojo installation again.
30 replies
MModular
Created by ❤🔥 on 9/16/2023 in #questions
Error with method append with string
Is there a way to create a list for a String type on the heap?
14 replies
MModular
Created by ❤🔥 on 9/16/2023 in #questions
Error with method append with string
Thanks It works)
14 replies
MModular
Created by ❤🔥 on 9/16/2023 in #questions
Error with method append with string
/home/asifar/http/main.:fire::38:16: error: invalid mutation of immutable value 'list.capacity'
list.append("123")
^
/home/asifar/http/main.:fire::37:5: note: 'list' declared here
let list = List[StringLiteral]()
^
/home/asifar/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: failed to run the pass manager
/home/asifar/http/main.:fire::38:16: error: invalid mutation of immutable value 'list.capacity'
list.append("123")
^
/home/asifar/http/main.:fire::37:5: note: 'list' declared here
let list = List[StringLiteral]()
^
/home/asifar/.modular/pkg/packages.modular.com_mojo/bin/mojo: error: failed to run the pass manager
I made StringLiteral, and already another error.
14 replies