tags:

views:

44

answers:

1

hi all, I am installing neo4j.py on ubuntu 10.04 and i got the following errors while executing:

$ sudo python setup.py install

Traceback (most recent call last): File "setup.py", line 146, in main() File "setup.py", line 143, in main setup(**args) File "/usr/lib/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/dist.py", line 221, in init self.fetch_build_eggs(attrs.pop('setup_requires')) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/dist.py", line 245, in fetch_build_eggs parse_requirements(requires), installer=self.fetch_build_egg File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py", line 544, in resolve dist = best[req.key] = env.best_match(req, self, installer) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py", line 786, in best_match return self.obtain(req, installer) # try and download/install File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py", line 798, in obtain return installer(requirement) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/dist.py", line 293, in fetch_build_egg return cmd.easy_install(req) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/command/easy_install.py", line 582, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/command/easy_install.py", line 612, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/command/easy_install.py", line 802, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/command/easy_install.py", line 1079, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/command/easy_install.py", line 1068, in run_setup run_setup(setup_script, args) File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/sandbox.py", line 29, in run_setup lambda: execfile( File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/sandbox.py", line 70, in run return func() File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg/setuptools/sandbox.py", line 31, in {'file':setup_script, 'name':'main'} File "setup.py", line 172, in

File "/tmp/easy_install-p8ABhF/JCC-2.6/helpers/linux.py", line 64, in patch_setuptools NotImplementedError:

Shared mode is disabled, setuptools patch.43.0.6c11 must be applied to enable it or the NO_SHARED environment variable must be set to turn off this error.

sudo patch -d /usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg -Nup0 < /tmp/easy_install-p8ABhF/JCC-2.6/jcc/patches/patch.43.0.6c11

See /tmp/easy_install-p8ABhF/JCC-2.6/INSTALL for more information about shared mode.

any clue on how to solve it? thx

A: 

Seems this is a python installation problem. what about following the advise on the bottom and try

sudo patch -d /usr/local/lib/python2.6/dist-packages/distribute-0.6.14-py2.6.egg -Nup0 < /tmp/easy_install-p8ABhF/JCC-2.6/jcc/patches/patch.43.0.6c11

?

Let me know if that helps!

/peter

hi peter,there is no file on current path:/tmp/easy_install-p8ABhF/JCC-2.6/jcc/patches/patch.43.0.6c11
Francois-K6
Problem solved by installing JCC libary$ sudo apt-get install JCC
Francois-K6