Modify

Opened 15 years ago

Closed 15 years ago

#5949 closed defect (fixed)

can not execute script with shebang

Reported by: jstein Owned by: jstein
Priority: critical Milestone:
Component: Plugin ext_tools Version:
Keywords: Cc:

Description

/home/stein/.josm/plugins/fuzzer/scanaerial.py 102.3769078311502 68.4571777515407 10.828522668411914
/usr/bin/env: python
: No such file or directory

where scanaerial.py is this here:
https://github.com/jonasstein/scanaerial

NB: The ':' after env does not exist in scanaerial.py

Attachments (0)

Change History (8)

comment:1 by Upliner, 15 years ago

I'm not sure that error is in ext_tools. Does the command "/usr/bin/env python" work in regular shell?

comment:2 by Upliner, 15 years ago

Owner: changed from Upliner to jstein
Status: newneedinfo

If it's not a shell or env bug, I have no idea what to do with it anyway...

comment:3 by jstein, 15 years ago

yes it looks where the system has "python" and starts it.

$ /usr/bin/env python                
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 


But this will fail:
$ /usr/bin/env: python
zsh: no such file or directory: /usr/bin/env:

i have no idea where the ':' comes from

comment:4 by Upliner, 15 years ago

I've changed Windows linefeeds to Unix ones, and it's worked for me. I've pushed this fix to GitHub, try it out.

Last edited 15 years ago by Upliner (previous) (diff)

comment:5 by jstein, 15 years ago

where can i find a .jar?
or how should i compile this:
https://github.com/Upliner/josm-ext-tools

comment:6 by Upliner, 15 years ago

No, I've changed only python scripts at https://github.com/jonasstein/scanaerial, just pull them and try again.

comment:7 by jstein, 15 years ago

that solved it thank you.
=> you can close the ticket
i will create a release for ext_tools now

comment:8 by Upliner, 15 years ago

Resolution: fixed
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jstein.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.