Thanks, I've changed that to uname -m now (it seems to work on the half
dozen computers I just tried it on). And so the next (mini-)release will
have that.
Wayne
On Wed, 15 Apr 2009, Magnus Lundborg wrote:
> Hello,
>
> I got the following error when compiling analysis:
> Traceback (most recent call last):
> File "installCode.py", line 1672, in <module>
> main(log_file)
> File "installCode.py", line 1590, in main
> addInfoToVersion(softwareDict)
> File "installCode.py", line 936, in addInfoToVersion
> arch =
> subprocess.Popen(['arch'],stdout=subprocess.PIPE).communicate()[0].strip()
> File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
> errread, errwrite)
> File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
>
> The reason is that the 'arch' command is not available anymore in Ubuntu and
> Debian (perhaps other distributions as well). The 'uname -m' command is used
> instead. An easy way around the problem is to create /bin/arch and put this
> in it:
> #!/bin/bash
> uname -m
>
> Then it should work. I guess another way could be to try to catch the
> exception in the installation script and try to launch 'uname -m' if 'arch'
> is not found.
>
> Good luck
> /Magnus
>
> --
> Magnus Lundborg, ph.D. Student
> Stockholm University
> Department of Organic Chemistry
> Arrhenius Laboratory
> S-106 91 Stockholm
> Sweden
> E-mail address: [log in to unmask]
>
|