Open staehle opened 1 year ago
Oddly, as a troubleshooting step, attempting to run BuildStream in the bst2:*-arm64
docker image from FDSDK does successfully startup... but I get a different error message on build -- created a separate issue there for that.
So, how is that project's 'bst' executable able to get past this YAML issue with the same source? The BuildBox infrastructure is a bit confusing
Just a quick idea: Do you have a ~/.config/buildstream.conf
or ~/.config/buildstream2.conf
? It might be the one with malformed syntax?
Hi @abderrahim! Thanks, I did think of that, as I do have a ~/.config/buildstream.conf
file tracked in my dotfiles git. However, it works OK as-is on my x86 machine, and removing it entirely didn't affect this output on my aarch64 machine (and the Docker environment I posted uses a new $HOME
entirely, so the file wouldn't exist there).
From the Python traceback, it does appear that the error ultimately occurs in _yaml.pyx:296, which is being called from _context.py:282 when trying to load the default userconfig.yaml file. There's nothing wrong with the YAML file, and I'm wondering if it might instead be a problem with the aarch64 version of the ruamel yaml parser that _yaml.pyx is using? That would explain why I cannot run it locally or in my own docker environment, but does not explain why it works correctly in the Buildbox docker for aarch64.
As you can see from the line you quoted parser = yaml.CParser(data)
it seems to be something related to ruamel.yaml.clib. I don't know if you used wheels or source, maybe the provided wheels are not working correctly?
Please also note that we don't have wheels for aarch64, so you'll need to build buildbox yourself.
For what it's worth, I've got the same problem, running the bst tutorial example in a multipass Ubuntu VM on a Apple Silicon Mac.
As I mentioned above, this seems to be a problem with ruamel.yaml.clib. To check it, try the following
from ruamel import yaml
yaml.CParser
It should probably raise the correct error that we're after (Here on x86_64, it just shows <class '_ruamel_yaml.CParser'>
)
Hello! Trying to get BuildStream 2.0.1 running on an aarch64 platform (Orange Pi 5) is being a bit of a challenge. I'm mostly just trying to follow the official BuildStream installation instructions.
Simply, I get this error message when trying to do anything with BuildStream:
For example here, I'm just trying to build the BuildStream project buildbox-integration so I can get the nice statically-linked BuildBox executables instead of my manually compiled ones!
The host OS/environment does not appear to matter. I get the same error regardless of if I run it natively on this Armbian 23.02.2 Bullseye OS, or inside a
buildpack-deps:jammy-scm
docker environment (example of which below).This also occurs if I install BuildStream via pip3, or via the git source:
Going off of this example, if I turn bst debug on, I get this:
This example is running inside a
buildpack-deps:jammy-scm
docker container with some addons, and after manually compiling the required BuildBox executables and installing those to~/.local/bin
:And running it via: