You are not logged in.

#1 2017-06-26 15:04:36

NeelD
Member
Registered: 2017-06-02
Posts: 44

executable file not found in % PATH%"}

2017/06/26 17:02:08.545933 {"Layer":"1","module":"Gcode","level":"Error","msg":"
External Call Problem exec: 'python speed.py 1': executable file not found in %
PATH%"}

How can I set the path correct? I am running it on Windows.

Offline

#2 2017-06-26 16:51:29

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

It is not part of official release based on error file supposed to called speed.py and in same path as nanoDLP. Ask for the file where you have downloaded SD image or config files for your installation.

Offline

#3 2017-06-26 17:54:57

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

I have tried following directories
Python path
Nanodlp directory
Nanodlp/py directory

Offline

#4 2017-06-26 18:37:09

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Using [[ExecReturn Command]]
    Run external command and send the result to RAMPS eg. [[ExecReturn python my_python_script.py]]

Offline

#5 2017-06-27 05:51:25

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

Share your debug file. We could not recover the file from debug file but atleast we know what it try to achieve.

Offline

#6 2017-06-27 09:01:49

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

G1 Z[[LayerPosition]] F[[ExecReturn C:\Python27\python.exe Speed.py ]] P1

So I am trying to read some info from file and return it back.

Info    148    2017-06-27 10:56:13.145954    RAMPS Sync    Waiting for done message from RAMPS
UNKNOWN    2017-06-27 10:56:13.145954 {"Layer":"148","module":"Gcode","level":"Error","msg":"External Call Problem exec: 'pushover.sh -p 1 -t \'NanoDLP\' \'Printing stopped on Layer 148 of 148\'': executable file not found in %PATH%"}
Notice    148    2017-06-27 10:56:11.126838    Gcode    Position set to 14.8
Debug    148    2017-06-27 10:56:11.126838    Shutter    Shutter Close
Debug    148    2017-06-27 10:55:56.067977    Printing    Curing for 15.000000512 seconds
Warning    148    2017-06-27 10:55:56.067977    Image    Display is not on.
Debug    148    2017-06-27 10:55:55.06792    Shutter    Shutter Open
Error    148    2017-06-27 10:55:55.06792    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:55:55.06692 {"Layer":"148","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    147    2017-06-27 10:55:53.066805    Gcode    Position set to 14.7
Debug    147    2017-06-27 10:55:53.066805    Shutter    Shutter Close
Debug    147    2017-06-27 10:55:38.007944    Printing    Curing for 15.000000512 seconds
Warning    147    2017-06-27 10:55:38.007944    Image    Display is not on.
Debug    147    2017-06-27 10:55:37.007887    Shutter    Shutter Open
Error    147    2017-06-27 10:55:37.007887    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:55:37.006887 {"Layer":"147","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    146    2017-06-27 10:55:35.006772    Gcode    Position set to 14.6
Debug    146    2017-06-27 10:55:35.006772    Shutter    Shutter Close
Debug    146    2017-06-27 10:55:19.947911    Printing    Curing for 15.000000512 seconds
Warning    146    2017-06-27 10:55:19.947911    Image    Display is not on.
Debug    146    2017-06-27 10:55:18.947854    Shutter    Shutter Open
Error    146    2017-06-27 10:55:18.947854    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:55:18.945854 {"Layer":"146","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    145    2017-06-27 10:55:16.945739    Gcode    Position set to 14.5
Debug    145    2017-06-27 10:55:16.944739    Shutter    Shutter Close
Debug    145    2017-06-27 10:55:01.886878    Printing    Curing for 15.000000512 seconds
Warning    145    2017-06-27 10:55:01.886878    Image    Display is not on.
Debug    145    2017-06-27 10:55:00.886821    Shutter    Shutter Open
Error    145    2017-06-27 10:55:00.886821    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:55:00.885821 {"Layer":"145","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    144    2017-06-27 10:54:58.885706    Gcode    Position set to 14.4
Debug    144    2017-06-27 10:54:58.884706    Shutter    Shutter Close
Debug    144    2017-06-27 10:54:43.826845    Printing    Curing for 15.000000512 seconds
Warning    144    2017-06-27 10:54:43.826845    Image    Display is not on.
Debug    144    2017-06-27 10:54:42.826788    Shutter    Shutter Open
Error    144    2017-06-27 10:54:42.826788    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:54:42.825788 {"Layer":"144","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    143    2017-06-27 10:54:40.825673    Gcode    Position set to 14.3
Debug    143    2017-06-27 10:54:40.825673    Shutter    Shutter Close
Debug    143    2017-06-27 10:54:25.766812    Printing    Curing for 15.000000512 seconds
Warning    143    2017-06-27 10:54:25.766812    Image    Display is not on.
Debug    143    2017-06-27 10:54:24.766755    Shutter    Shutter Open
Error    143    2017-06-27 10:54:24.766755    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:54:24.765755 {"Layer":"143","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    142    2017-06-27 10:54:22.76564    Gcode    Position set to 14.2
Debug    142    2017-06-27 10:54:22.76564    Shutter    Shutter Close
Debug    142    2017-06-27 10:54:07.706779    Printing    Curing for 15.000000512 seconds
Warning    142    2017-06-27 10:54:07.706779    Image    Display is not on.
Debug    142    2017-06-27 10:54:06.706722    Shutter    Shutter Open
Error    142    2017-06-27 10:54:06.706722    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:54:06.705722 {"Layer":"142","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    141    2017-06-27 10:54:04.705607    Gcode    Position set to 14.1
Debug    141    2017-06-27 10:54:04.705607    Shutter    Shutter Close
Debug    141    2017-06-27 10:53:49.646746    Printing    Curing for 15.000000512 seconds
Warning    141    2017-06-27 10:53:49.646746    Image    Display is not on.
Debug    141    2017-06-27 10:53:48.646689    Shutter    Shutter Open
Error    141    2017-06-27 10:53:48.646689    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:53:48.645689 {"Layer":"141","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    140    2017-06-27 10:53:46.645574    Gcode    Position set to 14
Debug    140    2017-06-27 10:53:46.645574    Shutter    Shutter Close
Debug    140    2017-06-27 10:53:31.586713    Printing    Curing for 15.000000512 seconds
Warning    140    2017-06-27 10:53:31.586713    Image    Display is not on.
Debug    140    2017-06-27 10:53:30.586656    Shutter    Shutter Open
Error    140    2017-06-27 10:53:30.586656    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:53:30.585656 {"Layer":"140","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    139    2017-06-27 10:53:28.585541    Gcode    Position set to 13.9
Debug    139    2017-06-27 10:53:28.584541    Shutter    Shutter Close
Debug    139    2017-06-27 10:53:13.52568    Printing    Curing for 15.000000512 seconds
Warning    139    2017-06-27 10:53:13.52568    Image    Display is not on.
Debug    139    2017-06-27 10:53:12.525623    Shutter    Shutter Open
Error    139    2017-06-27 10:53:12.525623    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:53:12.524623 {"Layer":"139","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    138    2017-06-27 10:53:10.524508    Gcode    Position set to 13.8
Debug    138    2017-06-27 10:53:10.524508    Shutter    Shutter Close
Debug    138    2017-06-27 10:52:55.465647    Printing    Curing for 15.000000512 seconds
Warning    138    2017-06-27 10:52:55.465647    Image    Display is not on.
Debug    138    2017-06-27 10:52:54.46559    Shutter    Shutter Open
Error    138    2017-06-27 10:52:54.46559    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:52:54.46459 {"Layer":"138","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    137    2017-06-27 10:52:52.464475    Gcode    Position set to 13.7
Debug    137    2017-06-27 10:52:52.464475    Shutter    Shutter Close
Debug    137    2017-06-27 10:52:37.405614    Printing    Curing for 15.000000512 seconds
Warning    137    2017-06-27 10:52:37.405614    Image    Display is not on.
Debug    137    2017-06-27 10:52:36.405557    Shutter    Shutter Open
Error    137    2017-06-27 10:52:36.405557    Gcode    External Call Problem exec: 'C:\Python27\python.exe Speed.py ': file does not exist
UNKNOWN    2017-06-27 10:52:36.404557 {"Layer":"137","module":"Gcode","level":"Debug","msg":"Execute Command and Return the Result C:\Python27\python.exe Speed.py"}
Notice    136    2017-06-27 10:52:34.404442    Gcode    Position set to 13.6

Offline

#7 2017-06-27 09:32:46

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

If you are using windows version, are you sure about C:\Python27\python.exe path?

Offline

#8 2017-06-27 09:36:00

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Yes above command runs in cmd prompt and returns a value correctly

Offline

#9 2017-06-27 12:26:47

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

Give absolute path to script also try adding \ before space

Offline

#10 2017-06-27 14:57:56

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

G1 Z[[LayerPosition]] F[[ExecReturn C:\Python27\python.exe C:\Speed.py ]] P1
doesnot work

Where should I add \ ?

Offline

#11 2017-06-27 22:54:12

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

G1 Z[[LayerPosition]] F[[ExecReturn C:\\Python27\\python.exe\ C:\\Speed.py]] P1

Offline

#12 2017-06-28 07:06:40

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Thanks for help, but still same error. I checked on internet and tried all directory path structures
\\\\  \\   /  doesnt seem to help. Wondering if its permission issue, if so where can I set it.

Offline

#13 2017-06-28 07:21:40

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

I doubt permission issue as nanodlp get admin access. Will try run script on windows, maybe it needs some kind of tweaking on program itself.

Offline

#14 2017-06-28 11:08:03

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Thanks

Offline

#15 2017-06-29 16:30:03

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Did you get a chance to test it?

Offline

#16 2017-06-29 20:29:23

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

Not yet but it is on my to do list.

Offline

#17 2017-07-01 08:02:45

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

Could you try the beta version and let me know the outcome.

Offline

#18 2017-07-03 11:16:43

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Sorry, for Windows where can I find beta versions?

Offline

#19 2017-07-03 17:11:19

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: executable file not found in % PATH%"}

Oh sorry I have forgotten to upload windows version smile

Offline

#20 2017-07-04 09:50:07

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Seems it fixed the error, so no error in log, but in Terminal both syscall and ExecReturn dont show any value. Though in python I use sys.exit to return the result and seems to work in command prompt.

Offline

#21 2017-07-04 10:57:48

NeelD
Member
Registered: 2017-06-02
Posts: 44

Re: executable file not found in % PATH%"}

Got it to work using sys.stdout.write
thanks for the fix Shahin.

Offline

Board footer

Powered by FluxBB