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 using PyCharm to control origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Karsten8

Germany
26 Posts

Posted - 02/26/2025 :  01:47:55 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: OriginPro 2025
Operating System: Windows Server 2022

Dear Origin-Team and Origin-user,

I have a more general question to writing a Python-code for Origin.
Recently I got a quite long Python code to be implemented in Origin.
I started using PyCharm 2024.3 to run the code but immediately I got an
error. During debugging I found that the reading of a table from
Python to Origin had to be modified. Directly after solving this bug
I encountered a different one where the error code states that a
worksheet does not have a needed parameter.

Finally I took the original code and ran it in origin-only. To my
surprise no error messages at all appeared. After updating Origin and
PyCharm and the packages in both programms I still got the problems
during PyCharm-usage.

Thus my questions:
Is there a general bug or problem using PyCharm to
externally control Origin?

Are there recommendations how to get PyCharm and Origin working
together without problems?

It would be great if you can give some adivce how to use
PyCharm with Origin for coding.

Thanks and best regards,

Karsten8.

minimax

354 Posts

Posted - 03/11/2025 :  04:18:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Karsten8,

I think using PyCharm with Origin should be basically fine.

To get a consistent result, I suggest you may need to ensure:

1. originpro python package's version is the same in both PyCharm and Origin.

2.similarly, it is good to make sure all other in-use packages like numpy, pandas etc. are same versions.

Inside Origin, you can check the versions on Connectivity - Python Packages dialog.

If they are all same versions but you still meet different results, would you mind to show us some pieces of your scripts which can trigger the problem? so that we can check further.


As far as I meet, pandas package seems to change their function prototype frequently and some old functions become deprecated.
So it is good to check the version in first step.

Thanks
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