-
Notifications
You must be signed in to change notification settings - Fork 132
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
AttributeError: 'HTMLParser' object has no attribute 'unescape' #416
Comments
et_xmlfile works fine for me. Please post the full build log (click the 'Build: failed' caption to the left of the message). Also, which version of Chaquopy are you using ( |
"com.chaquo.python:gradle:9.0.0" this is the version im using and i also checked the min sdk version 16 ,python version 3.9, gradle version 4.1.1
|
The build log please, not the runtime error. To display the full log, click the "Build: failed" caption to the left of "Failed to install et_xmlfile ...". |
|
Thanks, it looks like we have a compatibility problem with Python 3.9. We'll fix this in the next version of Chaquopy. Meanwhile, please install Python 3.8.7 from here. If you install it with the default settings, you should just be able to remove the |
so i have remove this code from buld file and Thanks for the help . It was really annoying to not solve the bug really great thanks for the help |
You don't need to remove the |
This code |
Yes, if you install Python 3.8 with the default settings then you can just remove that line. Or if that doesn't work, try editing the line to point at the Python 3.8 executable. |
OK I'll try this method |
|
Even if it's running on the emulator, an Android app still has no access to files on your development machine. They're effectively two separate devices. However, any data file in your Python source directory will be copied into your APK and extracted onto the Android device. You can then access it using a path relative to Please create separate issues for separate problems. |
sorry for that !! do this code will work for excel file also with .xlsx format and I have to use pandas library for further code do this code with take dataframe objects too |
The code for finding a file will work with any file. What you do with the file once you've found it is up to you. By the way, could you please not copy my avatar, it makes the conversation look confusing. |
ok sorry I just find it look good ! n thanks for the code n solving my queries . can I have the Twitter handle of yours I really like to see a developer to be connected |
Let's leave the issue open until the problem is fixed, because it looks like it breaks all installation of sdists with Python 3.9. |
Thanks for the help. Your are damn great . i was stuck with this for days and great technology to integrate android with python. |
This issue is fixed in Chaquopy 9.1.0. To upgrade, edit your app's top-level build.gradle file and change the version number of If for some reason you don't want to upgrade Chaquopy, you can work around the problem by using Python 3.8 as discussed above. |
Failed to install et_xmlfile from https://files.pythonhosted.org/packages/22/28/a99c42aea746e18382ad9fb36f64c1c1f04216f41797f2f0fa567da11388/et_xmlfile-1.0.1.tar.gz.
this error pops up when i run my android file though its perfectly run on python file but when i call it from android its show up this error
This is my build,gradle(app) file
`plugins {
id 'com.android.application'
id 'com.chaquo.python'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
}
dependencies {
}`
The text was updated successfully, but these errors were encountered: