Ich habe ein Namespace -Paket namens FOO, das mehrere Verteilungspakete enthält: < /p>
foo.bar_one, foo.bar_two und foo.bar_three werden als
Verteilungspakete über eine private GitLab -Repository installiert. Site-Packages, die
im Pythonpath enthalten sind. Foo.bar_z, als ob alle Pakete im gleichen Namespace wären. < /li>
Es gibt Abhängigkeiten zwischen einigen dieser Pakete. /> Das Problem: < /strong>
Dieses Setup funktioniert wie erwartet unter Windows mit Python 3.x (ich kann sowohl foo.bar_one und foo.bar_z importieren), aber auf Linux begegnen ich namespace-bezogene Importausgaben: />foo.bar_one, aber foo.bar_z scheitert und erklärt, dass bar_z im foo -Namespace nicht existiert. Namespace. /> Linux? < /Li>
Wenn dieses Setup von Natur aus fehlerhaft ist, was wäre ein besserer Ansatz
, um das gleiche Ziel zu erreichen, während die Kompatibilität beibehält?
Namespace -Paket -Importierensproblem unter Linux, jedoch nicht in Windows ⇐ Python
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Namespace -Paket -Importierensproblem unter Linux, jedoch nicht in Windows
by Anonymous » » in Python - 0 Replies
- 2 Views
-
Last post by Anonymous
-
-
-
Namespace -Paket -Importierensproblem unter Linux, jedoch nicht in Windows
by Anonymous » » in Python - 0 Replies
- 1 Views
-
Last post by Anonymous
-