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

Cannot import Voronoi from scipy.spatial #624

Closed
jeertmans opened this issue Aug 28, 2023 · 6 comments
Closed

Cannot import Voronoi from scipy.spatial #624

jeertmans opened this issue Aug 28, 2023 · 6 comments

Comments

@jeertmans
Copy link

Hello,

I'm trying to import Voronoi from scipy.spatial but it does not work, see the error message.

image

My environment.yml:

name: xeus-python-kernel  
channels:  
- https://repo.mamba.pm/emscripten-forge  
- https://repo.mamba.pm/conda-forge  
dependencies:  
- ipympl  
- matplotlib>=3,<4  
- numpy>=1.24,<1.25  
- scipy==1.8.1

and SciPy is correctly installed from your channel:

scipy              emscripten-forge/emscripten-32::scipy-1.8.1-py310h74ff0a5_4

I have tried clearing the cache, but this does not solve the issue.

I took a quick look at https://github.com/emscripten-forge/recipes/tree/main/recipes/recipes_emscripten/scipy, and it does not seem that Voronoi was removed from SciPy.

Locally, when scipy==1.8.1 on Python 3.10, I can import it with success:

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.spatial import Voronoi
>>> import scipy;scipy.__version__
'1.8.1'

NOTE: I am using JupyterLite, and the corresponding repository can be found here.

@michaelweinold
Copy link
Contributor

Likely related to #619

@jeertmans
Copy link
Author

Any idea how to solve this? @michaelweinold

#619 does not seem to point to a solution

@michaelweinold
Copy link
Contributor

As per @martinRenou‘s comment, the only way to resolve the issue would be a version upgrade of matplotlib and scipy. Unfortunately, both pull requests (linked in the discussion of #619) have test failures at the moment.

@jeertmans
Copy link
Author

Thanks!

@DerThorsten
Copy link
Contributor

should be fixed with #643

@jeertmans
Copy link
Author

Thanks @DerThorsten ! Will try this out when I have some time :-)

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

3 participants