Skip to content

Running "pip install ." fails on Windows #755

Description

@sschuberth

I'm not 100% sure this is supposed to work, but as it does on Linux, I believe it should work on Windows, too. Running pip install . on a fresh checkout of ScanCode gives

Processing c:\dev\scancode-toolkit
Exception:
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\pip\basecommand.py", line 209, in main
    status = self.run(options, args)
  File "c:\python27\lib\site-packages\pip\commands\install.py", line 299, in run
    requirement_set.prepare_files(finder)
  File "c:\python27\lib\site-packages\pip\req\req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "c:\python27\lib\site-packages\pip\req\req_set.py", line 577, in _prepare_file
    session=self.session, hashes=hashes)
  File "c:\python27\lib\site-packages\pip\download.py", line 798, in unpack_url
    unpack_file_url(link, location, download_dir, hashes=hashes)
  File "c:\python27\lib\site-packages\pip\download.py", line 676, in unpack_file_url
    shutil.copytree(link_path, location, symlinks=True)
  File "c:\python27\lib\shutil.py", line 208, in copytree
    raise Error, errors
Error: [('C:\\Dev\\scancode-toolkit\\tests\\scancode\\data\\unicodepath\\uc\\unicodepath\\???', 'c:\\users\\sebast~1\\appdata\\local\\temp\\pip-wizgww-build\\tests\\scancode\\data\\unicodepath\\uc\\unicodepath\\???', "[Errno 22] invalid   mode ('rb') or filename: 'C:\\\\Dev\\\\scancode-toolkit\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???'"), ('C:\\Dev\\scancode-toolkit\\tests\\scancode\\data\\unicodepath\\uc\\unicodepath\\???a',   'c:\\users\\sebast~1\\appdata\\local\\temp\\pip-wizgww-build\\tests\\scancode\\data\\unicodepath\\uc\\unicodepath\\???a', "[Errno 22] invalid mode ('rb') or filename:   'C:\\\\Dev\\\\scancode-toolkit\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???a'")]
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Note that I'm deliberately not calling configure as I'm working on a generic way to detect Python project dependencies, and the generic way to install dependencies is to run pip install AFAIK.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions