Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] On windows 11 visualpy install fails because it is trying to copy from \programfiles\ instead of \program files\ #171

Open
aaronccooke-hs opened this issue Aug 24, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@aaronccooke-hs
Copy link

Here is the error:

Copy visualpython extension files ...

Source Dir : c:\programfiles\python310\lib\site-packages\visualpython
Target Dir : C:\Users\Ace\AppData\Roaming\jupyter\nbextensions\visualpython

File not found - visualpython
0 File(s) copied

I was able to work around this by creating the c:\programfiles\python310\lib\site-packages\visualpython folder and copying all files from c:\Program Files\python310\lib\site-packages\visualpython before running "visualpy install"

image

@aaronccooke-hs aaronccooke-hs added the bug Something isn't working label Aug 24, 2022
@minjk-bl
Copy link
Collaborator

minjk-bl commented Aug 29, 2022

There are some issues with permission on Windows 11. We recommend following actions for this problem.
Give permission

  1. Execute 'Command Prompt' using 'Run as administrator' option.
  2. Use visualpy install

Manually copy files to right place

  1. Copy folder visualpython from ...\site-packages folder to ...\jupyter\nbextensions\ folder
  2. Use visualpy enable

Whether it works ok or not, I'll wait for your further comment, thanks :)

@aaronccooke-hs
Copy link
Author

Thanks for the response. I tried to run as administrator and that did not help the issue. Manually copying the files does work.

I was able to confirm that the script is missing the space between "program" and "files" by creating a \programfiles\ <- (no space between program and file) folder with the expected subfolders and everything worked correctly. I believe changing the script to copy from \Program Files\ <- (note space between program and file) will correct the issue.

@minjk-bl
Copy link
Collaborator

minjk-bl commented Aug 31, 2022

Actually, there is no manually written path in our script... so some information are required to figure it out.

  1. Capture the result after use pip show visualpython
    • we use 'Location' attribute to get VP's path.

If 'Location' shows wrong path such as c:\programfiles\..., then this issue is come from pip configuration problem or the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants