Closed raistlin-akira closed 3 years ago
Thanks for reporting.
Now I'm investigating.
Could you tell me below? ・python version ・minimal code to reproduce
Thanks for the reply.
Python version
Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
To reproduce on Windows:
from saseg_runner import run_egp
run_egp(egp_path='X:/Project.egp', profile_name=`{your profile name}`, eg_version='{your eg version}')
X drive is a remote server or a link to a local path which is created by subst command? if it's latter, a workaround is to use the raw local path.
No. It is from remote server.
My workaround is to copy the egp file from the network to local XD
I think the error is due to that resolving UNC path will require full control to the folder, which causes 'the access denied' error.
Still, I will suggest using os.path.abspath() to get the complete path for egp file in run_egp(). This will save the need to copy file from network drive to local haha
I see.Then, is it possible for you to create the pull request?
This module has many points where Path object is used, so I'm not sure that changing Path.resolve() to os.path.abspath() is enough for your case.
you can make your local development environment like below.
pip uninstall saseg_runner # to uninstall the current version
cd <anywhere>
git clone https://github.com/kjnh10/saseg_runner # it's better to fork this project and clone it for making a pull request later.
cd saseg_runner
pip install --editable ./
# you can edit the 'run' function in runner.py
If it's not, I will try to modify this issue by myself.
v0.1.13 has been released.
If using absolute path resolution in run_egp program, it seems to have no errors and egp files can be opened