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
 Problems with embedded Python after Origin upgrade
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TorbenS

Germany
12 Posts

Posted - 08/01/2024 :  10:55:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I used to work with the Origin 2022b version and had plenty of embedded python scripts which I used for data analysis. Normally I start them directly in the code builder of origin.
Today I upgraded to Origin2024b and all my python script failed to work.

When I run a random script I get the error message:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "C:\Users\torbensa\Documents\OriginLab\Anwenderdateien\stst_import.py", line 1, in <module>
import originpro as op
File "C:\ProgramData\OriginLab\101\PyPackage\Py3\originpro\__init__.py", line 9, in <module>
from .config import *
File "C:\ProgramData\OriginLab\101\PyPackage\Py3\originpro\config.py", line 61, in <module>
np.float64: po.DF_DOUBLE,
^^^^^^^^^^
AttributeError: module 'numpy' has no attribute 'float64'

After a short web search I found this website:
https://www.originlab.com/doc/Quick-Help/Reinstall-Python-Packages
But when I run the command in the script window the output says that there are no a updates needed.
Otherwise I cannot find other suggestions for solving the problem.
I hope you can help me.

Thanks in advance and kind regards
Torben


Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2024 (64-bit) SR1
Operating System: Windows 10

minimax

348 Posts

Posted - 08/06/2024 :  01:47:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Torben,

Would you mind to try following:

1.In Windows Explorer, go to folder
C:\ProgramData\OriginLab\PyPackage\Py311\64bit

(ProgramData is a hidden folder by default, you may paste above path in Explorer's address bar directly)

2.double click the numpy subfolder.
--> can you open it directly?
==> or it pops up msg box asking permission?
Go to Top of Page

TorbenS

Germany
12 Posts

Posted - 08/07/2024 :  07:54:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hey Minimax,
you are right it asks for permission.
So I guess I have to give it for every package I use?
Thanks and best regards,
Torben
Go to Top of Page

minimax

348 Posts

Posted - 08/08/2024 :  06:12:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Torben,

I sent an email (profile in this forum) to you with some follow up on fixing the issue.

Would you mind to check?
Go to Top of Page

minimax

348 Posts

Posted - 08/08/2024 :  9:38:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We added the issue to the bug database and will fix it in the next version 2025, ID is ORG-29607.
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