ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange problem with LabPython when calling datetime.strptime()

Here's my code.

 

 snippet problem.png

 

Whenever this is run, I get the following error:

 

Error 1050 occurred at PYTHON Execute Script__ogtk.vi->Writer.vi:<type 'exceptions.TypeError'>, attribute of type 'NoneType' is not callable

 The code works perfectly in python. Any ideas of how to get around this problem?

______________________________________________________________


______________________________________________________________
0 Kudos
Message 1 of 3
(3,306 Views)

@Gazebo wrote:

Here's my code.

 

 snippet problem.png

 

Whenever this is run, I get the following error:

 

Error 1050 occurred at PYTHON Execute Script__ogtk.vi->Writer.vi:<type 'exceptions.TypeError'>, attribute of type 'NoneType' is not callable

 The code works perfectly in python. Any ideas of how to get around this problem?


This is a LabVIEW forum. You need to ask for help at the LabPython forum.

0 Kudos
Message 2 of 3
(3,264 Views)

Hello,

 

As noted by nyc, LabPython is not supported by National Instruments.

 

To help you, I give you a piece of advice :

 

If you want to integrate in LabVIEW a script in Python which has been developed by you, I suggest you to try to replace all the VI by  the Python 2.2 Script node

If you want to share the library "python.27.dll", I suggest you to try to reverse the first and the second VI (first, use Python New Session.VI and then use

Python Set Servers Path.VI)

 

This link could help you:

http://labpython.sourceforge.net/palette.html

 

Best regards,

Guillaume D
0 Kudos
Message 3 of 3
(3,241 Views)