Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] dbus-python: select pyexpat dependency
@ 2013-11-18 22:35 Ivan Sergeev
  2013-11-18 22:37 ` Ivan Sergeev
  2013-11-18 23:17 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Ivan Sergeev @ 2013-11-18 22:35 UTC (permalink / raw)
  To: buildroot

dbus-python requires xml.parsers.expat, which is provided by the pyexpat module. This patch enables the pyexpat module when dbus-python is selected.

Before:

# systemd-analyze 
Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 3, in <module>
    import dbus, sys
  File "/usr/lib/python2.7/site-packages/dbus/__init__.py", line 100, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 46, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 46, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 42, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 35, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/_expat_introspect_parser.py", line 26, in <module>
ImportError: No module named xml.parsers.expat
# python
Python 2.7.3 (default, Nov 18 2013, 14:12:39) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/__init__.py", line 100, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 46, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 46, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 42, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 35, in <module>
  File "/usr/lib/python2.7/site-packages/dbus/_expat_introspect_parser.py", line 26, in <module>
ImportError: No module named xml.parsers.expat
>>> 
#

After:

# systemd-analyze 
Startup finished in 2252ms (kernel) + 973ms (userspace) = 3225ms
# python
Python 2.7.3 (default, Nov 18 2013, 13:07:32) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> 
#

NOTE: I had to delete output/build/python-2.7.3/ for the enabled pyexpat to take effect during a rebuild (simple "make") of buildroot. I presume this is because it's configured and built with python-2.7.3, but perhaps this should be handled automatically  -- marking python-2.7.3 "dirty" somehow?

Thanks,
~vsergeev
Ivan Sergeev

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

end of thread, other threads:[~2013-11-30  8:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-18 22:35 [Buildroot] [PATCH 1/1] dbus-python: select pyexpat dependency Ivan Sergeev
2013-11-18 22:37 ` Ivan Sergeev
2013-11-18 23:32   ` Thomas Petazzoni
2013-11-19  1:55     ` Ivan Sergeev
2013-11-19  2:10       ` Ivan Sergeev
2013-11-30  8:06         ` Peter Korsgaard
2013-11-18 23:17 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox