Bug 6928 - Add python-email to buildtools-tarball
Summary: Add python-email to buildtools-tarball
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.7
Hardware: All Multiple
: Undecided enhancement
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-11-04 09:40 UTC by Paul Eggleton
Modified: 2014-11-06 15:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-11-04 09:40:58 UTC
The automatic upgrade helper requires the email python module, and if you try to run it on a machine which has the buildtools installed (and env script sourced, which you'd need to run builds) then it fails to run:

$ ./upgradehelper.py 
Traceback (most recent call last):
  File "./upgradehelper.py", line 47, in <module>
    from emailhandler import Email
  File "/home/paul/poky/auto-upgrade-helper/emailhandler.py", line 29, in <module>
    from smtplib import SMTP
  File "/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/smtplib.py", line 46, in <module>
    import email.utils
ImportError: No module named email.utils
Comment 1 Ross Burton 2014-11-06 15:33:45 UTC
oe-core 745dfbc869fd593d1b92e2bc9c01d589ab21ade3 adds all of Python to the buildtools tarball.