X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 May 2020 02:03 PM by  Paul Mallas
ENVI PyEngine on Windows 10
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Paul Mallas



New Member


Posts:25
New Member


--
21 May 2020 12:28 PM
    Hello,
    I am attempting to run the envipyengine on widows 10 OS. I installed it via pip. I was following the basic setup and test from the directions here: https://envi-py-engine.readthedocs.io/en/latest/

    I executed the basic config:
    >>> envipyengine.config.set('engine', )
    with is the directory containing taskengine.exe

    But just trying to get the available tasks throws a Permission [WinError 5] error (paths shortened for readability):
    >>> from envipyengine import Engine
    >>> envi_engine = Engine('ENVI')
    >>> envi_engine.tasks()
    Traceback (most recent call last):
    File "", line 1, in
    File "...\site-packages\envipyengine\decorators.py", line 15, in memoizer
    cache[args] = obj(*args, **kwargs)
    File "...\site-packages\envipyengine\taskengine\engine.py", line 44, in tasks
    output = taskengine.execute(task_input, self._engine_name, cwd=self._cwd)
    File "...\site-packages\envipyengine\taskengine\taskengine.py", line 74, in execute
    startupinfo=startupinfo)
    File "...lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
    File "...\lib\subprocess.py", line 1207, in _execute_child
    startupinfo)
    PermissionError: [WinError 5] Access is denied

    The website states 'You must have write permissions for Python’s current working directory in order to run the examples.'

    However, my cwd (verified with os.getcwd()) is my home directory and I certainly have write permissions there. I have also run this with an Adminstrative cmd shell and I get the same error.

    Any ideas how to fix this?

    Thanks,
    Paul

    Paul Mallas



    New Member


    Posts:25
    New Member


    --
    21 May 2020 02:03 PM
    As usual, I try to solve a s/w problem to no avail, I then post my problem to some forum like this for help. Then I solve it almost immediately thereafter.

    My problem was on this step:
    >>> envipyengine.config.set('engine', )

    I took to mean the path to my bin directory:
    C:\\Program Files\\Harris\\ENVI55\\IDL87\\bin\\bin.x86_64

    Instead, I had to point the engine path to the actual executable:
    C:\\Program Files\\Harris\\ENVI55\\IDL87\\bin\\bin.x86_64\\taskengine.exe

    Problem solved
    You are not authorized to post a reply.