Skip to content

Conversation

@bugracoskun
Copy link
Contributor

@bugracoskun bugracoskun commented Apr 14, 2025

When ODM install to with empty folder like "program files", It gives an error on the output.

{
            "command": "C:\\Program Files\\myApp\\modules\\ODM\\venv\\Scripts\\python.exe \"C:\\Program Files\\myApp\\modules\\ODM\\opendm\\tiles\\hsv_merge.py\" \"C:\\Users\\myUser\\AppData\\Roaming\\myApp\\data\\9abf9679-8b8e-4434-a772-f73f98bf4061\\odm_dem\\dsm.previewcolor.tif\" \"C:\\Users\\myUser\\AppData\\Roaming\\myApp\\data\\9abf9679-8b8e-4434-a772-f73f98bf4061\\odm_dem\\dsm.previewhillshade.tif\" \"C:\\Users\\myUser\\AppData\\Roaming\\myApp\\data\\9abf9679-8b8e-4434-a772-f73f98bf4061\\odm_dem\\dsm.previewcolored_hillshade.tif\"",
            "exitCode": 1,
            "output": [
                "'C:\\Program' is not recognized as an internal or external command,",
                "operable program or batch file."
            ]
        },
        {
            "command": "gdal_translate -outsize 1400 0 -of png \"None\" \"C:\\Users\\myUser\\AppData\\Roaming\\myApp\\data\\9abf9679-8b8e-4434-a772-f73f98bf4061\\opensfm\\stats\\dsm.png\" --config GDAL_CACHEMAX 28.45%",
            "exitCode": 1,
            "output": [
                "ERROR 4: None: No such file or directory"
            ]
        }

I realized that the issue because of tiler.py line.

system.run('%s "%s" "%s" "%s" "%s"' % (sys.executable, hsv_merge_script, colored_dem, hillshade_dem, colored_hillshade_dem))
Input writes with double quote but the first argument is not. I fixed this and I tried the same process.

@bugracoskun bugracoskun changed the title path space issue fixed Path space issue fixed Apr 14, 2025
@pierotofy
Copy link
Member

Thanks for the patch @bugracoskun !

@pierotofy pierotofy merged commit 860eb8b into OpenDroneMap:master Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants