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

SciPy for Python 3.11 or later #1237

Open
mhsmith opened this issue Aug 27, 2024 · 9 comments
Open

SciPy for Python 3.11 or later #1237

mhsmith opened this issue Aug 27, 2024 · 9 comments

Comments

@mhsmith
Copy link
Member

mhsmith commented Aug 27, 2024

We currently only support SciPy for Python 3.8, 3.9 and 3.10. For the available versions, see the repository, and to set the Python version of your app, see these instructions.

@rbebb
Copy link
Contributor

rbebb commented Oct 22, 2024

It would be great to have the latest version of scipy for each Python version!

@Aashishkebab
Copy link

Is this still the case?

@mhsmith
Copy link
Member Author

mhsmith commented Dec 11, 2024

Yes, and it will probably continue to be for at least the next 6 months.

@Aashishkebab
Copy link

Yes, and it will probably continue to be for at least the next 6 months.

So if I download the wheel file directly from the link you put (1.8.1 arm64), I always get:

scipy-1.8.1.whl is not a valid wheel filename.

This is true whether I just use the filename or use the absolute path on my drive, whether I use forward slashes or back slashes, etc.
If I use scipy==1.8.1 to try to get it that way, it claims to require at least 3.12.

Am I doing something wrong? I am able to get numpy working without any issues.

@Aashishkebab
Copy link

Aashishkebab commented Dec 11, 2024

Yes, and it will probably continue to be for at least the next 6 months.

So if I download the wheel file directly from the link you put (1.8.1 arm64), I always get:

scipy-1.8.1.whl is not a valid wheel filename.

This is true whether I just use the filename or use the absolute path on my drive, whether I use forward slashes or back slashes, etc. If I use scipy==1.8.1 to try to get it that way, it claims to require at least 3.12.

Am I doing something wrong? I am able to get numpy working without any issues.

I figured out that I am not supposed to rename the file lol.

But now it goes back to:

Package 'scipy' requires a different Python: 3.12.4 not in '>=3.8,<3.11'

And this is using the version in your repository.

@mhsmith
Copy link
Member Author

mhsmith commented Dec 11, 2024

Follow the instructions at the top of this page to set your app's Python version to 3.10 or older.

Because of #1295, it may also be necessary to install a corresponding Python version on your build machine, and configure Chaquopy to use it.

@Aashishkebab
Copy link

Follow the instructions at the top of this page to set your app's Python version to 3.10 or older.

Because of #1295, it may also be necessary to install a corresponding Python version on your build machine, and configure Chaquopy to use it.

I am using Python 3.10 in build.gradle. The official Python website no longer has the installer for 3.10, but it doesn't seem to be necessary as it builds successfully and even runs the Python code (if I remove the pip installs).

As I found out, I have to use SciPy 1.4.1. Any of the newer ones in the repository don't work. It still doesn't install, but this time it just gives a generic error "failed to install".

Now, however, I am struggling with numpy using the older version of Python, and this is regardless of the wheel file version I use from the Chaquopy repository.
image

I know this is unrelated so I can file a separate issue if you'd like.

@mhsmith
Copy link
Member Author

mhsmith commented Dec 12, 2024

The official Python website no longer has the installer for 3.10

It still has installers for 3.10.11 and older. This will probably fix your current problem.

As I found out, I have to use SciPy 1.4.1

No, we don't have SciPy 1.4.1 for Python 3.10, only 3.8 and 3.9.

this time it just gives a generic error "failed to install".

Unfortunately Android Studio doesn't make this obvious, but you can view the full build log by clicking the “Build ... failed” caption at the top of your screenshot. It should look like the "Monitor the build process" image on this page.

Please include the full log in any future questions, using copy and paste, not a screenshot.

@tejasmankar
Copy link

tejasmankar commented Jan 5, 2025

[Moved to #1322]

@mhsmith mhsmith mentioned this issue Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants