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