B
blendOS•2mo 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•2mo ago
you're missing python-pyyaml for whatever reason find a way to install it
krishnakumar
krishnakumarOP•2mo ago
How can this happen?
🎄 Asterisk
🎄 Asterisk•2mo ago
you can't use pip directly due to PEP 868 no idea python package is called pyyaml imported as yaml
krishnakumar
krishnakumarOP•2mo ago
Since it is an immutable system, how can I directly install on to the root file system?
🎄 Asterisk
🎄 Asterisk•2mo ago
add python-pyyaml to system.yaml for now
krishnakumar
krishnakumarOP•2mo ago
Something in akshara is depending upon pyyaml?
🎄 Asterisk
🎄 Asterisk•2mo ago
akshara itself does
krishnakumar
krishnakumarOP•2mo ago
Ok. I added it.
🎄 Asterisk
🎄 Asterisk•2mo ago
akshara is a python script with no extension
krishnakumar
krishnakumarOP•2mo ago
Ok. Understood I added it to system.yaml
🎄 Asterisk
🎄 Asterisk•2mo ago
obv you can't update your system yet, let me think
krishnakumar
krishnakumarOP•2mo ago
Ok
🎄 Asterisk
🎄 Asterisk•2mo 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•2mo ago
if that succeeds and you add the folder to path just do pipenv install pyyaml then pipenv run sudo akshara update
krishnakumar
krishnakumarOP•2mo 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•2mo ago
so a build must have failed
krishnakumar
krishnakumarOP•2mo ago
requests and fasteners
🎄 Asterisk
🎄 Asterisk•2mo ago
oh right not preinstalled normal
krishnakumar
krishnakumarOP•2mo ago
I added these to system.yaml
🎄 Asterisk
🎄 Asterisk•2mo 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•2mo ago
I used a mamba environment to install these packages akshara update is running inside pipenv now
🎄 Asterisk
🎄 Asterisk•2mo ago
🤯 pipception
krishnakumar
krishnakumarOP•2mo ago
But how did we end up like this? I thought blendOS is an immutable system?
🎄 Asterisk
🎄 Asterisk•2mo ago
tbh I have no idea, pyyaml is preinstalled it's supposed to be there right from the get-go
krishnakumar
krishnakumarOP•2mo ago
the base package should not be broken
🎄 Asterisk
🎄 Asterisk•2mo ago
it's not supposed to disappear check the site packages folder
krishnakumar
krishnakumarOP•2mo ago
Yes. I have been using blendos for the last 2 months
🎄 Asterisk
🎄 Asterisk•2mo ago
yeah :P likely related to an akshara build did you cut one off early?
krishnakumar
krishnakumarOP•2mo ago
I also run a mamba base environment at my user bashrc startup
🎄 Asterisk
🎄 Asterisk•2mo ago
aaaaahhh there's the issue
krishnakumar
krishnakumarOP•2mo ago
no..I didn't cut off
🎄 Asterisk
🎄 Asterisk•2mo ago
that environment was missing pyyaml the system environment has it
krishnakumar
krishnakumarOP•2mo ago
Right. I guessed that
🎄 Asterisk
🎄 Asterisk•2mo ago
could have said that at the start 😭
krishnakumar
krishnakumarOP•2mo ago
But when I deactivated it, it still doesn't work
🎄 Asterisk
🎄 Asterisk•2mo ago
ok
krishnakumar
krishnakumarOP•2mo ago
een after deactivating it I never use the system python for anything at all
🎄 Asterisk
🎄 Asterisk•2mo ago
how did you install mamba never heard of it
krishnakumar
krishnakumarOP•2mo ago
micromamba static binary
🎄 Asterisk
🎄 Asterisk•2mo ago
ideally use a container plz plz unless you need vscode integration or the like
krishnakumar
krishnakumarOP•2mo ago
ya.. I never use the system python at all
🎄 Asterisk
🎄 Asterisk•2mo ago
which should still work with a container just make an arch container and install python into it
krishnakumar
krishnakumarOP•2mo ago
I do need editor integration. Plus I am teaching classes which require native-like envs
🎄 Asterisk
🎄 Asterisk•2mo ago
a container is native-like especially if called from the host
krishnakumar
krishnakumarOP•2mo ago
No.. I don't want to fire up a container at each login
🎄 Asterisk
🎄 Asterisk•2mo ago
it can access all the same files that's handled for you pretty sure
krishnakumar
krishnakumarOP•2mo ago
When I open my terminal, I want mamba to be available
🎄 Asterisk
🎄 Asterisk•2mo ago
with a container you can use its system python not mamba that's my point
krishnakumar
krishnakumarOP•2mo ago
persistent across reboot No.. I actually need mamba
🎄 Asterisk
🎄 Asterisk•2mo ago
what is mamba a conda knockoff?
krishnakumar
krishnakumarOP•2mo ago
Because I use an environment.yml file A better conda
🎄 Asterisk
🎄 Asterisk•2mo ago
I only needed pipenv :P
krishnakumar
krishnakumarOP•2mo ago
better concretiser My project mates use a lock file with environment.yml
Valkyrja
Valkyrja•2mo ago
@krishnakumar, you've gained the level 2
krishnakumar
krishnakumarOP•2mo 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