#84 "import as" is in compatible to python 2.6

version 1.11

we try to include as.py but "as" is a keyword

scons: Reading SConscript files ...
Looking for build directory for platform 'linux2'
Exact match not found, finding closest guess
Found directory build/linux, will build there
/home/st/lprof- DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
File "/home/st/lprof-", line 36

import as


  • Andrew Nagle

    Andrew Nagle - 2010-01-03

    The easiest way to fix this is to update the copy of scons that is included to a newer version. If you have scons installed on your computer, you can copy all the necessary files. In my case, most of the files were in /usr/lib.

    1. Copy libraries from computer to lprof. For me, I had to copy /usr/lib/scons-1.2.0 to the lprof folder.
    2. I renamed it to scons-local-1.2.0
    3. Delete scons-local-0.96.91 folder
    4. Replace scons.py and sconsign.py with newer versions. These two files are probably in /usr/bin. (Depending on which Linux distro you use, these may have been renamed to scons and sconsign. Just make sure that they have .py extension on them when you place them into the lprof folder.)

    This was all it took to get it working on both my computers (running Gentoo Linux, 64bit on one, 32bit on the other).
    Hope this helps.

  • Requiem4Dream

    Requiem4Dream - 2010-11-17

    I renamed the as module as 'ass' and all module calls in gas.py, asmxxx.py and it worked fine too.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks