Advertisement
bogdanbiv

Python Pip install fails creating temp folder

Dec 5th, 2015
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.74 KB | None | 0 0
  1. $ sudo su -
  2. # pip --verbose install ldtp
  3. Collecting ldtp
  4.   Getting page https://pypi.python.org/simple/ldtp/
  5.   Starting new HTTPS connection (1): pypi.python.org
  6.   "GET /simple/ldtp/ HTTP/1.1" 200 345
  7.   1 location(s) to search for versions of ldtp:
  8.   * https://pypi.python.org/simple/ldtp/
  9.   Getting page https://pypi.python.org/simple/ldtp/
  10.   Analyzing links from page https://pypi.python.org/simple/ldtp/
  11.     Found link https://pypi.python.org/packages/source/l/ldtp/ldtp-1.0.0.tar.gz#md5=b3fc52b1ab2c48b825bcc463003d95f9 (from https://pypi.python.org/simple/ldtp/), version: 1.0.0
  12.     Skipping link http://download.freedesktop.org/ldtp/0.x/0.9.x/ldtp-0.9.2.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted
  13.     Skipping link http://download.freedesktop.org/ldtp/1.x/1.0.x/ldtp-1.0.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted
  14.     Skipping link http://download.freedesktop.org/ldtp/1.x/1.1.x/ldtp-1.1.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted
  15.     Skipping link http://download.freedesktop.org/ldtp/3.x/3.0.x/ldtp-3.0.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted
  16.     Skipping link http://download.freedesktop.org/ldtp/3.x/3.5.x/ldtp-3.5.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted
  17.     Skipping link http://ldtp.freedesktop.org (from https://pypi.python.org/simple/ldtp/); not a file
  18.   Using cached ldtp-1.0.0.tar.gz
  19.   Downloading from URL https://pypi.python.org/packages/source/l/ldtp/ldtp-1.0.0.tar.gz#md5=b3fc52b1ab2c48b825bcc463003d95f9 (from https://pypi.python.org/simple/ldtp/)
  20.   Running setup.py (path:/tmp/pip-build-6j6vgvsb/ldtp/setup.py) egg_info for package ldtp
  21.     Running command python setup.py egg_info
  22.     Traceback (most recent call last):
  23.       File "<string>", line 18, in <module>
  24.       File "/usr/lib/python3.4/tokenize.py", line 438, in open
  25.         buffer = _builtin_open(filename, 'rb')
  26.     FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-6j6vgvsb/ldtp/setup.py'
  27.     Complete output from command python setup.py egg_info:
  28.     Traceback (most recent call last):
  29.       File "<string>", line 18, in <module>
  30.       File "/usr/lib/python3.4/tokenize.py", line 438, in open
  31.         buffer = _builtin_open(filename, 'rb')
  32.     FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-6j6vgvsb/ldtp/setup.py'
  33.    
  34.     ----------------------------------------
  35. Cleaning up...
  36. Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6j6vgvsb/ldtp
  37. Exception information:
  38. Traceback (most recent call last):
  39.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 211, in main
  40.     status = self.run(options, args)
  41.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/commands/install.py", line 305, in run
  42.     wb.build(autobuilding=True)
  43.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/wheel.py", line 705, in build
  44.     self.requirement_set.prepare_files(self.finder)
  45.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 334, in prepare_files
  46.     functools.partial(self._prepare_file, finder))
  47.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 321, in _walk_req_to_install
  48.     more_reqs = handler(req_to_install)
  49.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 505, in _prepare_file
  50.     abstract_dist.prep_for_dist()
  51.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 123, in prep_for_dist
  52.     self.req_to_install.run_egg_info()
  53.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 410, in run_egg_info
  54.     command_desc='python setup.py egg_info')
  55.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/utils/__init__.py", line 733, in call_subprocess
  56.     % (command_desc, proc.returncode, cwd))
  57. pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6j6vgvsb/ldtp
  58.  
  59. # pip install ./ldtp
  60. Exception:
  61. Traceback (most recent call last):
  62.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 211, in main
  63.     status = self.run(options, args)
  64.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/commands/install.py", line 282, in run
  65.     wheel_cache
  66.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 272, in populate_requirement_set
  67.     wheel_cache=wheel_cache
  68.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 213, in from_line
  69.     wheel_cache=wheel_cache, constraint=constraint)
  70.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 67, in __init__
  71.     req = pkg_resources.Requirement.parse(req)
  72.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2980, in parse
  73.     reqs = list(parse_requirements(s))
  74.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2924, in parse_requirements
  75.     "version spec")
  76.   File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2889, in scan_list
  77.     raise RequirementParseError(msg, line, "at", line[p:])
  78. pip._vendor.pkg_resources.RequirementParseError: Expected version spec in ./ldtp at /ldtp
  79. root@bivdesk04:~# python --version
  80. Python 2.7.9
  81. root@bivdesk04:~# lsb_release -a
  82. No LSB modules are available.
  83. Distributor ID: Ubuntu
  84. Description:    Ubuntu 15.04
  85. Release:        15.04
  86. Codename:       vivid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement