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 using PyCharm to control origin

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
Karsten8 Posted - 02/26/2025 : 01:47:55 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 03/11/2025 : 04:18:26 AM
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

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