-
Notifications
You must be signed in to change notification settings - Fork 140
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
pyreadstat: No module named 'Cython' #599
Comments
Chaquopy runs pip in an isolated environment, so no Python packages you install on the build machine will make any difference. In this case, the problem is the package pyreadstat, which we haven't yet built for Android. However, it doesn't look as if your code is actually using that package, so maybe you can just remove pyreadstat and Cython from your build.gradle file. We fully support all the other packages you've listed there. If anyone else wants pyreadstat too, please click the thumbs-up button above. |
Thanks for your reply. "it doesn't look as if your code is actually using that package, so maybe you can just remove pyreadstat and Cython from your build.gradle file." After modifying the build file, it was built normally, but an error occurs in the log.
Thanks for your help |
OK, it looks like you do need pyreadstat after all. This isn't a very popular package, so we probably won't provide it in the near future. But if you'd like to try building it yourself, you could license our package build tool. For details, see #175 (comment). |
OK. Thank you so much for providing this feature. I can't speak English but you sincerely helped me. |
It's been over a year and only one person has requested this package, so we won't be building it in the foreseeable future. However, the package build tool is now open-source, so if you'd like to try building this package yourself, follow the instructions here. And if you're successful, please make a pull request so we can add it to the public repository. If anyone else wants this package, please click the thumbs-up button above and post a comment, and I'll reopen the issue. |
#### Java Code
final Python py = Python.getInstance();
pyObject = py.getModule("test222");
#### Python Code
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df_raw = pd.read_spss('/storage/emulated/0/test/data.sav')
print(df_raw.info())
#### pip list
cycler 0.11.0
Cython 0.29.28
fonttools 4.31.2
kiwisolver 1.4.2
matplotlib 3.5.1
numpy 1.22.3
packaging 21.3
pandas 1.4.2
Pillow 9.1.0
pip 22.0.4
pyparsing 3.0.7
pyreadstat 1.1.4
python-dateutil 2.8.2
pytz 2022.1
scipy 1.8.0
setuptools 58.1.0
six 1.16.0
wheel 0.37.1
#### Chaquopy version
< Window Python >
Python 3.10.4
< Android studio >
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath "com.chaquo.python:gradle:11.0.0"
}
#### Relevant parts of your build.gradle file
When I write the above, the following error occurs.
#### Describe your issue
I used "py.read_spss" in python to read the sav file. But an error occurred.
Do you have any solution?
i try input command
Thanks for your help
The text was updated successfully, but these errors were encountered: