Open GlennWSo opened 1 year ago
more probing of the oxidized python shell gives:
>>> import pkg_resources
>>> for pack in pkg_resources.working_set:
... print(pack)
...
tbb 2021.7.0
mkl 2021.4.0
intel-openmp 2021.4.0
attrs 22.1.0
packaging 21.3
vtk 9.2.2
Pillow 9.2.0
ngsolve 6.2.2204
netgen-mesher 6.2.2203.post46.dev0
multidict 6.0.2
fonttools 4.37.4
async-timeout 4.0.2
aiohttp 3.8.3
matplotlib 3.6.1
idna 3.4
pyparsing 3.0.9
imageio 2.22.2
python-dateutil 2.8.2
charset-normalizer 2.1.1
numpy 1.23.4
six 1.16.0
wslink 1.8.4
yarl 1.8.1
appdirs 1.4.4
kiwisolver 1.4.4
frozenlist 1.3.1
aiosignal 1.2.0
contourpy 1.0.5
pyvista 0.36.1
cycler 0.11.0
scooby 0.6.0
ngsolve is in this list, so why cant i import it?
update. I found why ngsolve could not be imported. it was not placed in origin/lib but instead in: origin/lib/lib/python3.9/site-packages/lib/ngsolve and some .so files it uses where placed in origin/lib/lib
I dont understand why i get such messy lib tree But i solved my problem by making the fallowing changes: patch
Im trying to create app that depends on ngsolve. My targets are both windows and linux.
To test my that i get the depenencies working i have made a simple pyoxidzer.bzl config. Here a link: https://github.com/GlennWSo/pyoxidzer-learn/blob/ngsolve/pyoxidizer.bzl Bellow here is a snippet from the file:
What i expect when i enter "pyoxidzer run" is a python shell where i can import ngsolve and pyvista. but what happens:
Any help would be much appreciated!