Skip to content

OSError Running Autodock Plugin #130

@lalithroopesh

Description

@lalithroopesh

Generating receptors throws the following error:

Error: 2
OSError Exception in Tk callback
  Function: <bound method Autodock.generate_receptor of <pmg_tk.startup.autodock_plugin.Autodock object at 0x0000023B982C6CC8>> (type: <class 'method'>)
  Args: ()
Traceback (innermost last):
  File "C:\Users\lalit\AppData\Local\Schrodinger\PyMOL2\lib\site-packages\Pmw.py", line 1823, in __call__
    return self.func(*args)
  File "C:\Users\lalit\AppData\Local\Schrodinger\PyMOL2\lib\site-packages\pmg_tk\startup\autodock_plugin.py", line 1940, in generate_receptor
    result, output = getstatusoutput(command)
  File "C:\Users\lalit\AppData\Local\Schrodinger\PyMOL2\lib\site-packages\pmg_tk\startup\autodock_plugin.py", line 85, in getstatusoutput
    p = Popen(args, stdout=PIPE, stderr=STDOUT, stdin=PIPE, env=env)
  File "C:\Users\lalit\AppData\Local\Schrodinger\PyMOL2\lib\subprocess.py", line 804, in __init__
    restore_signals, start_new_session)
  File "C:\Users\lalit\AppData\Local\Schrodinger\PyMOL2\lib\subprocess.py", line 1211, in _execute_child
    startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application

Not sure what specifically isn't being read as an application or how to fix it. I have tried setting "USE_SYS_EXECUTABLE" to True and even manually editing to add "python.exe" before .py commands in the plugin in case that is the issue but it did not make any change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions