Modify

Opened 6 weeks ago

Last modified 6 weeks ago

#24220 new defect

CommandLine doesnt seem to work (on a Mac)

Reported by: szymonn@… Owned by: Hind
Priority: normal Milestone:
Component: Plugin commandline Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Install latest Python
  2. Install CommandLine plugin in JOSM (on a Mac) - nothing new installs in the /user/Library/JOSM/plugins folder...?
  3. Execute any JOSM CommandLine function.

What is the expected result?

CommandLine functions work

What happens instead?

Error executing the script message appears. See screenshot. Latest version of python installed.

Please provide any additional information below. Attach a screenshot if possible.

Revision:19342
Build-Date:2025-03-01 10:13:29

Identification: JOSM/1.5 (19342 en_GB) Mac OS X 15.3.2
OS Build number: macOS 15.3.2 (24D81)
Memory Usage: 456 MB / 12288 MB (160 MB allocated, but free)
Java version: 21.0.6+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 722490631 1920x1080x32bpp@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=19342, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/private/var/folders/4j/s8ssplzn48v45ccj1wys7dtr0000gn/T/AppTranslocation/5B7A5564-2663-4DEF-9942-69715CC2F5B8/d/JOSM 2.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found

Plugins:
+ BuildingGeneralization (50)
+ CADTools (23)
+ CommandLine (36387)
+ FastDraw (36387)
+ PicLayer (265)
+ buildings_tools (36387)
+ continuosDownload (116)
+ importvec (36379)
+ splinex (36379)
+ terracer (36379)
+ utilsplugin2 (36389)

Last errors/warnings:
- 00037.388 E: Error executing the script: python offset.py 5 Both Yes 
- 00037.389 E: java.io.IOException: Cannot run program "python" (in directory "<josm.userdata>/plugins/CommandLine"): error=2, No such file or directory. Cause: java.io.IOException: error=2, No such file or directory

OSM API: https://opengeofiction.net/api

Attachments (1)

Untitled.jpg (32.6 KB ) - added by anonymous 6 weeks ago.
screenshot of the error message

Download all attachments as: .zip

Change History (4)

by anonymous, 6 weeks ago

Attachment: Untitled.jpg added

screenshot of the error message

comment:1 by stoecker, 6 weeks ago

Have you tried with full path of python executable?

comment:2 by anonymous, 6 weeks ago

don't think so - how do I do that?

comment:3 by stoecker, 6 weeks ago

which python or maybe which python3? tells you the full patch of python, like /usr/bin/python. Use that one instead of only python.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Hind.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Hind to the specified user.
Next status will be 'needinfo'. The owner will be changed from Hind to szymonn@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from Hind to anonymous. Next status will be 'assigned'.

Add Comment


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