OpenDroneMap / WebODM

User-friendly, commercial-grade software for processing aerial imagery. 🛩
https://www.opendronemap.org/webodm/
GNU Affero General Public License v3.0
2.83k stars 946 forks source link

Local Python Site-Packages Polluting PATH #1469

Open Saijin-Naib opened 7 months ago

Saijin-Naib commented 7 months ago

How did you install WebODM (docker, installer, etc.)?

Installer

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

Windows

What is the problem?

Some installs seem to never work on select machines (error 1 at start), unless a new userprofile is made.

How can we reproduce this? (What steps trigger the problem? What parameters are you using for processing? Include screenshots. If you are having issues processing a dataset, you must include a copy of your dataset uploaded on Dropbox, Google Drive or https://dronedb.app)

User here seems to have isolated it to contention with packages in Site-Packages on the host. https://community.opendronemap.org/t/exit-code-1-cant-run-native-windows-software/19279/7?u=saijin_naib

This fits with seeing the issue on machines with dev and geospatial tooling installed.

Saijin-Naib commented 1 month ago

Confirmed multiple times.

Fix is removal of Python runtimes and removal of Python folder in user's %AppData%.

Somehow, we are contending with packages there.

pierotofy commented 1 month ago

Is there a way to reproduce it on a working machine?

Saijin-Naib commented 1 month ago

Installing EXE/MSI python runtime, or Anaconda seems to do it.

I do not believe MSIX/Store version interferes.

pierotofy commented 1 month ago

If you can write exact steps (with machine specs info, which runtime version to install, which pip packages to install to break the software, etc.) I could try to take a look.

I ask because I've installed a different version of Python before and things were working fine at the time at least on my dev machine.