Closed IanCZane closed 3 years ago
Send me full exception please. This is weird, maybe some dependency has broken installer... Dne 10. 7. 2014 23:21 "IanCZane" notifications@github.com napsal(a):
When I try to install this, using either sudo python setup.py develop or sudo python setup.py develop, I get a max recursion depth exceeded error. Anything you suggest? I've tried adding sys.setrecursionlimit(5000) to the beginnings of various files (after the import calls, of course), but I'm still hitting the limit. I'm thinking it might be an issue of RAM, as I don't have much, but that seems like a pretty weird issue for me to be having. It'd be pretty odd for a python module installation to use more than a few megabytes of RAM, right?
I'm trying to install using Python 2.7.6 on Ubuntu 14.04.
Reply to this email directly or view it on GitHub https://github.com/slush0/stratum/issues/19.
I am also seeing this issue:
$ python setup.py develop
Extracting in /tmp/tmptQsH_u
Now working in /tmp/tmptQsH_u/distribute-0.6.28
Building a Distribute egg in /home/ubuntu/code/stratum
Traceback (most recent call last):
File "setup.py", line 220, in <module>
scripts = scripts,
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2029, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 825, in best_match
return self.obtain(req, installer) # try and download/install
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 837, in obtain
return installer(requirement)
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 272, in fetch_build_egg
dist = self.__class__({'script_args':['easy_install']})
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2029, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 825, in best_match
return self.obtain(req, installer) # try and download/install
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 837, in obtain
return installer(requirement)
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 272, in fetch_build_egg
dist = self.__class__({'script_args':['easy_install']})
# few hundred repetitive lines omitted
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2029, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 825, in best_match
return self.obtain(req, installer) # try and download/install
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 837, in obtain
return installer(requirement)
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 272, in fetch_build_egg
dist = self.__class__({'script_args':['easy_install']})
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 225, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/tmptQsH_u/distribute-0.6.28/setuptools/dist.py", line 257, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2029, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 579, in resolve
env = Environment(self.entries)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 748, in __init__
self.scan(search_path)
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 777, in scan
for dist in find_distributions(item):
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 1757, in find_on_path
path_item,entry,metadata,precedence=DEVELOP_DIST
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2151, in from_location
py_version=py_version, platform=platform, **kw
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 2128, in __init__
self.project_name = safe_name(project_name or 'Unknown')
File "/tmp/tmptQsH_u/distribute-0.6.28/pkg_resources.py", line 1139, in safe_name
return re.sub('[^A-Za-z0-9.]+', '-', name)
File "/home/ubuntu/.virtualenvs/stratum/lib/python2.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
RuntimeError: maximum recursion depth exceeded
/home/ubuntu/code/stratum/distribute-0.6.28-py2.7.egg
Traceback (most recent call last):
File "setup.py", line 3, in <module>
use_setuptools()
File "/home/ubuntu/code/stratum/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/ubuntu/code/stratum/distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "/home/ubuntu/code/stratum/distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.
Removing these lines from setup.py worked for me:
#from distribute_setup import use_setuptools
#use_setuptools()
I can confirm that removing these 2 lines fixes this problem.
Any idea what might have caused this? I'm having the same issue, even after removing those 2 lines.
When I try to install this, using either
sudo python setup.py develop
orsudo python setup.py develop
, I get amax recursion depth exceeded
error. Anything you suggest? I've tried addingsys.setrecursionlimit(5000)
to the beginnings of various files (after theimport
calls, of course), but I'm still hitting the limit. I'm thinking it might be an issue of RAM, as I don't have much, but that seems like a pretty weird issue for me to be having. It'd be pretty odd for a python module installation to use more than a few megabytes of RAM, right?I'm trying to install using Python 2.7.6 on Ubuntu 14.04.
Edit: This is still technically an issue, but it isn't in any way urgent, as I was able to get the proxy running on my VPS via Wine. It doesn't work with Mono, but it does with Wine.