Closed b9Joker108 closed 4 months ago
Thanks for reporting! It looks like your python can't find max in its system modules. As followed the getting started page, make sure to run these in a new venv
. You can create one with python3 -m venv venv
and activate it via source /path/to/venv/bin/activate
and then
MAX_PATH=$(modular config max.path) \
&& python3 -m pip install --find-links $MAX_PATH/wheels max-engine
MAX_PATH=$(modular config max.path) \
&& BASHRC=$( [ -f "$HOME/.bash_profile" ] && echo "$HOME/.bash_profile" || echo "$HOME/.bashrc" ) \
&& echo 'export MODULAR_HOME="'$HOME'/.modular"' >> "$BASHRC" \
&& echo 'export PATH="'$MAX_PATH'/bin:$PATH"' >> "$BASHRC" \
&& source "$BASHRC"
also make sure to check which python3
is using the venv
python.
I created the dedicated Python Virtual Environment and activated, and checked activation with which python
, and it pointed within the newly created venv
. I then went back to the Max Engine tests. I realised why they aren't working. My device is aarch64, and the chroot that I am using is a guest Debian proot chroot within the Termux host main environment on Android. Will Max Engine support aarch64 in the near future?
Bug description
I took care to follow the process. I am so excited. I have really been looking forward to doing it!
I don't understand why the script couldn't find the module max:
Steps to reproduce
On this page: https://docs.modular.com/engine/get-started/ I followed the process sequentially, and everything seemed to progress well. Until, running the script:
I saw the first line output:
But, not the second and final line:
filled mask: Paris is the capital of France.
Note: I exited Termux. I started a new Zsh shell session in the Debian proot chroot. The error was the same.
BTW, I executed the script in an old-school CLI terminal emulator, not a whizbang graphical shell, if that makes a difference. But, I do have graphical shells in the chroot, as I am launching a Debian GUI, through Termux:X11. Though, at present, not without error.
I await your advice.
System information