Hi everyone,
I have been following the development of python-on-a-chip for a couple of years now and would like to get started with it. I would eventually like to work with p14p v10 on a pic24 platform, but because I am new to p14p and to SCons, I wanted to start out with the posix64 platform. I am working on a MacBook Air running Mac OSX version 10.7.5. When I run SCons to build the posix64 platform, I get "AssertionError: P14p REQUIRES CPython 2.6.x in order to support the correct bytecodes" when it gets to line 30 of src/tools/pmCoCreator.py. When I print sys.version_info[0] and sys.version_info[1], I get '2' and '7', so apparently a version of Python 2.7 is running at that point in the build process.
I was well aware that Python 2.6 is required by p14p, so, prior to running SCons, I had switched my default version of Python from 2.7.1 to 2.6.7 by setting an the VERSIONER_PYTHON_VERSION environment variable to 2.6, as described in Apple's Python man page. I had also added the line
env = Environment(ENV = os.environ)
to the default SConstruct file in an effort to propagate my entire external environment to the build commands, as described in the SCons FAQ located here in the answer to the question "Why doesn't SCons find my compiler/linker/etc.? I can execute it just fine from the command line." If I import sys and print 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 the top level of the build process.
Last June, I had started down this road and had a similar issue on my old Mac under OSX version 10.5.8, only at that time, SCons was defaulting to Python 2.5 instead of Python 2.7. I corresponded briefly with Dean, and he suggested it was probably because SCons creates its own build environment and that I would probably need to propagate my environment variable to SCons, which is why I added the line to SConstruct file. I switched computers soon thereafter and never got back around to p14p.
Does anyone out there have any ideas what might be going on here and any suggestions as to how I might proceed? Also, has anyone gotten the pic24 platform to build in p14p v10?
Thanks,
Brad Minch.