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.
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.