Skip to content

Add recipe pyreqwest_impersonate #3012

@krolaper

Description

@krolaper

Versions

  • Python: 3.10
  • OS: Linux mint
  • Kivy: 2.2.1
  • Cython: 0.29.33
  • OpenJDK: 17

Description

I made the recipe according to the example:

from pythonforandroid.recipe import RustCompiledComponentsRecipe


class Pyreqwest_impersonateRecipe(RustCompiledComponentsRecipe):
    version = "v0.4.1"
    url = "https://github.com/deedy5/pyreqwest_impersonate/archive/refs/tags/{version}.tar.gz"
    use_maturin = True
    hostpython_prerequisites = ["typing_extensions"]
    site_packages_name = "pyreqwest_impersonate"


recipe = Pyreqwest_impersonateRecipe()

buildozer.spec

# (str) The directory in which python-for-android should look for your own build recipes (if any)
p4a.local_recipes = /home/odinson/PycharmProjects/OSINT/src/python-for-android/recipes/

Logs

File "/home/odinson/PycharmProjects/OSINT/src/python-for-android/recipes/pyreqwest_impersonate/__init__.py", line 1, in <module>
    from pythonforandroid.recipe import RustCompiledComponentsRecipe
ImportError: cannot import name 'RustCompiledComponentsRecipe' from 'pythonforandroid.recipe' (/home/odinson/PycharmProjects/OSINT/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py)

buildozer clean I did too. I did everything as required according to the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions