Bug: Trouble installing cwm in cygwin with python 2.6

Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug: Trouble installing cwm in cygwin with python 2.6

Nils Norman Haukås
Hi there,

Have been working all day to make this work.

After some hours I realized that the .tar.gz distribution did not untar correctly. Had to use cygwin's tar instead of 7zip.

When I use cygwin, go into the extracted cwm folder and run ./setup.py install I get

$ ./setup.py install
swap dir: /usr/lib/python2.6/site-packages/swap
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/bin/cant.py to 755
changing mode of /usr/bin/cwm to 755
changing mode of /usr/bin/delta to 755
running install_egg_info
Removing /usr/lib/python2.6/site-packages/cwm-1.2.1-py2.6.egg-info
Writing /usr/lib/python2.6/site-packages/cwm-1.2.1-py2.6.egg-info

When running tests I get this error below. Btw. I changed the makefile into python 2.6 instead of 2.4.

$ make post-install
PYTHONPATH=`/bin/pwd`/..:`/bin/pwd`/../.. python2.6 retest.py --cwm=../cwm regre                                                                                                                ssion.n3 list/detailed.tests  sparql/detailed.tests  reason/detailed.tests  sets                                                                                                                /detailed.tests  ql/detailed.tests  math/detailed.tests  norm/detailed.tests  cw                                                                                                                m/detailed.tests  ntriples/detailed.tests  string/detailed.tests  syntax/detaile                                                                                                                d.tests  includes/detailed.tests
/home/nilsnh/cwm-1.2.1/swap/llyn.py:60: DeprecationWarning: the md5 module is de                                                                                                                precated; use hashlib instead
  import md5, binascii  # for building md5 URIs
/home/nilsnh/cwm-1.2.1/swap/term.py:1655: DeprecationWarning: object.__new__() t                                                                                                                akes no parameters
  self = Fragment.__new__(cls, *args, **keywords)
/home/nilsnh/cwm-1.2.1/swap/cwm_crypto.py:15: DeprecationWarning: the sha module                                                                                                                 is deprecated; use the hashlib module instead
  import md5, sha, binascii, quopri, base64
  1/159 includes/detailed.tests#listin  Builtins for list membership, binding mu                                                                                                                ltiple values.
      6 [main] python2.6 5436 child_info_fork::abort: address space needed by 'f                                                                                                                cntl.dll' (0x360000) is already occupied
Traceback (most recent call last):
  File "retest.py", line 597, in <module>
    main()
  File "retest.py", line 434, in main
    (env, python_command, cwm_command, arguments, cleanup , case))
  File "retest.py", line 93, in execute
    result = call(cmd1, shell=True, stderr=stderr)
  File "/usr/lib/python2.6/subprocess.py", line 470, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1051, in _execute_child
    self.pid = os.fork()
OSError: [Errno 11] Resource temporarily unavailable
Makefile:36: recipe for target `post-install' failed
make: *** [post-install] Error 1

Running cwm from the folder after the install gives me:

/usr/lib/python2.6/site-packages/swap/why.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5, binascii  # for building md5 URIs
#Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp
        #    using base file:///home/nilsnh/cwm-1.2.1/
/usr/lib/python2.6/site-packages/swap/term.py:1655: DeprecationWarning: object.__new__() takes no parameters
  self = Fragment.__new__(cls, *args, **keywords)
/usr/lib/python2.6/site-packages/swap/cwm_crypto.py:15: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import md5, sha, binascii, quopri, base64

And then the process totally hangs up. I've had similar troubles trying to install cwm with python 2.7. I'm on Windows 7. Are there someone here who's able to run a successful installation on Windows 7 using cygwin who could point me in the right direction?

-- 
Cheers,
Nils N. Haukås