⚡ Sangsakala Proxy 🏠 Home
Skip to content

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

Open

Description

@aaronccooke-hs

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

Activity

  1. minjk-bl commented on Aug 29, 2022

    @minjk-bl
    Collaborator

    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 :)

  2. aaronccooke-hs commented on Aug 29, 2022

    @aaronccooke-hs
    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.

  3. minjk-bl commented on Aug 31, 2022

    @minjk-bl
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions