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
 All Forums
 Origin Forum for Programming
 Forum for Python
 Exception in OriginExt::ApplicationBase::LT_get_va

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PatrickMS Posted - 01/26/2023 : 03:52:37 AM
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!
3   L A T E S T    R E P L I E S    (Newest First)
harbin2 Posted - 01/29/2024 : 04:56:55 AM
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
Milycyrus1 Posted - 04/02/2023 : 10:55:04 AM
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%.
PatrickMS Posted - 01/27/2023 : 09:42:40 AM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000