Skip to content

n't find GeoStudio executables with the path provided. Please correct the path and redefine it with defineGeoStudioLauncher() method. #16

@colomber

Description

@colomber

Hi,MoiseRousseau
Our GeoStudio licenses are for the 2023.1 version, and the path to GeoStudio.exe is "C:\Program Files\Seequent\GeoStudio 2023.1\Bin\GeoStudio.exe", as shown in the attached image. However, when I run the following code:
import PyGeoStudio as pgs
pgs.defineGeoStudioLauncher("C:\Program Files\Seequent\GeoStudio 2023.1\Bin\GeoStudio.exe")
exit()
屏幕截图 2024-07-08 171418
I get the following error:
Traceback (most recent call last):
File "F:\Pycharm\pycharm\pythonProject\slope.venv\lib\site-packages\PyGeoStudio\utils.py", line 72, in testLauncher
output = subprocess.run(cmd, check=False, stdout=subprocess.PIPE).stdout.decode()
File "F:\Pycharm\PYTHON\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "F:\Pycharm\PYTHON\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "F:\Pycharm\PYTHON\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:\Pycharm\pycharm\pythonProject\slope\test.py", line 3, in
pgs.defineGeoStudioLauncher("C:\Program Files\Seequent\GeoStudio 2023.1\Bin\GeoStudio.exe")
File "F:\Pycharm\pycharm\pythonProject\slope.venv\lib\site-packages\PyGeoStudio\utils.py", line 35, in defineGeoStudioLauncher
testLauncher(s)
File "F:\Pycharm\pycharm\pythonProject\slope.venv\lib\site-packages\PyGeoStudio\utils.py", line 74, in testLauncher
raise ValueError(error_message)
ValueError: Can't find GeoStudio executables with the path provided. Please correct the path and redefine it with defineGeoStudioLauncher() method.
I have also tried using pgs.defineGeoStudioLauncher(r"C:\Program Files\Seequent\GeoStudio 2023.1\Bin\GeoStudio.exe") but still get the same error.
I also have an executable called GeoCmd.exe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions