Trouble building posix64 platform of p14p (v10)

24 views
Skip to first unread message

Brad Minch

unread,
Apr 24, 2013, 7:19:19 PM4/24/13
to python-o...@googlegroups.com
Hi everyone,

I am just starting out with python-on-a-chip (v10) and I am also just starting out with SCons.  I wanted to start by building the posix64 platform, but would eventually like to be working with the pic24 platform.  I am working on a Mac running OSX (Lion, ver. 10.7.5).  When I execute SCons to build the posix64 platform, I get "AssertionError: P14p REQUIRES CPython 2.6.x in order to support the correct bytecodes" at line 30 of src/tools/pmCoCreator.py.  When it gets to that point in the build process, python 2.7 is apparently running (i.e., when I print sys.version_info[0] and sys.version_info[1], I get '2' and '7' at that point).  However, prior to running SCons, I had switched from python 2.7.1 to python 2.6.7 using Mac OSX's versioner by setting an environment variable "VERSIONER_PYTHON_VERSION" equal to 2.6, as described in Apple's man page for python.  Prior to running SCons, I had also "propagated my entire external environment to the build commands" by adding the line

env = Environment(ENV = os.environ)

to the SConstruct file as described in the SCons FAQ at located http://www.scons.org/wiki/FrequentlyAskedQuestions.  If I print out sys.version_info[0] and sys.version_info[1] in the SConstruct file, I get '2' and '6', so apparently python 2.6 is running at that point in the build process.  I had a similar issue last June on my old Mac (running OSX ver. 10.5.8), only that time python 2.5 was apparently being run.  I corresponded briefly with Dean at that point and he suggested it probably had to do with SCons not having access to my environment variables, which is why I had tried to propagate my entire environment to SCons, as described in the SCons FAQ.  Does anyone out there have any suggestions as to what might be going on here?

Thanks,
Brad Minch.

Reply all
Reply to author
Forward
0 new messages