Jump to content

error when calling python script from LV


Recommended Posts

I am trying to call a python script function from labview and get the following error, Module Path: C:\STOKE\code\GSW.Deployment.0.1-rc0\yardmaster\yardmaster.py

LabVIEW: (Hex 0x683) The specified Python module could not be imported.
=========================
LabVIEW: (Hex 0x683) The specified Python module could not be imported.


Module Path: C:\STOKE\code\GSW.Deployment.0.1-rc0\yardmaster\yardmaster.py
Function Name: exit
Python returned the following error: <class 'ImportError'>
DLL load failed while importing _ssl: The specified module could not be found.
<traceback object at 0x037E3FA8>

If I run the python script in a Anaconda Prompt command shell it works as expected.  I'm wondering if the Anaconda enviroment has all of the dependancies needed, but not so in the LV session.  

I've tried passing the parameter "function name" as one of the commands listed below with the module parameter as "yardmaster.py" whcih returns an error in LV but works in the cmd  shell (as shown below).

image.png.07147771d67eda3d8e7040ad3b601bc3.png

Any ideas and/or help is greatly appreciated. 

SERVO Test Python Node.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.