10-27-2021 11:59 AM
Hello,
I have DIAdem 2021 installed on my computer, and I'm trying to figure out how to use Python to execute scripts. I have tried multiple examples from the DIAdem help to understand how to use Python scripting to work with data and report generation. However, every time I press the run button DIAdem freezes and shows the following error in the results window:
**** DIAdem START Version: 21 on 10/27/2021 at 12:50:28 PM
3 12:54:14 PM Error:
Error while executing "" command
Error type: ACCESS VIOLATION
Error address: 000141CB
Module name:DIAdem.exe
Does anyone know how to eliminate this problem?
10-28-2021 06:46 AM
So this error is shown even with the shipped examples?
10-28-2021 11:07 AM
Hi DesasterMaster,
Yes, it doesn't matter which example file I use. It happens with every single one I've tried. Even with the default python script template, I get the same error after pressing run.
10-29-2021 01:30 AM
As the error is an "ACCESS VIOLATION" try running DIAdem as Administrator.
If it works than you have an issue with the rights management.
11-02-2021 02:21 PM
Hi Sam,
If running DIAdem as Administrator doesn't sidestep the python problem you're having, then I'd suggest you check the configured python runtime engine path in the DIAdem Settings dialog. Can you look that up and post it here?
Have you tried a repair or reinstallation? I've not heard of any other customer with this issue.
Brad Turpin
Principal Technical Support Engineer
NI
11-03-2021 12:05 PM
Attached are pictures of my Python installation directory. I've tried repairing DIAdem through the package manager, but the problem still remains.
11-04-2021 10:27 AM
Hi Sam,
It looks like you've configured DIAdem 2021 to run a python 3.10 version, but according to the Release Notes, DIAdem 2021 only works with Python 3.6 and 3.7...
Brad Turpin
Principal Technical Support Engineer
NI