All of lore.kernel.org
 help / color / mirror / Atom feed
* Python3-distribute-native build fails in daisy
@ 2014-06-08  6:05 Andreas Galauner
  2014-06-08  9:45 ` Diego Sueiro
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Galauner @ 2014-06-08  6:05 UTC (permalink / raw)
  To: yocto

Hi all,

I'm currently trying to add a few python packages to my image for which
I need Python 3.3 because a few of them depend on asyncio. These
packages (asyncio itself, websockets and django) are installed with the
usual distribute setup.py scripts either using setuptools or distribute.

Now when trying to build python3-distribute-native as a build dependency
for any of these packages, bitbake fails with the following message:

----------------------------> snip <----------------------------
> | copying DEVGUIDE.txt -> build/src
> | copying CHANGES.txt -> build/src
> | copying README.txt -> build/src
> | copying MANIFEST.in -> build/src
> | copying launcher.c -> build/src
> | Traceback (most recent call last):
> |   File "setup.py", line 34, in <module>
> |     util.run_2to3(outfiles_2to3)
> |   File "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/distutils/util.py", line 507, in run_2to3
> |     from lib2to3.refactor import RefactoringTool, get_fixers_from_package
> |   File "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/lib2to3/refactor.py", line 19, in <module>
> |     import logging
> |   File "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/logging/__init__.py", line 26, in <module>
> |     import sys, os, time, io, traceback, warnings, weakref
> | ImportError: No module named 'time'
> | ERROR: python3 setup.py build_ext execution failed.
> | WARNING: /media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/work/x86_64-linux/python3-distribute-native/0.6.32-ml5/temp/run.do_compile.1363:1 exit 1 from
> |   exit 1
> | ERROR: Function failed: do_compile (log file is located at /media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/work/x86_64-linux/python3-distribute-native/0.6.32-ml5/temp/log.do_compile.1363)
----------------------------> snip <----------------------------
(Note: even if the path says openembedded, it's yocto)

When using the devshell to launch python3 and trying to import time, it
fails in the same way.
I'm using an up-to-date checkout of the daisy branch.

Any ideas what the cause for this could be and how to solve this?

- Andy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Python3-distribute-native build fails in daisy
  2014-06-08  6:05 Python3-distribute-native build fails in daisy Andreas Galauner
@ 2014-06-08  9:45 ` Diego Sueiro
  2014-06-09  2:28   ` Andreas Galauner
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Sueiro @ 2014-06-08  9:45 UTC (permalink / raw)
  To: Andreas Galauner; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2999 bytes --]

Andreas,

On Sun, Jun 8, 2014 at 3:05 AM, Andreas Galauner <andreas@galauner.de>
wrote:

> Hi all,
>
> I'm currently trying to add a few python packages to my image for which
> I need Python 3.3 because a few of them depend on asyncio. These
> packages (asyncio itself, websockets and django) are installed with the
> usual distribute setup.py scripts either using setuptools or distribute.
>
> Now when trying to build python3-distribute-native as a build dependency
> for any of these packages, bitbake fails with the following message:
>
> ----------------------------> snip <----------------------------
> > | copying DEVGUIDE.txt -> build/src
> > | copying CHANGES.txt -> build/src
> > | copying README.txt -> build/src
> > | copying MANIFEST.in -> build/src
> > | copying launcher.c -> build/src
> > | Traceback (most recent call last):
> > |   File "setup.py", line 34, in <module>
> > |     util.run_2to3(outfiles_2to3)
> > |   File
> "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/distutils/util.py",
> line 507, in run_2to3
> > |     from lib2to3.refactor import RefactoringTool,
> get_fixers_from_package
> > |   File
> "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/lib2to3/refactor.py",
> line 19, in <module>
> > |     import logging
> > |   File
> "/media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/sysroots/x86_64-linux/usr/lib/python3.3/logging/__init__.py",
> line 26, in <module>
> > |     import sys, os, time, io, traceback, warnings, weakref
> > | ImportError: No module named 'time'
> > | ERROR: python3 setup.py build_ext execution failed.
> > | WARNING:
> /media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/work/x86_64-linux/python3-distribute-native/0.6.32-ml5/temp/run.do_compile.1363:1
> exit 1 from
> > |   exit 1
> > | ERROR: Function failed: do_compile (log file is located at
> /media/andy/Data/Zedboard/openembedded/build_poky/tmp-eglibc/work/x86_64-linux/python3-distribute-native/0.6.32-ml5/temp/log.do_compile.1363)
> ----------------------------> snip <----------------------------
> (Note: even if the path says openembedded, it's yocto)
>
> When using the devshell to launch python3 and trying to import time, it
> fails in the same way.
> I'm using an up-to-date checkout of the daisy branch.
>
> Any ideas what the cause for this could be and how to solve this?
>
> - Andy
>

I'm getting the same problem for python3-distribute. Take a look bug #6373
<https://bugzilla.yoctoproject.org/show_bug.cgi?id=6373>.
Try to do a "bitbake python3-native -fccompile ; bitbake python3-native -f"
and see if you can go further than me.


Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br
<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 3925 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Python3-distribute-native build fails in daisy
  2014-06-08  9:45 ` Diego Sueiro
@ 2014-06-09  2:28   ` Andreas Galauner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Galauner @ 2014-06-09  2:28 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: yocto@yoctoproject.org

On 08/06/14 11:45, Diego Sueiro wrote:
> I'm getting the same problem for python3-distribute. Take a look bug
> #6373 <https://bugzilla.yoctoproject.org/show_bug.cgi?id=6373>.
> Try to do a "bitbake python3-native -fccompile ; bitbake python3-native
> -f" and see if you can go further than me.

That worked, thanks!
It's at least a workaround.

- Andy



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-09  2:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-08  6:05 Python3-distribute-native build fails in daisy Andreas Galauner
2014-06-08  9:45 ` Diego Sueiro
2014-06-09  2:28   ` Andreas Galauner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.