08-06-2023 10:16 PM
Hello:
I'm having trouble generating an exe that contains a python node.
My source program works fine, but when I turn it into an application, I get an error in 1663:vi?? . I did some checking to narrow down the scope, and found that the same error will be reported when vi programs only include open python callback programs. Whether can i think of it as opening a python session is an error. How exactly can we solve this? What are the considerations for vi to generate an exe containing python node?
Looking forward to your reply, thank you very much!
Solved! Go to Solution.
08-06-2023 10:32 PM
These articles would be helpful
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000wzGfCAI&l=en-US
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHmyCAG&l=en-US
08-06-2023 10:44 PM
Thank you for your reply, but at the moment I am still getting an error when running the generated exe on the development computer.It's very confusing.
08-07-2023 02:48 AM
Thank you very much. My problem is solved. But I had a new problem. When generating the installer, can I add the libraries that python needs, such as pyserial, to the installer?
08-07-2023 08:22 AM
You can include the "whl" files for the libraries, you can create a post-install script to call "pip install" after the installer installs Python.
08-07-2023 10:31 AM
Thanks for your reply. I would have a try.What I would prefer is to be able to self-install even when offline. That might be a little difficult.