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

fileplatform can not create simlink with windows and python <3.8 #2218

Closed
shchen-idmod opened this issue Mar 26, 2024 · 1 comment
Closed
Labels
bug Something isn't working Platform support python Pull requests that update Python code Test

Comments

@shchen-idmod
Copy link
Collaborator

..\idmtools_platform_file\file_platform.py:170: in link_dir
link.symlink_to(target)


self = WindowsPath('C:/github/idmtools/idmtools_platform_general/tests/DEST/0df355e4-c001-4537-b4cd-f57145d62940/156d81ea-723f-4e7d-815c-22d1b18cc5a0/0fd1024e-9d17-4975-a5d3-747dfec1ba54/Assets')
target = WindowsPath('C:/github/idmtools/idmtools_platform_general/tests/DEST/0df355e4-c001-4537-b4cd-f57145d62940/156d81ea-723f-4e7d-815c-22d1b18cc5a0/Assets'), target_is_directory = False

def symlink_to(self, target, target_is_directory=False):
    """
    Make this path a symlink pointing to the given path.
    Note the order of arguments (self, target) is the reverse of os.symlink's.
    """
    if self._closed:
        self._raise_closed()
  self._accessor.symlink(target, self, target_is_directory)

E OSError: symbolic link privilege not held

c:\Python37\lib\pathlib.py:1352: OSError

@shchen-idmod shchen-idmod added bug Something isn't working Platform support labels Mar 26, 2024
@issuelabeler issuelabeler bot added python Pull requests that update Python code Test labels Mar 26, 2024
@shchen-idmod
Copy link
Collaborator Author

Fixed in 1.7.10 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform support python Pull requests that update Python code Test
Projects
None yet
Development

No branches or pull requests

1 participant