The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Exception in OriginExt::ApplicationBase::LT_get_va
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PatrickMS

Germany
2 Posts

Posted - 01/26/2023 :  03:52:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
When I try to import the originpro package in my python script then I get the following error message:

RuntimeError: Exception in OriginExt::ApplicationBase::LT_get_var ==> invalid pointer


The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "V:\10_Mitarbeiter_Informationen_Grafiken_FD\Schygulla\09_tools\software\pythonToOrigin\testPythonToOrigin_1.py", line 7, in <module>
import originpro as op

File "C:\ProgramData\Anaconda3\lib\site-packages\originpro\__init__.py", line 9, in <module>
from .config import *

File "C:\ProgramData\Anaconda3\lib\site-packages\originpro\config.py", line 54, in <module>
if po.LT_get_var('@V') < 10.05:

File "C:\ProgramData\Anaconda3\lib\site-packages\OriginExt\OriginExt.py", line 2796, in LT_get_var
return _OriginExt.ApplicationBase_LT_get_var(self, lpcszVar)

SystemError: <built-in function ApplicationBase_LT_get_var> returned a result with an error set

I have Origin 2022 installed with a valid license and Origin is working perfectly fine by itself. I tried to uninstall originpro and then reinstall it again but the error remains.
I wrote some python scripts using originpro last year on my old laptop which all worked very well. Now I got a new laptop and when I installed all software again and tried to use originpro the error first occurred. When the error first occurred I had two versions of Origin still installed, 2020 and 2022, so I had our system administrator uninstall the 2020 version so that python can unequivocally use the latest 2022 version.
I run a Microsoft Windows 10 Enterprise OS, version 10.0.19045 Build 19045, on a Lenovo T14 Gen 3.
Any help is very much appreciated, many thanks in advance!

PatrickMS

Germany
2 Posts

Posted - 01/27/2023 :  09:42:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
SOLUTION:
After some investigations and tests I found the solution to this issue. After a new installation of Origin it needs to be opened once in administrator mode. Hence, if you work in a company environment and do not possess administrator rights for your computer yourself you have to ask your IT system administrator to open Origin in administrator mode (under your user account) with this credentials once, then close it again. Afterwards, originpro could readily be imported again.
Go to Top of Page

Milycyrus1

1 Posts

Posted - 04/02/2023 :  10:55:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by PatrickMS

SOLUTION:
After some investigations and tests I found the solution to this issue. After a new installation of Origin it needs to be opened once in administrator mode. Hence, if you work in a company environment and do not possess administrator rights for your computer yourself you have to ask your IT system administrator to open Origin in administrator mode (under your user account) with this credentials once, then close it again. Afterwards, originpro could readily be imported again.


I also agree with you.This solution works 100%.
Go to Top of Page

harbin2

USA
1 Posts

Posted - 01/29/2024 :  04:56:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by PatrickMS

SOLUTION:
After some investigations and tests I found the solution to this issue. After a new installation of Origin it needs to be opened once in administrator mode. Hence, if you work in a company environment and do not possess administrator rights for your computer yourself you have to ask your IT system administrator to open Origin in administrator mode (under your user account) with this credentials once, then close it again. Afterwards, originpro could readily be imported again.


Solution to running origin in administrator mode for non-admin users
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000