B
blendOS•3mo ago
krishnakumar

Akshara update does not work because of missing yaml?

When I try sudo akshara update now, I get an error message:
Traceback (most recent call last):
File "/use/bin/akshara", line 23, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Traceback (most recent call last):
File "/use/bin/akshara", line 23, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
Any thoughts or suggestions?
Solution:
if that succeeds and you add the folder to path just do pipenv install pyyaml then pipenv run sudo akshara update
Jump to solution
55 Replies
🎄 Asterisk
🎄 Asterisk•3mo ago
you're missing python-pyyaml for whatever reason find a way to install it
krishnakumar
krishnakumarOP•3mo ago
How can this happen?
🎄 Asterisk
🎄 Asterisk•3mo ago
you can't use pip directly due to PEP 868 no idea python package is called pyyaml imported as yaml
krishnakumar
krishnakumarOP•3mo ago
Since it is an immutable system, how can I directly install on to the root file system?
🎄 Asterisk
🎄 Asterisk•3mo ago
add python-pyyaml to system.yaml for now
krishnakumar
krishnakumarOP•3mo ago
Something in akshara is depending upon pyyaml?
🎄 Asterisk
🎄 Asterisk•3mo ago
akshara itself does
krishnakumar
krishnakumarOP•3mo ago
Ok. I added it.
🎄 Asterisk
🎄 Asterisk•3mo ago
akshara is a python script with no extension
krishnakumar
krishnakumarOP•3mo ago
Ok. Understood I added it to system.yaml
🎄 Asterisk
🎄 Asterisk•3mo ago
obv you can't update your system yet, let me think
krishnakumar
krishnakumarOP•3mo ago
Ok
🎄 Asterisk
🎄 Asterisk•3mo ago
try pip install --user pipenv if it warns you about a scripts folder not being on PATH just add it to PATH PEP 868 only affects systemwide installs I think
Solution
🎄 Asterisk
🎄 Asterisk•3mo ago
if that succeeds and you add the folder to path just do pipenv install pyyaml then pipenv run sudo akshara update
krishnakumar
krishnakumarOP•3mo ago
pip does not exist on my machine I shall use a mamba environment to get pip Sigh A whole bunch of libraries are missing
🎄 Asterisk
🎄 Asterisk•3mo ago
so a build must have failed
krishnakumar
krishnakumarOP•3mo ago
requests and fasteners
🎄 Asterisk
🎄 Asterisk•3mo ago
oh right not preinstalled normal
krishnakumar
krishnakumarOP•3mo ago
I added these to system.yaml
🎄 Asterisk
🎄 Asterisk•3mo ago
also normal python-pip but you won't need it then python-pipenv will work if you ever do any python projects on the host
krishnakumar
krishnakumarOP•3mo ago
I used a mamba environment to install these packages akshara update is running inside pipenv now
🎄 Asterisk
🎄 Asterisk•3mo ago
🤯 pipception
krishnakumar
krishnakumarOP•3mo ago
But how did we end up like this? I thought blendOS is an immutable system?
🎄 Asterisk
🎄 Asterisk•3mo ago
tbh I have no idea, pyyaml is preinstalled it's supposed to be there right from the get-go
krishnakumar
krishnakumarOP•3mo ago
the base package should not be broken
🎄 Asterisk
🎄 Asterisk•3mo ago
it's not supposed to disappear check the site packages folder
krishnakumar
krishnakumarOP•3mo ago
Yes. I have been using blendos for the last 2 months
🎄 Asterisk
🎄 Asterisk•3mo ago
yeah :P likely related to an akshara build did you cut one off early?
krishnakumar
krishnakumarOP•3mo ago
I also run a mamba base environment at my user bashrc startup
🎄 Asterisk
🎄 Asterisk•3mo ago
aaaaahhh there's the issue
krishnakumar
krishnakumarOP•3mo ago
no..I didn't cut off
🎄 Asterisk
🎄 Asterisk•3mo ago
that environment was missing pyyaml the system environment has it
krishnakumar
krishnakumarOP•3mo ago
Right. I guessed that
🎄 Asterisk
🎄 Asterisk•3mo ago
could have said that at the start 😭
krishnakumar
krishnakumarOP•3mo ago
But when I deactivated it, it still doesn't work
🎄 Asterisk
🎄 Asterisk•3mo ago
ok
krishnakumar
krishnakumarOP•3mo ago
een after deactivating it I never use the system python for anything at all
🎄 Asterisk
🎄 Asterisk•3mo ago
how did you install mamba never heard of it
krishnakumar
krishnakumarOP•3mo ago
micromamba static binary
🎄 Asterisk
🎄 Asterisk•3mo ago
ideally use a container plz plz unless you need vscode integration or the like
krishnakumar
krishnakumarOP•3mo ago
ya.. I never use the system python at all
🎄 Asterisk
🎄 Asterisk•3mo ago
which should still work with a container just make an arch container and install python into it
krishnakumar
krishnakumarOP•3mo ago
I do need editor integration. Plus I am teaching classes which require native-like envs
🎄 Asterisk
🎄 Asterisk•3mo ago
a container is native-like especially if called from the host
krishnakumar
krishnakumarOP•3mo ago
No.. I don't want to fire up a container at each login
🎄 Asterisk
🎄 Asterisk•3mo ago
it can access all the same files that's handled for you pretty sure
krishnakumar
krishnakumarOP•3mo ago
When I open my terminal, I want mamba to be available
🎄 Asterisk
🎄 Asterisk•3mo ago
with a container you can use its system python not mamba that's my point
krishnakumar
krishnakumarOP•3mo ago
persistent across reboot No.. I actually need mamba
🎄 Asterisk
🎄 Asterisk•3mo ago
what is mamba a conda knockoff?
krishnakumar
krishnakumarOP•3mo ago
Because I use an environment.yml file A better conda
🎄 Asterisk
🎄 Asterisk•3mo ago
I only needed pipenv :P
krishnakumar
krishnakumarOP•3mo ago
better concretiser My project mates use a lock file with environment.yml
Valkyrja
Valkyrja•3mo ago
@krishnakumar, you've gained the level 2
krishnakumar
krishnakumarOP•3mo ago
I need to work with the same environment as my project mates Anyway, the system is rebuilding with the akshara update inside pipenv. Let's see It worked. Thanks a lot!
Want results from more Discord servers?
Add your server