Robin
January 30, 2013, 9:58pm
1
patrick korsnick wrote:
Hi all,
I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
patch applied and keep getting this error:
$ python build-wxpython.py --build_dir=../bld
old_options = set( )
sys.argv = ['--build_dir=../bld']
Traceback (most recent call last):
File "build-wxpython.py", line 205, in <module>
SWIG_BIN = commands.getoutput("which swig")
AttributeError: 'module' object has no attribute 'getoutput'
This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
···
--
Robin Dunn
Software Craftsman
$ python --version
Python 2.7.3
$ uname -a
Linux lmtool-hacksaw 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24 UTC 2013 i686 i686 i386 GNU/Linux
···
On Wednesday, January 30, 2013 2:58:16 PM UTC-7, Robin Dunn wrote:
patrick korsnick wrote:
Hi all,
I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
patch applied and keep getting this error:
$ python build-wxpython.py --build_dir=…/bld
old_options = set( )
sys.argv = [‘–build_dir=…/bld’]
Traceback (most recent call last):
File “build-wxpython.py”, line 205, in
SWIG_BIN = commands.getoutput(“which swig”)
AttributeError: ‘module’ object has no attribute ‘getoutput’
This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
–
Robin Dunn
Software Craftsman
http://wxPython.org
and it’s on xubuntu 12.04.1 LTS
···
On Thursday, January 31, 2013 11:28:45 AM UTC-7, patrick korsnick wrote:
$ python --version
Python 2.7.3
$ uname -a
Linux lmtool-hacksaw 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24 UTC 2013 i686 i686 i386 GNU/Linux
On Wednesday, January 30, 2013 2:58:16 PM UTC-7, Robin Dunn wrote:
patrick korsnick wrote:
Hi all,
I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
patch applied and keep getting this error:
$ python build-wxpython.py --build_dir=…/bld
old_options = set( )
sys.argv = [‘–build_dir=…/bld’]
Traceback (most recent call last):
File “build-wxpython.py”, line 205, in
SWIG_BIN = commands.getoutput(“which swig”)
AttributeError: ‘module’ object has no attribute ‘getoutput’
This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
–
Robin Dunn
Software Craftsman
http://wxPython.org
Robin
February 1, 2013, 6:00pm
4
patrick korsnick wrote:
> Hi all,
>
> I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
> patch applied and keep getting this error:
>
> $ python build-wxpython.py --build_dir=../bld
> old_options = set( )
> sys.argv = ['--build_dir=../bld']
> Traceback (most recent call last):
> File "build-wxpython.py", line 205, in <module>
> SWIG_BIN = commands.getoutput("which swig")
> AttributeError: 'module' object has no attribute 'getoutput'
>
> This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
patrick korsnick wrote:
$ python --version
Python 2.7.3
$ uname -a
Linux lmtool-hacksaw 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24
UTC 2013 i686 i686 i386 GNU/Linux
$ python2.7 -c "import commands; print commands.getoutput"
<function getoutput at 0x10049e050>
Perhaps you have some other commands module that is being imported instead of the one from the Python library.
···
On Wednesday, January 30, 2013 2:58:16 PM UTC-7, Robin Dunn wrote:
--
Robin Dunn
Software Craftsman
python2.7 -c “import commands; print commands.getoutput”
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘module’ object has no attribute ‘getoutput’
···
On Friday, February 1, 2013 11:00:09 AM UTC-7, Robin Dunn wrote:
On Wednesday, January 30, 2013 2:58:16 PM UTC-7, Robin Dunn wrote:
patrick korsnick wrote:
> Hi all,
>
> I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
> patch applied and keep getting this error:
>
> $ python build-wxpython.py --build_dir=../bld
> old_options = set([])
> sys.argv = ['--build_dir=../bld']
> Traceback (most recent call last):
> File "build-wxpython.py", line 205, in <module>
> SWIG_BIN = commands.getoutput("which swig")
> AttributeError: 'module' object has no attribute 'getoutput'
>
> This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
patrick korsnick wrote:
$ python --version
Python 2.7.3
$ uname -a
Linux lmtool-hacksaw 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24
UTC 2013 i686 i686 i386 GNU/Linux
$ python2.7 -c “import commands; print commands.getoutput”
<function getoutput at 0x10049e050>
Perhaps you have some other commands module that is being imported
instead of the one from the Python library.
–
Robin Dunn
Software Craftsman
http://wxPython.org
Ok I think I figured out what was wrong: we set PYTHONPATH=/some/directory/for/our/code in /etc/profile. When I went into python and did an ‘import commands’ followed by ‘print commands’ it showed it was importing it from our directory instead of the default python directory. I unset PYTHONPATH and it worked. So I guess I need to figure out how to add our directory to the end of PYTHONPATH instead of the beginning so it finds the default python stuff before ours.
···
On Friday, February 1, 2013 11:09:00 AM UTC-7, patrick korsnick wrote:
python2.7 -c “import commands; print commands.getoutput”
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘module’ object has no attribute ‘getoutput’
On Friday, February 1, 2013 11:00:09 AM UTC-7, Robin Dunn wrote:
On Wednesday, January 30, 2013 2:58:16 PM UTC-7, Robin Dunn wrote:
patrick korsnick wrote:
> Hi all,
>
> I recently tried to build 2.9.4.0 both with and without the 2.9.4.1
> patch applied and keep getting this error:
>
> $ python build-wxpython.py --build_dir=../bld
> old_options = set([])
> sys.argv = ['--build_dir=../bld']
> Traceback (most recent call last):
> File "build-wxpython.py", line 205, in <module>
> SWIG_BIN = commands.getoutput("which swig")
> AttributeError: 'module' object has no attribute 'getoutput'
>
> This is on ubuntu 12.04.1. Any ideas how to fix it?
What version of Python are you using?
patrick korsnick wrote:
$ python --version
Python 2.7.3
$ uname -a
Linux lmtool-hacksaw 3.2.0-36-generic #57-Ubuntu SMP Tue Jan 8 21:41:24
UTC 2013 i686 i686 i386 GNU/Linux
$ python2.7 -c “import commands; print commands.getoutput”
<function getoutput at 0x10049e050>
Perhaps you have some other commands module that is being imported
instead of the one from the Python library.
–
Robin Dunn
Software Craftsman
http://wxPython.org