Seite 1 von 1

python error open3d

Verfasst: Freitag 12. August 2022, 21:30
von frenik
Ich habe open3d mit "pip install open3d-python" installiert, Weil "pip install open3d" nicht funktioniert hat.
Die installation hat reibungslos funktioniert.
Als ich die Library in mein Python Projekt einbinden wollte,
gab es aber folgenden Error:

Code: Alles auswählen

Traceback (most recent call last):
  File "C:\Users\Frenik\pythonProject\distance\point_cloud.py", line 3, in <module>
    import open3d as o3d
  File "C:\Users\Frenik\AppData\Local\Programs\Python\Python310\lib\site-packages\open3d\__init__.py", line 13, in <module>
    from open3d.win32 import *
  File "C:\Users\Frenik\AppData\Local\Programs\Python\Python310\lib\site-packages\open3d\win32\__init__.py", line 11, in <module>
    globals().update(importlib.import_module('open3d.win32.64b.open3d').__dict__)
  File "C:\Users\Frenik\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\Frenik\AppData\Local\Programs\Python\Python310\lib\site-packages\open3d\win32\64b\__init__.py", line 7, in <module>
    globals().update(importlib.import_module('open3d.win32.64b.open3d').__dict__)
  File "C:\Users\Frenik\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing open3d: Das angegebene Modul wurde nicht gefunden.

Process finished with exit code 1
Habt ihr eine Lösung für das Problem/Das Problem schon mal gehabt?
Danke schon im Voraus
Grüße Frenik

Re: python error open3d

Verfasst: Freitag 12. August 2022, 22:01
von sparrow
Das von die installierte Paket wird seit Jahren nicht mehr gewartet. Das Projekt selbst verweist auf "open3d" in PyPI. Das solltest du auch verwenden.
Wenn "pip install open3d" nicht funktioniert, solltest du schauen woran das liegt und das Problem lösen, anstatt auf ein Paket auszuweichen das "so ähnlich heißt".

Was passiert denn wenn di "open3d" mit pip installierst?

Re: python error open3d

Verfasst: Freitag 12. August 2022, 22:22
von frenik
Wenn ich open3d mit pip installiere bekomme ich folgenden Error:

Code: Alles auswählen

ERROR: Could not find a version that satisfies the requirement open3d (from versions: none)
ERROR: No matching distribution found for open3d
(Python Version: 3.10.6)
(pip Version: 22.2.2)
Hast du eine Idee was ich machen könnte?
Grüße Frenik

Re: python error open3d

Verfasst: Freitag 12. August 2022, 22:55
von sparrow
Ein Blick zu PyPI zeigt, dass das Paket mit den Python Versionen 3.6, 3.7, 3.8 und 3.9 funktioniert.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 05:58
von Sirius3
@sparrow: entscheidend hier ist, welche vorkompilierten Pakete es gibt, und da wird nur Linux bereitgestellt.
Für Anaconda scheint es aber auch ein Windowspaket zu geben.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 07:42
von sparrow
@Sirius3: Das mag für "open3d-python" zutreffen - aber auf das ist der TE ja sowieso nur ausgewichen, weil er "open3d" mit pip nicht installieren konnte. Und "open3d" ist das offizielle Paket. Wenn er Python 3.9 verwendet ist die Verwendung (auch unter Linux) völlig problemlos möglich.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 07:45
von Sirius3
@sparrow: der TE verwendet aber Windows.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 08:48
von sparrow
@Sirius: Ja, sorry, ich war in Gedanken. Es funktioniert auch unter Windows problemlos.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:02
von Sirius3
@sparrow: Wenn das so problemlos funktioniert, warum bekommt dann der TE die Neldung "No matching distribution found for open3d"!

@frenik: Wenn Du auf Anaconda umsteigen sollte es tatsächlich problemlos installiert werden können.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:06
von sparrow
@Sirius3: weil er Python 3.10 verwendet und die Pakete nur für Python 3.6 - 3.9 verfügbar sind. Das schrieb ich schon weiter oben.

Nochmal, weil ich weiß, dass das funktioniert weil ich es ausprobiert habe: wie auf der Seite des open3d Projektes beschrieben, lässt sich das Paket "open3d' problemlos unter Windows, Linux und MacOS installieren und anschließend importieren, wenn man Python 3.6 - 3.9 verwendet. Nur pip muss auf dem neuesten Stand sein. Auch das steht auf den Projektseiten.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:10
von frenik
Ein Blick zu PyPI zeigt, dass das Paket mit den Python Versionen 3.6, 3.7, 3.8 und 3.9 funktioniert.
Da dürfte aber kein problem mit dem pip installer auftreten, oder irre ich mich da?
Grüße Frenik

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:13
von __blackjack__
@frenik: Nein, da irrst Du nicht. Nur *noch* mal: Python 3.6 bis 3.9. *Nicht* Python 3.10.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:27
von frenik
Soll ich eine virtuel environment mit Anaconda aufsetzen und e dort probieren, oder würde das nichts bringen?
Grüße Frenik

Re: python error open3d

Verfasst: Samstag 13. August 2022, 09:46
von sparrow
Weißt du was Anaconda ist? Brauchst du Anaconda?

Ansonsten: Nein. Installier Python 3.9. Erstell damit ein virtuelles Environment, update pip und installiere open3d.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 12:58
von frenik
Kann ich python 3.9 parallel zu python 3.10.6 laufen haben?
Grüße Frenik

Re: python error open3d

Verfasst: Samstag 13. August 2022, 13:07
von sparrow
Du kannst beide Versionen parallel installieren.

Re: python error open3d

Verfasst: Samstag 13. August 2022, 13:09
von frenik
Danke werd ich Versuchen.
Ich melde mich, wenn es noch Probleme geben sollte.
Grüße Frenik