cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-753339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20JSL%20%E8%BF%90%E8%A1%8C%20Python%20%E8%84%9A%E6%9C%AC%20%5B%E6%9D%83%E9%99%90%E9%94%99%E8%AF%AF%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-753339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E8%BF%90%E8%A1%8C%E4%B8%80%E4%B8%AA%E5%8F%AF%E4%BB%A5%E6%89%A7%E8%A1%8C%E5%A4%9A%E9%A1%B9%E6%93%8D%E4%BD%9C%E7%9A%84%20jsl%20%E8%84%9A%E6%9C%AC%E3%80%82%E5%85%B6%E4%B8%AD%E4%B9%8B%E4%B8%80%E6%98%AF%E8%BF%90%E8%A1%8C%E5%A4%96%E9%83%A8%20python%20%E8%84%9A%E6%9C%AC%E3%80%82%E5%BD%93%E6%88%91%E8%BF%90%E8%A1%8C%E5%AF%B9%20excel%20%E6%96%87%E4%BB%B6%E8%BF%9B%E8%A1%8C%E4%B8%80%E4%BA%9B%E4%BF%AE%E6%94%B9%E7%9A%84%20python%20%E8%84%9A%E6%9C%AC%E6%97%B6%EF%BC%8C%E5%AE%83%E4%BC%9A%E6%98%BE%E7%A4%BA%E4%B8%80%E6%9D%A1%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF%EF%BC%8C%E6%8C%87%E7%A4%BA%E6%8B%92%E7%BB%9D%E8%AE%BF%E9%97%AE%2F%E5%86%99%E5%85%A5%20excel%20%E6%96%87%E4%BB%B6%E7%9A%84%E6%9D%83%E9%99%90%E3%80%82%E8%AF%B7%E6%B3%A8%E6%84%8F%EF%BC%8C%E5%BD%93%E6%88%91%E5%8D%95%E7%8B%AC%E8%BF%90%E8%A1%8C%20python%20%E8%84%9A%E6%9C%AC%E6%97%B6%EF%BC%8C%E5%AE%83%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%88%91%E5%A6%82%E4%BD%95%E6%89%8D%E8%83%BD%E7%BB%99%E4%BA%88%20jmp%20%E9%80%82%E5%BD%93%E7%9A%84%E6%9D%83%E9%99%90%EF%BC%9F%E8%B0%A2%E8%B0%A2%E3%80%82%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E4%BB%A3%E7%A0%81%E5%A6%82%E4%B8%8B%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ex%20%3D%20RunProgram(%0A%09%0A%09executable(%20%22python%22%20)%2C%0A%09options(%20%22C%3A%5CUsers%5Cuser1%5CDesktop%5Ctemp.py%22%20)%2C%0A%09readfunction(%20%22blob%22%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-753339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%95%B0%E6%8D%AE%E8%AE%BF%E9%97%AE%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A7%86%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-753389%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20JSL%20%E8%BF%90%E8%A1%8C%20Python%20%E8%84%9A%E6%9C%AC%20%5B%E6%9D%83%E9%99%90%E9%94%99%E8%AF%AF%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-753389%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%A8%20Python%20%E4%BB%A3%E7%A0%81%E4%B8%AD**%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
RA899
Level III

Running Python script using JSL [Permission Error]

Hello, 

I'm trying to run a jsl script that does several things. One of them is to run an external python script. When I run the python script which does some modifications to an excel file, it gives me an error message indicating that permission is denied to access/write on the excel file. Please note that when I run the python script separately, it works like a charm. 

 

How can I give jmp the proper permission? thanks. The code im using is below. 

 

x = RunProgram(
	
	executable( "python" ),
	options( "C:\Users\user1\Desktop\temp.py" ),
	readfunction( "blob" )
);
1 ACCEPTED SOLUTION

Accepted Solutions
RA899
Level III

Re: Running Python script using JSL [Permission Error]

Never mind. The problem was in the code itself. I needed to provide the full path for a sub-routine. 

View solution in original post

2 REPLIES 2
RA899
Level III

Re: Running Python script using JSL [Permission Error]

Never mind. The problem was in the code itself. I needed to provide the full path for a sub-routine. 

RA899
Level III

Re: Running Python script using JSL [Permission Error]

In the python code**