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
 Problems with numpy and originpro

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
boerni Posted - 07/30/2024 : 08:25:46 AM
Hi,
I am new to this forum, but I have a problem and maybe one of you could help me :).

First, some background information:
We run origin on a server and are using the version OriginPro 2023b.
We have installed the python packages numpy and originpro via connectivity -> python packages.

Now to my problem: I am trying to run a python script with a button:

run -pyp data_import.py

In the data_import.py I am using the originpro package as well as some other python intern packages.
For me the whole program works fine, but when someone else is logged in on the server, it won't work and they get the following error message:

Traceback (most recent call last):
File "<string>", line 6, in <module>
File "C:\Users\[user]\AppData\Local\Temp\7\~otfDLBC\data_import.py", line 1, in <module>
import originpro as op
File "C:\ProgramData\OriginLab\100b\PyPackage\Py3\originpro\__init__.py", line 9, in <module>
from .config import *
File "C:\ProgramData\OriginLab\100b\PyPackage\Py3\originpro\config.py", line 60, in <module>
np.float64: po.DF_DOUBLE,
^^^^^^^^^^
AttributeError: module 'numpy' has no attribute 'float64'

We already tried to restart the server, as well as upgrading numpy to 2.0.1, both did not work. It seems, that originpro itself is importing numpy as a package and also finds it, but has problems with that. Maybe it has something to do with different users and user-specific directory options in origin?

Maybe somebody of you have had a similar problem or knows what to do here.
Thank you!
7   L A T E S T    R E P L I E S    (Newest First)
Upcons Posted - 01/24/2025 : 2:53:42 PM
quote:
Originally posted by jasmine_chan

[...]
Please download Origin 2025 in the following webpage, and then try to install and use it.
https://www.originlab.com/demodownload.aspx

Thanks,
Jasmine
OriginLab

Originlab Technical Service Team



Hi,
just to clarify. There is no way you update it for previous Origin versions?
I have the same issue with numpy, but also scipy running Origin 2023 GOV edition. And unfortunately, we won't get a newer Origin version anytime soon, but in any way....when we got Origin 2023 brand new....both python packages were already outdated.

Or is there at least a techy way to swap out these packages manually? Because both, numpy and scipy are teribbly old versions when I install them (Numpy v 1.24.4 was released june 2023, scipy 1.10.1 in feb. 2023)
jasmine_chan Posted - 12/04/2024 : 07:43:59 AM
Dear boerni,

Now Origin 2025 is available!
And the issue about "Internal python packages that are installed by user A failed to work for another user B"(ORG-29607) has been fixed/supported in this new version.

Please download Origin 2025 in the following webpage, and then try to install and use it.
https://www.originlab.com/demodownload.aspx

Thanks,
Jasmine
OriginLab

Originlab Technical Service Team
minimax Posted - 08/08/2024 : 9:38:49 PM
We added the issue to the bug database and will fix it in the next version 2025, ID is ORG-29607.
minimax Posted - 08/08/2024 : 06:13:10 AM
Hi boerni,

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

Would you mind to check?
minimax Posted - 08/07/2024 : 06:07:39 AM
Hi boerni,

We can see the problem now and will check further.
boerni Posted - 08/07/2024 : 03:33:23 AM
Hi minimax,
thank you for your reply. I tried your code and get the same error:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "C:\Users\[user]\AppData\Local\Temp\4\~otfSMMJ\simple_graph.py", line 126, in <module>
    print(np.float64)
          ^^^^^^^^^^
AttributeError: module 'numpy' has no attribute 'float64'


I tried it with all formats used in the config.py from originpro package, since the error occurs from there and got the same error for: float32, int16, int32, int8, uint8, uint16, uint32 and complex128.
So there is a general problem with numpy. Currently I have installed the version 2.0.1, but can't either uninstall nor upgrade/degrade it due to permission error. Even the admin can't edit the installed phyton packages anymore, and we have no idea why. The error I receive is:
PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\originlab\\pypackage\\py311\\64bit\\six-1.16.0.dist-info'

Maybe there is a solution, where we get back control over the installed python packages? We also upgraded origin to OriginPro2024b.

quote:

I suppose he/she uses a different account to log in, is the account type an administrator or standard user or else?


Yes, I think we are standard users, definetly not administrators.
minimax Posted - 08/06/2024 : 01:52:16 AM
Hi boerni,

Would you mind to change the py file content as below to see if there is any error?

import numpy as np
print(np.float64)


quote:
when someone else is logged in on the server


I suppose he/she uses a different account to log in, is the account type an administrator or standard user or else?

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