cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-423062%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJMP16%20Python%20Synergies%20-%20%E5%A6%82%E4%BD%95%E4%BD%BF%E8%85%B3%E6%9C%AC%E9%87%8D%E6%96%B0%E5%B7%A5%E4%BD%9C%E4%BB%A5%E9%80%B2%E8%A1%8C%E6%95%B8%E6%93%9A%E5%B0%8E%E5%85%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-423062%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%A6%AA%E6%84%9B%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%B8%8D%E4%B9%85%E5%89%8D%EF%BC%8C%E6%88%91%E9%96%8B%E5%A7%8B%E9%80%9A%E9%81%8E%E4%B8%80%E4%BA%9B%E8%85%B3%E6%9C%AC%E5%B0%8E%E5%85%A5%E6%88%91%E7%9A%84%E6%95%B8%E6%93%9A%EF%BC%8C%E4%B8%A6%E4%BD%BF%E7%94%A8%20phyton%20%E7%95%8C%E9%9D%A2%E5%92%8C%E2%80%9C%E5%8F%AA%E6%98%AF%E2%80%9D%E5%9C%A8%E7%AC%AC%203%20%E9%A0%81%E7%9A%84%E9%80%99%E5%80%8B%E7%A4%BA%E4%BE%8B%E4%B9%8B%E5%BE%8C%20-%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fcontent%2Fdam%2Fjmp%2Fdocuments%2Fen%2Fwhite-papers%2Fwp-jmp-synergies-python-r.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20wp-jmp-synergies-python-r.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3E%E7%8F%BE%E5%9C%A8%E6%88%91%E5%AE%89%E8%A3%9D%E4%BA%86%20JMP%2016%20PRO%20%E4%B8%A6%E5%86%8D%E6%AC%A1%E5%98%97%E8%A9%A6%E4%BA%86%E6%88%91%E7%9A%84%E8%85%B3%E6%9C%AC%20-%20%E4%BD%86%E2%80%9C%E4%BB%96%E2%80%9D%E4%B8%8D%E6%83%B3%E4%B8%80%E9%96%8B%E5%A7%8B%E5%B0%B1%E4%B8%8D%E5%86%8D%E8%AD%98%E5%88%A5%E6%88%91%E7%9A%84%20python%20%E7%89%88%E6%9C%AC%E3%80%82%20%E5%9C%A8%E5%AE%83%E5%B7%A5%E4%BD%9C%E6%AD%A3%E5%B8%B8%E4%B9%8B%E5%89%8D%3A)%3C%2FP%3E%3CP%3E%E4%BB%96%E5%81%9C%E5%9C%A8%E9%80%99%E8%A3%A1%20--%26gt%3B%202%E8%99%9F%E7%B7%9A%3C%2FP%3E%3CP%3Exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%3C%2FP%3E%3CP%3E%E5%90%8D%E7%A8%B1%E9%BB%98%E8%AA%8D%E5%9C%A8%E6%AD%A4%E8%99%95%20(1)%EF%BC%9B%3C%2FP%3E%3CP%3EPython%E5%88%9D%E5%A7%8B%E5%8C%96%EF%BC%88%EF%BC%89%EF%BC%9B%3C%2FP%3E%3CP%3EPython%20Submit(%22%5C%5B%23%20%E5%B7%B2%E7%8D%B2%E5%BE%97%20MIT%20%E8%A8%B1%E5%8F%AF%E8%AD%89%20(...%E7%AD%89%E7%AD%89...)%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Script_Phython_Import_JMP16Pro.PNG%22%20style%3D%22width%3A%20661px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Script_Phython_Import_JMP16Pro.PNG%22%20style%3D%22width%3A%20661px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Script_Phython_Import_JMP16Pro.PNG%22%20style%3D%22width%3A%20661px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36245i04FA8C94A60374D3%2Fimage-dimensions%2F661x249%3Fv%3Dv2%22%20width%3D%22661%22%20height%3D%22249%22%20role%3D%22button%22%20title%3D%22Script_Phython_Import_JMP16Pro.PNG%22%20alt%3D%22Script_Phython_Import_JMP16Pro.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Python.Error.PNG%22%20style%3D%22width%3A%20454px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Python.Error.PNG%22%20style%3D%22width%3A%20454px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Python.Error.PNG%22%20style%3D%22width%3A%20454px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36246iC3AFAF07C447BA81%2Fimage-dimensions%2F454x229%3Fv%3Dv2%22%20width%3D%22454%22%20height%3D%22229%22%20role%3D%22button%22%20title%3D%22Python.Error.PNG%22%20alt%3D%22Python.Error.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E4%BD%86%E6%88%91%E6%9C%89%20Python%203.8.1%EF%BC%8C%E5%AE%83%E5%9C%A8%20JMP%2015%20Pro%20%E4%B8%AD%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2FP%3E%3CP%3E%E6%9C%89%E4%BA%BA%E5%8F%AF%E4%BB%A5%E5%91%8A%E8%A8%B4%E6%88%91%E5%A6%82%E4%BD%95%E8%A7%A3%E6%B1%BA%E5%97%8E%EF%BC%9F%20%E6%88%91%E8%A8%98%E5%BE%97%E6%88%91%E6%98%AF%E5%A6%82%E4%BD%95%E6%8C%89%E7%85%A7%E8%85%B3%E6%9C%AC%E6%9B%B8%E4%B8%AD%E7%9A%84%E6%8C%87%E5%B0%8E%E5%AE%89%E8%A3%9D%20Python%20%E5%92%8C%E6%89%80%E6%9C%89%E5%8C%85%E7%9A%84%E2%80%94%E2%80%94%E4%BD%86%E6%88%91%E9%9C%80%E8%A6%81%E5%86%8D%E5%81%9A%E4%B8%80%E6%AC%A1%E5%97%8E%EF%BC%9F%3C%2FP%3E%3CP%3E%E4%B9%9F%E8%A8%B1%E4%BD%A0%E7%9F%A5%E9%81%93%EF%BC%9F%3C%2FP%3E%3CP%3E%E5%90%91%E6%82%A8%E8%87%B4%E4%BB%A5%E6%9C%80%E8%89%AF%E5%A5%BD%E7%9A%84%E7%A5%9D%E6%84%BF%E3%80%82%3C%2FP%3E%3CP%3E%E5%A5%A7%E8%90%8A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-423062%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E8%85%B3%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A6%96%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-426209%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AJMP16%20Python%20Synergies%20-%20%E5%A6%82%E4%BD%95%E4%BD%BF%E8%85%B3%E6%9C%AC%E9%87%8D%E6%96%B0%E5%B7%A5%E4%BD%9C%E4%BB%A5%E9%80%B2%E8%A1%8C%E6%95%B8%E6%93%9A%E5%B0%8E%E5%85%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-426209%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%97%A8%E5%85%8B%E9%9B%B7%E6%A0%BC%E3%80%82%3CBR%20%2F%3E%E6%88%91%E4%BB%A5%E6%9F%90%E7%A8%AE%E6%96%B9%E5%BC%8F%E9%81%B5%E5%BE%AA%E4%BA%86%E6%88%91%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E7%9A%84%E6%96%87%E6%AA%94%E4%B8%AD%E6%89%BE%E5%88%B0%E7%9A%84%E6%89%80%E6%9C%89%E4%BF%A1%E6%81%AF%E3%80%82%20%E2%80%9Cpython%20%E7%9A%84%E5%95%8F%E9%A1%8C%E2%80%9D%E3%80%82%3C%2FP%3E%3CP%3E%E7%8F%BE%E5%9C%A8%EF%BC%8C%E6%88%91%E5%BE%97%E5%88%B0%E4%BA%86%E4%B8%80%E4%BD%8D%E9%9D%9E%E5%B8%B8%E7%86%9F%E7%B7%B4%E7%9A%84%E5%90%8C%E4%BA%8B%E7%9A%84%E5%B9%AB%E5%8A%A9%EF%BC%8C%E4%BB%96%E5%9C%A8%20python%20%E4%B8%AD%E5%98%97%E8%A9%A6%E4%BA%86%E4%B8%80%E4%BA%9B%E6%9D%B1%E8%A5%BF%E3%80%82%3C%2FP%3E%3CP%3E%E6%9C%80%E5%BE%8C%EF%BC%8C%E4%BB%96%2F%E6%88%91%E5%80%91%E6%B2%92%E6%9C%89%E6%88%90%E5%8A%9F%E3%80%82%20%E7%84%B6%E5%BE%8C%EF%BC%8C%E6%88%91%E5%8D%B8%E8%BC%89%E4%BA%86%20Anaconda%20%E4%B8%A6%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%9D%E4%BA%86%20python%E3%80%82%3C%2FP%3E%3CP%3E%E5%AE%83%E7%8F%BE%E5%9C%A8%E5%8F%88%E8%B5%B7%E4%BD%9C%E7%94%A8%E4%BA%86%E3%80%82%20%E6%89%80%E4%BB%A5%E6%88%91%E5%8F%AF%E4%BB%A5%E5%83%8F%E4%BB%A5%E5%89%8D%E4%B8%80%E6%A8%A3%E4%BD%BF%E7%94%A8%E6%88%91%E7%9A%84%E8%88%8A%E8%85%B3%E6%9C%AC%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%89%80%E4%BB%A5%20-%20%E6%88%91%E5%B7%B2%E7%B6%93%E9%80%9A%E9%81%8E%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%9D%20python%20%E8%A7%A3%E6%B1%BA%E4%BA%86%E5%AE%83%E3%80%82%20%E4%B8%8D%E9%9C%80%E8%A6%81%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%9D%20numpy%20%E7%AD%89%E8%BB%9F%E4%BB%B6%E5%8C%85%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%9C%80%E5%A5%BD%E7%9A%84%E7%A5%9D%E6%84%BF%E3%80%82%3C%2FP%3E%3CP%3E%E5%A5%A7%E8%90%8A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fzh-cn%2F15.2%2Findex.shtml%23page%2Fjmp%2Ftroubleshooting-the-jmp-python-integration.shtml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJMP%20Python%20%E9%9B%86%E6%88%90%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-423098%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AJMP16%20Python%20Synergies%20-%20%E5%A6%82%E4%BD%95%E4%BD%BF%E8%85%B3%E6%9C%AC%E9%87%8D%E6%96%B0%E5%B7%A5%E4%BD%9C%E4%BB%A5%E9%80%B2%E8%A1%8C%E6%95%B8%E6%93%9A%E5%B0%8E%E5%85%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-423098%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%B8%8D%E6%98%AF%20Python%20%E5%B0%88%E5%AE%B6%EF%BC%8C%E4%BD%86...%3C%2FP%3E%3COL%3E%3CLI%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E4%BB%8D%E7%84%B6%E5%AE%89%E8%A3%9D%E4%BA%86%2015%EF%BC%8C%E5%AE%83%E4%BB%8D%E7%84%B6%E5%9C%A8%E9%82%A3%E9%87%8C%E5%B7%A5%E4%BD%9C%E5%97%8E%EF%BC%9F%3C%2FLI%3E%3CLI%3E%E5%AE%83%E6%98%AF%E5%90%A6%E5%BE%9E%20cmd.exe%20%E7%AA%97%E5%8F%A3%E9%81%8B%E8%A1%8C%EF%BC%9F%20%E6%88%91%E7%94%A8%E4%BA%86%3CSTRONG%3E%E8%9F%92%E8%9B%87--%E7%89%88%E6%9C%AC%3C%2FSTRONG%3E%E5%92%8C%3CSTRONG%3E%E5%B0%8F%E8%B7%AF%3C%2FSTRONG%3E%E5%91%BD%E4%BB%A4%E6%9F%A5%E7%9C%8B%E6%88%91%E7%9A%84%E5%AE%89%E8%A3%9D%E3%80%82%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22The%20path%20command%20shows%20two%20Python%20directories.%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22The%20path%20command%20shows%20two%20Python%20directories.%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22The%20path%20command%20shows%20two%20Python%20directories.%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36249iAA8DD84E4A3E2467%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22The%20path%20command%20shows%20two%20Python%20directories.%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20path%20command%20shows%20two%20Python%20directories.%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20path%20command%20shows%20two%20Python%20directories.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Epath%20%E5%91%BD%E4%BB%A4%E9%A1%AF%E7%A4%BA%E5%85%A9%E5%80%8B%20Python%20%E7%9B%AE%E9%8C%84%E3%80%82%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E6%88%91%E8%AA%8D%E7%82%BA%20JMP%20%E5%8F%AF%E8%83%BD%E4%BD%BF%E7%94%A8%E8%A8%BB%E5%86%8A%E8%A1%A8%E8%A8%AD%E7%BD%AE%E4%BE%86%E6%9F%A5%E6%89%BE%20python%20%E5%AE%89%E8%A3%9D%E3%80%82%20PythonInit%20%E6%88%96%20PythonConnect%20%E4%B8%AD%E9%82%84%E6%9C%89%E4%B8%80%E5%80%8B%E5%8F%83%E6%95%B8%E4%BE%86%E6%8C%87%E5%AE%9A%E8%B7%AF%E5%BE%91%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E9%A1%98%E6%84%8F%3CEM%3E%E4%B8%8D%E6%98%AF%3C%2FEM%3E%E4%BD%BF%E7%94%A8%20anaconda%20%E7%89%88%E6%9C%AC%EF%BC%8C%E6%88%91%E9%80%99%E6%A8%A3%E5%81%9A%3CEM%3E%E4%B8%8D%E6%98%AF%3C%2FEM%3E%E4%BD%BF%E7%94%A8%E8%99%9B%E6%93%AC%E7%92%B0%E5%A2%83%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Ole_Luehn
Level III

JMP16 Python Synergies - How to make script re-work for data import

Dear.

 

I started a while ago to import my data via some scripts and using the phyton interface and "just" following here this example on page 3 - wp-jmp-synergies-python-r.pdf

Now I installed JMP 16 PRO and tried my scripts again - but "he" doesn´t want to start not recognizing my python version anymore in the beginning. Before it worked fine :)

He stops here --> Line 2

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Names Default To Here (1);

Python Init();

Python Submit("\[# Licensed under the MIT License (...and so on...)Script_Phython_Import_JMP16Pro.PNG

Python.Error.PNG

But I have Python 3.8.1 and it worked in JMP 15 Pro.

Can someone indicate me how to solve it? I remember how I installed Python and all packages following the guidance in the scripting book - but do I need to do it again?

Maybe you know?

Best wishes to you.

Ole

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ole_Luehn
Level III

Re: JMP16 Python Synergies - How to make script re-work for data import

Hi Craige. 
I somehow followed all the infos which I could find on the documentation in the scripting guide. "problems with python".

Now, I had help from a very skilled colleague who tried some things in python.

Finally, he was / we were not succesful. Then, I deinstalled Anaconda and re-installed python. 

It worked again now. So I am able to use my old scripts as used before! 

 

So - I have solved it just by re-installing python. The packages numpy and so on didn´t need to be re-installed! 

 

Best wishes.

Ole

 

Troubleshooting the JMP Python Integration

View solution in original post

2 REPLIES 2
Craige_Hales
Super User

Re: JMP16 Python Synergies - How to make script re-work for data import

Not a Python expert, but...

  1. If you still have 15 installed, does it still work there?
  2. Does it run from the cmd.exe window? I used python --version and the path command to peek at my installation.

The path command shows two Python directories.The path command shows two Python directories.

I think JMP probably uses registry settings to find the python installation. There is also an argument in the PythonInit or PythonConnect to specify the path.

I do not use the anaconda version, and I do not use virtual environments.

Craige
Ole_Luehn
Level III

Re: JMP16 Python Synergies - How to make script re-work for data import

Hi Craige. 
I somehow followed all the infos which I could find on the documentation in the scripting guide. "problems with python".

Now, I had help from a very skilled colleague who tried some things in python.

Finally, he was / we were not succesful. Then, I deinstalled Anaconda and re-installed python. 

It worked again now. So I am able to use my old scripts as used before! 

 

So - I have solved it just by re-installing python. The packages numpy and so on didn´t need to be re-installed! 

 

Best wishes.

Ole

 

Troubleshooting the JMP Python Integration

Recommended Articles