Skip to content

jupyter-core==4.8.1 causes PermissionError on Windows #241

Closed
@CHDev93

Description

@CHDev93

I upgraded to the latest version of jupyter-core and find that I get the following error

PermissionError: [WinError 5] Access is denied: '<my_home_drive>'

This error seems to be due to the fact that pathlib.Path().resolve() does not work on windows with networkshares. Since my home drive is on a network share, I get a crash from

  File "<my_environment>\lib\site-packages\jupyter_core\paths.py", line 41, in get_home_dir
    homedir = str(Path(homedir).resolve())

Is it possible to patch this to avoid using resolve()?

Related comment from the same issue being discovered in pytest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions