Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickview issue after cosma update #38

Open
FHusko opened this issue Jul 21, 2024 · 0 comments
Open

Quickview issue after cosma update #38

FHusko opened this issue Jul 21, 2024 · 0 comments

Comments

@FHusko
Copy link

FHusko commented Jul 21, 2024

Hello,

I was able to install py-sphviewer after the cosma update by manually cloning it an running setup.py (although I had to compile with an older version of intel). However, I get the following error when trying to use quickview:

qv_gas = QuickView(
    175     gas_pos,
    176     hsml=hsml,
    177     mass=gas_masses,
    178     plot=False,
    179     r="infinity",
    180     p=0,
    181     t=0,
    182     xsize=1500,
    183     ysize=1500,
    184     extent=[-r_size,r_size,-r_size,r_size],
    185     x=0,
    186     y=0,
    187     z=0,
    188 )
    189 img_gas = qv_gas.get_image()
    190 ext_gas = qv_gas.get_extent()

File [/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/tools/QuickView.py:86](https://localhost:8443/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/tools/QuickView.py#line=85), in QuickView.__init__(self, pos, mass, hsml, nb, logscale, plot, min_hsml, max_hsml, **kwargs)
     82     print('Limiting smoothing length to the range '
     83           '[%.3f,%.3f]' % (min_hsml, max_hsml))
     84     self._P.set_hsml(hsml)
---> 86 self._S = sph.Scene(self._P)
     87 self._S.update_camera(**kwargs)
     89 self._R = sph.Render(self._S)

File [/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/Scene.py:114](https://localhost:8443/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/Scene.py#line=113), in Scene.__init__(self, Particles, Camera)
    111         self.Camera.set_autocamera(Particles)
    112         self._camera_params = self.Camera.get_params()
--> 114 self._x, self._y, self._hsml, self._kview = self.__compute_scene()
    115 self._m = self._Particles._mass[self._kview]

File [/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/Scene.py:160](https://localhost:8443/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/Scene.py#line=159), in Scene.__compute_scene(self)
    159 def __compute_scene(self):
--> 160     from .extensions import scene
    162     pos = self._Particles._pos
    163     hsml = self._Particles._hsml

ImportError: [/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/extensions/scene.cpython-312-x86_64-linux-gnu.so](https://localhost:8443/cosma/apps/durham/dc-husk1/venvs/jupytervenv/lib/python3.12/site-packages/py_sphviewer-1.2.4-py3.12-linux-x86_64.egg/sphviewer/extensions/scene.cpython-312-x86_64-linux-gnu.so): undefined symbol: __kmpc_for_static_init_4

Any help would be appreciated! Thanks!

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

No branches or pull requests

1 participant