holoviz-dev / pyctdev

Python packaging Common Tasks for Developers
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Added python -m to python_develop method in conda #75

Closed hoxbro closed 2 years ago

hoxbro commented 3 years ago

I have had some problem the last week or so installing panel following this guide. It would install everything fine until I came to pip install --no-deps --no-build-isolation -e . where it would give the message:

Obtaining file:///C:/Users/shh/Desktop/test/panel
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Installing collected packages: panel
  Attempting uninstall: panel
    Found existing installation: panel 0.10.1
    Uninstalling panel-0.10.1:
      Successfully uninstalled panel-0.10.1
  Running setup.py develop for panel
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\shh\\AppData\\Local\\Temp\\pip-uninstall-d9_l6wwu\\panel.exe'
Consider using the `--user` option or check the permissions.

TaskFailed - taskid:develop_install
Command failed: 'pip install --no-deps --no-build-isolation -e .' returned 1

I was running this on Windows 10. After a clean install of Miniconda I can't reproduce the error. But beforehand I tried to set it up so it worked like this PR by appending the following lines to dodo.py in Panel:

import pyctdev._conda
python_develop = 'python -m pip install --no-deps --no-build-isolation -e .'
pyctdev._conda.python_develop = python_develop

Which successful installed panel dev without the error above on my computer. So maybe the error was related to a wrong pip, but that is just speculation from my site.

I could also see that the same error was happening on Panels Appveyor and I wanted to test to see if it could fix it there too. Unfortunately the Appveyor was disabled on Panel before I could test to see if it would work, because of the transition to Github actions (I think). I also did find a link mentioning a somewhat similar problem here.

jbednar commented 3 years ago

This sounds like something that @ceball would know about, to me!