Closed hnez closed 3 months ago
Hi and welcome to elbe!
elbe in its current form is not intended to be run from a virtual environment.
The python package does not carry all necessary files (in this case the schema files).
For now either use a Debian package or run ./elbe
from the source directory.
(I am currently working on aligning elbe more to normal python conventions, which also includes correct packaging)
Even if this was fixed you would run into other issues of elbe with new versions of its dependencies that are available in ArchLinux. These are fixed in current master, as I use ArchLinux myself to develop elbe. In general, master should be stable, if not I'm happy for bug reports.
xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd"
This is correct, the URL is only for identification. It is not actually used to download the schema. (It could be, but right now it is not)
Hi and welcome to elbe!
Thanks! Apart from the usual friction caused by not reading the manual or ignoring what it tells me to do (like not using the Debian packages and using venv + pip) I got something up and running quite quickly. Thumbs up for that. I quite like the approach to preventing host tool leakage by just using a virtual machine to do the majority of the work in (even though it is a bit of a sledgehammer method), because host tool leakage has caused by some grief in the past when using e.g. Yocto.
elbe in its current form is not intended to be run from a virtual environment. The python package does not carry all necessary files (in this case the schema files). For now either use a Debian package or run
./elbe
from the source directory. (I am currently working on aligning elbe more to normal python conventions, which also includes correct packaging)Even if this was fixed you would run into other issues of elbe with new versions of its dependencies that are available in ArchLinux. These are fixed in current master, as I use ArchLinux myself to develop elbe. In general, master should be stable, if not I'm happy for bug reports.
I did indeed need to tweak the setup.py
to point it to the new location of the schema files to get master running in a venv.
I can live with a bit of breakage, so I think I'll continue in a venv and open pull request if issues appear.
xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd"
This is correct, the URL is only for identification. It is not actually used to download the schema. (It could be, but right now it is not)
Ah, so the URL not being available is actually expected behavior? In that case feel free to close this issue.
Ah, so the URL not being available is actually expected behavior?
Yes.
Ok, then I'll close this. (And I'll send a patch to fix the schema location in virtualenv, that needs to happen sooner or later anyways)
Hi,
I am currently in the process of getting my feet wet with ELBE and can not yet claim to have gathered a deep understanding of its inner working, so some of the Issues and Pull Request that I am about to open may be due to user error. Feel free to close them accordingly. I just want to start reporting things I've come across while the memory is still fresh.
I've noticed that the most recent ELBE release v14.9.3 fails to set up the initvm on my system.
I've set up the ELBE python project via
venv
andpip
on my Arch Linux system:And have noticed that
elbe initvm --devel create
fails due to https://www.linutronix.de/projects/Elbe/dbsfed.xsd no longer/not being available:I think on
master
this is fixed by b33923fe, which removes the URL fromelbepack/xmlpreprocess.py
, but I think it would be good if there was a solution for the released version as well.While ripgrepping around the code I've also noticed that many example xmls contain the
xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
(e.g. with a space before the filename). That looks a bit strange.