T O P I C R E V I E W |
Karsten8 |
Posted - 08/09/2024 : 04:32:09 AM Origin Ver.2024b and Service Release 1: Operating System: Microsoft Server Standard 2022
Dear Origin-Team,
we work on a server as user without admin-rights. My colleague wrote a python-code in origin that works if we run it on the server using his account. But if I start the code we get the message:
Traceback (most recent call last): File "<string>", line 6, in <module> File "C:\Users\...\data_import.py", line 113, in <module> simwb = create_wbook("simres") # creates the wbook where the simulation results will be stored ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\...\data_import.py", line 77, in create_wbook simwb = op.find_book('w', name=title) ^^^^^^^^^^^^ AttributeError: module 'originpro' has no attribute 'find_book'
It seems that origin does not load the originpro module and thus can not find the find_book option. Further on I found that Intellisense does not work, when I open the code builder. For example: (after import of originpro as op) if I start with "op." he does not show the information window how do proceed.
Additionally: if I start the python console in origin and import originpro as op there he does not show the Intellisense as well. In both situations there is no error message that he could not load the origin module.
But originpro is installed in 1.1.10 version (as stated in python packagaes).
Thus in short: - it seems that originpro is not loaded or available in origin - Intellisense does not show originpro information - no error message after "import originpro as op" and still no access to originpro-module in python.
It would be great if you have some advice.
Thanks and best regards, Karsten8. |
6 L A T E S T R E P L I E S (Newest First) |
minimax |
Posted - 03/14/2025 : 06:23:04 AM email sent. It is basically same as above.
Se also https://www.originlab.com/doc/Quick-Help/Interal-Python-Packages-Fail-for-Different-User |
Karsten8 |
Posted - 03/13/2025 : 09:26:50 AM Dear minimax,
I understood the repley of jasmine_chan that the 2025 version has not the same bug.
Please resend the mail and I will download the data and check the bugfix on our system.
Thanks a lot. Best regards, Karsten. |
minimax |
Posted - 03/12/2025 : 10:40:30 PM Hi Karsten8,
Did you receive the email we sent you on 2024-08-12?
In it we show the steps to fix the multiple users issue.
Anyway, I pasted it here again.
1. Restart Origin 2025, run Labtalk script "pip freeze > d:\packages.txt;" //update the path as you need
2.Open the txt with any text editor like Notepad, remove 3 lines containing originpro, jedi, and parso, save the file.
3.Run Labtalk scripts "pip uninstall *;" to remove all packages (since those ones had privilege issue).
4.Close Origin, open Windows Explorer and go to folder below: C:\ProgramData\OriginLab\PyPackage\Py311
verify it is empty, if not, delete all subfolders in it.
5.Start Origin, run Labtalk scripts "pip install -r d:\packages.txt;" --> all packages will be re-installed.
6.after install finishes, restart Origin and try again your original py scripts. --> it should turn working.
Would you mind to check if it helps?
Above steps are necessary for any users who had <=Origin 2024b and ever installed py packages.
If the user only installs 2025 and does not use previous versions before, the steps are not needed and we expect the issue will not appear.
|
Karsten8 |
Posted - 03/12/2025 : 04:47:16 AM Origin Ver.2025 (10.2.0.188) Operating System: Microsoft Server Standard 2022
Dear Origin-Team,
it seems to me that this or a similar problems occurs again in the 2025 origin-version. Again I write a code on a server and a different user with the same rights get the following error.
- I checked that pandas 2.2.2 is installed in origin - as my first post in 2024 - the intellisense does not pop up and no error is stated that origin does not find pandas. - but intellisense works on originpro in the same code
It seems that origin does not import/load pandas into the code. It took this example code from your homepage:
import pandas as pd import originpro as op
data = {'Name':['Tom', 'Jack', 'Mike', 'Alice'],'Grade':[99, 98, 95, 90]} df = pd.DataFrame(data) wks = op.find_sheet() wks.from_df(df)
Traceback (most recent call last): File "<string>", line 6, in <module> File "C:\Users\...\AppData\Local\Temp\18\~otfEMDY\test.py", line 8, in <module> df = pd.DataFrame(data) ^^^^^^^^^^^^ AttributeError: module 'pandas' has no attribute 'DataFrame'
This time origin imports originpro but not pandas.
My IT-department asks whether we can work with environments to prevent this or similar issues.
Thanks for your help. With best regards,
Karsten8. |
jasmine_chan |
Posted - 12/04/2024 : 07:51:02 AM Dear Karsten8,
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/12/2024 : 03:07:08 AM Hi Karsten8,
I sent an email to you(profile in this forum) with some follow up on fixing the issue.
Would you mind to check? |
|
|