From anonymous, 9 Months ago, written in Plain Text.
Embed
  1. [florian@hooch ~]$ cat /usr/bin/devpi-server
  2. #!/usr/bin/python
  3. # EASY-INSTALL-ENTRY-SCRIPT: 'devpi-server==4.2.0','console_scripts','devpi-server'
  4. __requires__ = 'devpi-server==4.2.0'
  5. import re
  6. import sys
  7. from pkg_resources import load_entry_point
  8.  
  9. if __name__ == '__main__':
  10.     sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
  11.     sys.exit(
  12.         load_entry_point('devpi-server==4.2.0', 'console_scripts', 'devpi-server')()
  13.     )
  14.  
  15. [florian@hooch ~]$ python3  /usr/bin/devpi-server
  16. Traceback (most recent call last):
  17.   File "/usr/bin/devpi-server", line 6, in <module>
  18.     from pkg_resources import load_entry_point
  19.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3049, in <module>
  20.     @_call_aside
  21.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3033, in _call_aside
  22.     f(*args, **kwargs)
  23.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
  24.     working_set = WorkingSet._build_master()
  25.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 658, in _build_master
  26.     ws.require(__requires__)
  27.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 972, in require
  28.     needed = self.resolve(parse_requirements(requirements))
  29.   File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 858, in resolve
  30.     raise DistributionNotFound(req, requirers)
  31. pkg_resources.DistributionNotFound: The 'plaster_pastedeploy' distribution was not found and is required by pyramid
  32.  
  33. [florian@hooch ~]$ which python3
  34. /usr/bin/python3
  35.  
  36. [florian@hooch ~]$ python3
  37. Python 3.6.2 (default, Jul 20 2017, 03:52:27)
  38. [GCC 7.1.1 20170630] on linux
  39. Type "help", "copyright", "credits" or "license" for more information.
  40. >>> from pkg_resources import load_entry_point
  41. >>>
  42.