Bug 7766 - python3 distutils fails to be imported
Summary: python3 distutils fails to be imported
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.9 M1
Assignee: Alejandro Hernandez
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-05-14 17:51 UTC by Alejandro Hernandez
Modified: 2015-09-09 12:26 UTC (History)
4 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 Alejandro Hernandez 2015-05-14 17:51:27 UTC
When trying to import distutils the following error is shown:

# python3
Python 3.4.2 (default, May 12 2015, 11:05:00) 
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils import sysconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.4/distutils/sysconfig.py", line 19, in <module>
    PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: Can't convert 'NoneType' object to str implicitly
Comment 2 Bogdan Alexandru Voiculescu 2015-09-09 12:26:43 UTC
verified on master: db92bc23880794be77373b0f2d8c26279dcecb84
no error occurs