{"id":360,"date":"2012-05-01T17:31:49","date_gmt":"2012-05-01T17:31:49","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=360"},"modified":"2012-05-02T17:03:51","modified_gmt":"2012-05-02T17:03:51","slug":"installing-python-spidermonkey","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=360","title":{"rendered":"Installing python-spidermonkey"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nClickAndLoad - &quot;ClickAndLoad&quot;:\r\n        bool extern : &quot;Allow external link adding&quot; = True\r\n        bool activated : &quot;Activated&quot; = True\r\n<\/pre>\n<p>install package python-pyrex. move away wd-lib.list (for new libc6 package)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmv \/var\/lib\/dpkg\/info\/wd-lib.list \/root\r\napt-get install python-pyrex\r\nmv \/root\/wd-lib.list \/var\/lib\/dpkg\/info\r\n<\/pre>\n<p>Zuerst ein tmp-Verzechnis erstellen:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ mkdir \/home\/pyload\/tmp\r\n<\/pre>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n174: print filename\r\n<\/pre>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n412: tmpdir = tempfile.mkdtemp(prefix=&quot;easy_install-&quot;,dir=&quot;\/home\/pyload\/tmp&quot;)\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nMyBookLive:\/DataVolume\/shares\/Applications\/python-spidermonkey# python2.6 setup.py --system-library build\r\n\/tmp\/easy_install-DXWK35\/nose-1.1.2.tar.gz\r\nTraceback (most recent call last):\r\n  File &quot;setup.py&quot;, line 190, in &lt;module&gt;\r\n    test_suite = 'nose.collector',\r\n  File &quot;\/usr\/lib\/python2.6\/distutils\/core.py&quot;, line 113, in setup\r\n    _setup_distribution = dist = klass(attrs)\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/dist.py&quot;, line 219, in __init__\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/dist.py&quot;, line 243, in fetch_build_eggs\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/pkg_resources.py&quot;, line 522, in resolve\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/pkg_resources.py&quot;, line 758, in best_match\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/pkg_resources.py&quot;, line 770, in obtain\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/dist.py&quot;, line 286, in fetch_build_egg\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/command\/easy_install.py&quot;, line 446, in easy_install\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/command\/easy_install.py&quot;, line 476, in install_item\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/command\/easy_install.py&quot;, line 626, in install_eggs\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/archive_util.py&quot;, line 67, in unpack_archive\r\n  File &quot;\/DataVolume\/shares\/Applications\/python-spidermonkey\/setuptools-0.6c9-py2.6.egg\/setuptools\/archive_util.py&quot;, line 193, in unpack_tarfile\r\n  File &quot;\/usr\/lib\/python2.6\/tarfile.py&quot;, line 2152, in _extract_member\r\n    self.makefile(tarinfo, targetpath)\r\n  File &quot;\/usr\/lib\/python2.6\/tarfile.py&quot;, line 2194, in makefile\r\n    target.close()\r\nIOError: &#x5B;Errno 28] No space left on device\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# svn checkout http:\/\/python-spidermonkey.googlecode.com\/svn\/trunk\/ python-spidermonkey-read-only\r\n$ git clone https:\/\/github.com\/davisp\/python-spidermonkey.git\r\n$ apt-get install pkg-config\r\n$ apt-get install libnspr4-dev\r\n$ apt-get install libmozjs-dev\r\n$ python setup.py --system-library build\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nMyBookLive:\/DataVolume\/shares\/Applications\/python-spidermonkey# python2.6 setup.py --system-library build\r\n---------------------------------------------------------------------------\r\nThis script requires setuptools version 0.6c9 to run (even to display\r\nhelp).  I will attempt to download it for you (from\r\nhttp:\/\/pypi.python.org\/packages\/2.6\/s\/setuptools\/), but\r\nyou may need to enable firewall access for this script first.\r\nI will start the download in 15 seconds.\r\n\r\n(Note: if this machine does not have network access, please obtain the file\r\n\r\n   http:\/\/pypi.python.org\/packages\/2.6\/s\/setuptools\/setuptools-0.6c9-py2.6.egg\r\n\r\nand place it in this directory before rerunning this script.)\r\n---------------------------------------------------------------------------\r\nDownloading http:\/\/pypi.python.org\/packages\/2.6\/s\/setuptools\/setuptools-0.6c9-py2.6.egg\r\n\r\n\/home\/pyload\/tmp\/easy_install-MMxMSs\/nose-1.1.2.tar.gz\r\n\r\nInstalled \/DataVolume\/shares\/Applications\/python-spidermonkey\/nose-1.1.2-py2.6.egg\r\nrunning build\r\nrunning build_ext\r\nbuilding 'spidermonkey' extension\r\ncreating build\r\ncreating build\/temp.linux-ppc-2.6\r\ncreating build\/temp.linux-ppc-2.6\/spidermonkey\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/pyiter.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/pyiter.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/spidermonkey.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/spidermonkey.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/context.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/context.o -DXP_UNIX -DJS_THREADSAFE\r\nIn file included from \/usr\/include\/mozjs\/jsatom.h:53,\r\n                 from \/usr\/include\/mozjs\/jscntxt.h:49,\r\n                 from spidermonkey\/context.c:14:\r\n\/usr\/include\/mozjs\/jslock.h:189: warning: function declaration isn't a prototype\r\nspidermonkey\/context.c: In function 'Context_new':\r\nspidermonkey\/context.c:383: warning: implicit declaration of function 'JS_SetBranchCallback'\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/convert.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/convert.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/jsobject.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/jsobject.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/jsiterator.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/jsiterator.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/double.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/double.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/error.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/error.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/jsarray.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/jsarray.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/jsfunction.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/jsfunction.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/integer.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/integer.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/string.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/string.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/pyobject.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/pyobject.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/hashcobj.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/hashcobj.o -DXP_UNIX -DJS_THREADSAFE\r\ngcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I\/usr\/include\/mozjs -I\/usr\/include\/nspr -I\/usr\/include\/python2.6 -c spidermonkey\/runtime.c -o build\/temp.linux-ppc-2.6\/spidermonkey\/runtime.o -DXP_UNIX -DJS_THREADSAFE\r\ncreating build\/lib.linux-ppc-2.6\r\ngcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build\/temp.linux-ppc-2.6\/spidermonkey\/pyiter.o build\/temp.linux-ppc-2.6\/spidermonkey\/spidermonkey.o build\/temp.linux-ppc-2.6\/spidermonkey\/context.o build\/temp.linux-ppc-2.6\/spidermonkey\/convert.o build\/temp.linux-ppc-2.6\/spidermonkey\/jsobject.o build\/temp.linux-ppc-2.6\/spidermonkey\/jsiterator.o build\/temp.linux-ppc-2.6\/spidermonkey\/double.o build\/temp.linux-ppc-2.6\/spidermonkey\/error.o build\/temp.linux-ppc-2.6\/spidermonkey\/jsarray.o build\/temp.linux-ppc-2.6\/spidermonkey\/jsfunction.o build\/temp.linux-ppc-2.6\/spidermonkey\/integer.o build\/temp.linux-ppc-2.6\/spidermonkey\/string.o build\/temp.linux-ppc-2.6\/spidermonkey\/pyobject.o build\/temp.linux-ppc-2.6\/spidermonkey\/hashcobj.o build\/temp.linux-ppc-2.6\/spidermonkey\/runtime.o -L\/usr\/lib\/xulrunner-devel-1.9.1\/lib -lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl -o build\/lib.linux-ppc-2.6\/spidermonkey.so\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nMyBookLive:\/DataVolume\/shares\/Applications\/python-spidermonkey# python2.6 setup.py --system-library install\r\nrunning install\r\nChecking .pth file support in \/usr\/local\/lib\/python2.6\/dist-packages\/\r\n\/usr\/bin\/python2.6 -E -c pass\r\nTEST PASSED: \/usr\/local\/lib\/python2.6\/dist-packages\/ appears to support .pth files\r\nrunning bdist_egg\r\nrunning egg_info\r\ncreating python_spidermonkey.egg-info\r\nwriting python_spidermonkey.egg-info\/PKG-INFO\r\nwriting top-level names to python_spidermonkey.egg-info\/top_level.txt\r\nwriting dependency_links to python_spidermonkey.egg-info\/dependency_links.txt\r\nwriting manifest file 'python_spidermonkey.egg-info\/SOURCES.txt'\r\nreading manifest file 'python_spidermonkey.egg-info\/SOURCES.txt'\r\nreading manifest template 'MANIFEST.in'\r\nwarning: no files found matching 'README'\r\nwriting manifest file 'python_spidermonkey.egg-info\/SOURCES.txt'\r\ninstalling library code to build\/bdist.linux-ppc\/egg\r\nrunning install_lib\r\nrunning build_ext\r\ncreating build\/bdist.linux-ppc\r\ncreating build\/bdist.linux-ppc\/egg\r\ncopying build\/lib.linux-ppc-2.6\/spidermonkey.so -&gt; build\/bdist.linux-ppc\/egg\r\ncreating stub loader for spidermonkey.so\r\nbyte-compiling build\/bdist.linux-ppc\/egg\/spidermonkey.py to spidermonkey.pyc\r\ncreating build\/bdist.linux-ppc\/egg\/EGG-INFO\r\ncopying python_spidermonkey.egg-info\/PKG-INFO -&gt; build\/bdist.linux-ppc\/egg\/EGG-INFO\r\ncopying python_spidermonkey.egg-info\/SOURCES.txt -&gt; build\/bdist.linux-ppc\/egg\/EGG-INFO\r\ncopying python_spidermonkey.egg-info\/dependency_links.txt -&gt; build\/bdist.linux-ppc\/egg\/EGG-INFO\r\ncopying python_spidermonkey.egg-info\/not-zip-safe -&gt; build\/bdist.linux-ppc\/egg\/EGG-INFO\r\ncopying python_spidermonkey.egg-info\/top_level.txt -&gt; build\/bdist.linux-ppc\/egg\/EGG-INFO\r\nwriting build\/bdist.linux-ppc\/egg\/EGG-INFO\/native_libs.txt\r\ncreating dist\r\ncreating 'dist\/python_spidermonkey-0.0.9-py2.6-linux-ppc.egg' and adding 'build\/bdist.linux-ppc\/egg' to it\r\nremoving 'build\/bdist.linux-ppc\/egg' (and everything under it)\r\nProcessing setuptools-0.6c9-py2.6.egg\r\nCopying setuptools-0.6c9-py2.6.egg to \/usr\/local\/lib\/python2.6\/dist-packages\r\nAdding setuptools 0.6c9 to easy-install.pth file\r\nInstalling easy_install script to \/usr\/local\/bin\r\nInstalling easy_install-2.6 script to \/usr\/local\/bin\r\n\r\nInstalled \/usr\/local\/lib\/python2.6\/dist-packages\/setuptools-0.6c9-py2.6.egg\r\nProcessing dependencies for setuptools==0.6c9\r\nFinished processing dependencies for setuptools==0.6c9\r\nProcessing python_spidermonkey-0.0.9-py2.6-linux-ppc.egg\r\ncreating \/usr\/local\/lib\/python2.6\/dist-packages\/python_spidermonkey-0.0.9-py2.6-linux-ppc.egg\r\nExtracting python_spidermonkey-0.0.9-py2.6-linux-ppc.egg to \/usr\/local\/lib\/python2.6\/dist-packages\r\nAdding python-spidermonkey 0.0.9 to easy-install.pth file\r\n\r\nInstalled \/usr\/local\/lib\/python2.6\/dist-packages\/python_spidermonkey-0.0.9-py2.6-linux-ppc.egg\r\nProcessing dependencies for python-spidermonkey==0.0.9\r\nFinished processing dependencies for python-spidermonkey==0.0.9\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ClickAndLoad &#8211; &quot;ClickAndLoad&quot;: bool extern : &quot;Allow external link adding&quot; = True bool activated : &quot;Activated&quot; = True install package python-pyrex. move away wd-lib.list (for new libc6 package) mv \/var\/lib\/dpkg\/info\/wd-lib.list \/root apt-get install python-pyrex mv \/root\/wd-lib.list \/var\/lib\/dpkg\/info Zuerst ein tmp-Verzechnis erstellen: $ mkdir \/home\/pyload\/tmp 174: print filename 412: tmpdir = tempfile.mkdtemp(prefix=&quot;easy_install-&quot;,dir=&quot;\/home\/pyload\/tmp&quot;) MyBookLive:\/DataVolume\/shares\/Applications\/python-spidermonkey# python2.6 setup.py &#8211;system-library [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-mybook-live"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360"}],"version-history":[{"count":11,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/360\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}