04-23-2013 06:51 PM
Hello,
I'm trying to execute Python scripts through Labwindows/CVI. I believe I have the correct library for the code to access in my project. I'm getting errors as it can't find "io.h", "stat.h", or "wchar.h" files. There is another post on this, where a modified pyconfig.h file was provided, however that file does not work for me. I'm not sure how to obtain the correct files for what I need here. Is there any dependable method to do this?
I'm on Windows 7, I'm running CVI version 9.1.1 and Python 2.6.6 (32-bit). The library file I'm using was proveded as part of the python install, called "Python26.lib". I zipped and attached the project, but to get it working you have to download Python (http://www.python.org/download/releases/2.6.6/), and point CVI to the "Python.h" header file (in the "include" directory under the "Python26" directory.
04-24-2013 12:22 PM
Where are these .h files located? If you know where these files are located go to Options>>Environment...>>Include Paths... you can add directories that the workspace will look for include files that are not explicitly included in your project.
04-24-2013 01:18 PM
I'm familiar with how to include files. I'm including "Python.h", which itself includes a long list of other files (the files which are the source of my error are in that subset, mentioned in my first post). I guess the problem is that I either need the files and don't have them (where to find them?) or I just plain don't need them (and need to figure out a work-around).
04-25-2013 11:25 AM
When I tried to search for these files I found them in my include directory for Visual Studios which isn't necessarily of help to you in this case.
10-12-2022 10:30 AM
hello
did you find solution at your problem ?
i hhave the same issue and i try to solve it
best regards