{"action":"created","issue":{"url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/755","repository_url":"https://api.github.com/repos/nexB/scancode-toolkit","labels_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/755/comments","events_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/755/events","html_url":"https://github.com/nexB/scancode-toolkit/issues/755","id":257304723,"node_id":"MDU6SXNzdWUyNTczMDQ3MjM=","number":755,"title":"Running \"pip install .\" fails on Windows","user":{"login":"sschuberth","id":349154,"node_id":"MDQ6VXNlcjM0OTE1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/349154?v=4","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"labels":[{"id":231147196,"node_id":"MDU6TGFiZWwyMzExNDcxOTY=","url":"https://api.github.com/repos/nexB/scancode-toolkit/labels/bug","name":"bug","color":"fc2929","default":true},{"id":355717472,"node_id":"MDU6TGFiZWwzNTU3MTc0NzI=","url":"https://api.github.com/repos/nexB/scancode-toolkit/labels/installation%20and%20packaging","name":"installation and packaging","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-09-13T08:55:05Z","updated_at":"2018-10-30T21:03:58Z","closed_at":null,"author_association":"COLLABORATOR","body":"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\r\n\r\n    Processing c:\\dev\\scancode-toolkit\r\n    Exception:\r\n    Traceback (most recent call last):\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\basecommand.py\", line 209, in main\r\n        status = self.run(options, args)\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\commands\\install.py\", line 299, in run\r\n        requirement_set.prepare_files(finder)\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\req\\req_set.py\", line 360, in prepare_files\r\n        ignore_dependencies=self.ignore_dependencies))\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\req\\req_set.py\", line 577, in _prepare_file\r\n        session=self.session, hashes=hashes)\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\download.py\", line 798, in unpack_url\r\n        unpack_file_url(link, location, download_dir, hashes=hashes)\r\n      File \"c:\\python27\\lib\\site-packages\\pip\\download.py\", line 676, in unpack_file_url\r\n        shutil.copytree(link_path, location, symlinks=True)\r\n      File \"c:\\python27\\lib\\shutil.py\", line 208, in copytree\r\n        raise Error, errors\r\n    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'\")]\r\n    You are using pip version 8.1.1, however version 9.0.1 is available.\r\n    You should consider upgrading via the 'python -m pip install --upgrade pip' command.\r\n\r\nNote 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."},"comment":{"url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/comments/434468862","html_url":"https://github.com/nexB/scancode-toolkit/issues/755#issuecomment-434468862","issue_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/755","id":434468862,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDQ2ODg2Mg==","user":{"login":"sschuberth","id":349154,"node_id":"MDQ6VXNlcjM0OTE1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/349154?v=4","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T21:03:58Z","updated_at":"2018-10-30T21:03:58Z","author_association":"COLLABORATOR","body":"After running\r\n\r\n```\r\nconfigure --clean\r\nconfigure\r\nbin\\activate\r\npip install .\r\n```\r\n\r\nin `cmd` I still get\r\n\r\n```\r\nProcessing c:\\users\\sebastian\\development\\github\\nexb\\scancode-toolkit\r\nCould not install packages due to an EnvironmentError: [('C:\\\\Users\\\\sebastian\\\\Development\\\\GitHub\\\\nexB\\\\scancode-toolkit\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???', 'c:\\\\users\\\\sebastian\\\\appdata\\\\local\\\\temp\\\\pip-req-build-3g3fcb\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???', \"[Errno 22] invalid mode ('rb') or filename: 'C:\\\\\\\\Users\\\\\\\\sebastian\\\\\\\\Development\\\\\\\\GitHub\\\\\\\\nexB\\\\\\\\scancode-toolkit\\\\\\\\tests\\\\\\\\scancode\\\\\\\\data\\\\\\\\unicodepath\\\\\\\\uc\\\\\\\\unicodepath\\\\\\\\???'\"), ('C:\\\\Users\\\\sebastian\\\\Development\\\\GitHub\\\\nexB\\\\scancode-toolkit\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???a', 'c:\\\\users\\\\sebastian\\\\appdata\\\\local\\\\temp\\\\pip-req-build-3g3fcb\\\\tests\\\\scancode\\\\data\\\\unicodepath\\\\uc\\\\unicodepath\\\\???a', \"[Errno 22] invalid mode ('rb') or filename: 'C:\\\\\\\\Users\\\\\\\\sebastian\\\\\\\\Development\\\\\\\\GitHub\\\\\\\\nexB\\\\\\\\scancode-toolkit\\\\\\\\tests\\\\\\\\scancode\\\\\\\\data\\\\\\\\unicodepath\\\\\\\\uc\\\\\\\\unicodepath\\\\\\\\???a'\")]\r\n```"}}
{"actor":{"display_login":"sschuberth"}}