Hi, I've been having a strange problem with an executable that I create from a previously downloaded package using pip install -e --user nemosphere.
This is under python 2.7.11 from macports. As it should be, an executable is created, ~/Library/Python/2.7/bin/3ddriver which I then link to ~/bin/3ddriver and looks like this: #!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python # EASY-INSTALL-ENTRY-SCRIPT: 'nemosphere','console_scripts','3ddriver' __requires__ = 'nemosphere' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('nemosphere', 'console_scripts', '3ddriver')() ) However I try to run 3ddriver, I get $ 3ddriver ..... Traceback (most recent call last): File "/Users/agn/bin/3ddriver", line 5, in <module> from pkg_resources import load_entry_point File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3138, in <module> @_call_aside File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3124, in _call_aside f(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 661, in _build_master ws.require(__requires__) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 962, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'ordereddict' distribution was not found and is required by funcsigs *The problem is solved if I install ordereddict*, but I am using python 2.7, so it shouldn't be necessary since python 2.7 already has collections.OrderedDict (and indeed it was not necessary until this week when I upgraded my macports set up, and funcsigs was upgraded to v1.0.0). IIs the problem that the current version of pkg_resources (which I believe is part of setuptools) automatically searches for ordereddict or is it a funcsigs problem? I am running v 19.2 of setuptools and v 1.0.0 of funcsigs: ~ $python Python 2.7.11 (default, Mar 1 2016, 18:08:21) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import setuptools >>> print setuptools.__version__ 19.2 >>> import funcsigs >>> print funcsigs.__version__ 1.0.0 >>> Regards, George Nurser.
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig