You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using the setup_environment.py on windows 10, it will ask for Admin privileges
the process will give out the following error
Create virtual environment
New-Item : Administrator privilege required for this operation.
At line:1 char:1
+ New-Item -ItemType SymbolicLink -Path D:\temp\saf-install-test\beam-t ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand
Traceback (most recent call last):
File "D:\temp\saf-install-test\beam-test\setup_environment.py", line 1044, in<module>main()
File "D:\temp\saf-install-test\beam-test\setup_environment.py", line 1012, in main
configure_build_system(args)
File "D:\temp\saf-install-test\beam-test\setup_environment.py", line 635, in configure_build_system
configure_poetry(
File "D:\temp\saf-install-test\beam-test\setup_environment.py", line 658, in configure_poetry
File "C:\Program Files\ANSYS Inc\v232\commonfiles\CPython\3_10\winx64\Release\python\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\ANSYS Inc\v232\commonfiles\CPython\3_10\winx64\Release\python\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\ANSYS Inc\v232\commonfiles\CPython\3_10\winx64\Release\python\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
The problem is that many people still using the older powershell (version 5.1) and according to this issue, it is not possible to create the Symbolic Links without Admin privileges
🔍 Before submitting the issue
🐞 Description of the bug
The problem is that many people still using the older powershell (version 5.1) and according to this issue, it is not possible to create the Symbolic Links without Admin privileges
exact lines where problem occurs are as following
https://github.com/ansys/ansys-templates/blob/aacdb44cc7053ca92bd4e8a289b0e1b90a7e3d30/src/ansys/templates/python/solution/%7B%7Bcookiecutter.__project_name_slug%7D%7D/setup_environment.py#L602C1-L614C18
📝 Steps to reproduce
💻 Which operating system are you using?
Windows
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: