I have an issue. I'm installing pyramid application on Ubuntu / Python 2.7 on virtual environment. I'm running setup.py as
../bin/python2.7 setup.py develop
from root project directory and after:
Traceback (most recent call last):
File "setup.py", line 48, in <module>
""",
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/local/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/local/lib/python2.7/site-packages/setuptools/dist.py", line 301, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2272, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2489, in requires
dm = self._dep_map
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2543, in __getattr__
raise AttributeError(attr)
AttributeError: _dep_map
What do you think? May be you seen this error and know how fix it?
Without knowing your exact setup.py or your code layout: Do have by any chance a module called parser in your path? That's your problem.
I had this same issue, but there was no parser module I could see. I had to recreate a virtual environment and install requirements.txt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With