Skip to contentSkip to conversation

mesa3d: "ImportError: No module named

Buildroot Maxime Ripard 1 participant 1 message Nov 5, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

-------- Message original --------
Sujet: Re: [Buildroot] mesa3d: "ImportError: No module named Date : Mon, 05 Nov 2012 13:38:40 +0100
De : Maxime Ripard <[email protected]> Pour : Vellemans, Noel <[email protected]>

Hi,

(Please keep the mailing list in CC)

Le 05/11/2012 11:20, Vellemans, Noel a ?crit :

Quoted 20 lines

Hi Maxime,

I'm still trying to dig a little deeper into the problem.

Is this reproducible?
Yes, if you delete de mesa3d output directory completely you also run into the same problem (so there is no need to have a CLEAN output directory)

Some info:
TARGET : ARM - imx537

HOST: Ubuntu 64 bit
HOST-Python: 2.6.6 (see HOST-python_version.txt)

Quoted 2 lines
Quoted 2 lines

Also, do you know what python interpreter it is actually using? The one found in your distribution or host-python built by Buildroot?

Quoted 6 lines

At this time (as test) I did rename the host-python [ sudo mv /usr/bin/python /usr/bin/_python ]
and buildroot bails out with you must install python on your build-machine.
So I "guess" (which is not my best) buildroot is using the host-python (2.6.6).

Ok, so basically, you will probably need to do a few things here to get that fixed I guess:
- In libxml2, remove the --without-python option if python emulator is
selected
- Make the mesa3d package depends on host-python and host-libxml2 (I
guess?) (basically, just add these two packages to MESA3D_DEPENDENCIES)
- Make mesa3d use the host-python package we just built instead of the
one found on our distribution

I guess something like that would work. But what are the others think on making mesa depends on host-python? It looks a bit oe-ish, but I don't quite see a better way.

Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com