[kivy-users] How can install a package that uses PEP 517

44 views
Skip to first unread message

Jacob Mugala

unread,
Sep 25, 2020, 6:26:17 PM9/25/20
to kivy-...@googlegroups.com
Hello,
I am trying to install pikePDF and I am getting some errors saying:

Error: Failed building wheel for pikepdf
Failed building pikepdf
Error: Could not build wheels for pikepdf which use PEP 517 and cannot be installed directly.

I tried it again, this time with --no-binary:
        pip install --no-binary pikepdf

And again, it failed with even more errors. How do I go about this to be successful at it?


planckp...@gmail.com

unread,
Sep 25, 2020, 11:39:21 PM9/25/20
to Kivy users support
Why is this a Kivy question? 
And I assume you mean pip3?

Jacob Mugala

unread,
Sep 26, 2020, 12:45:09 AM9/26/20
to kivy-...@googlegroups.com
Just wanted a one-line tip or references to where I can find information.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/4cc2f002-6f8c-4547-a772-8c7aa7299813n%40googlegroups.com.

planckp...@gmail.com

unread,
Sep 26, 2020, 1:49:24 AM9/26/20
to Kivy users support
For me it installs with no issue on Ubuntu and Windows....

ZenCODE

unread,
Sep 26, 2020, 8:08:49 AM9/26/20
to Kivy users support
Perhaps supply the exact operating system, python version, the exact command you are using to install. Please also include the complete error log - copy and pasted from the terminal.

Thanks

Jacob Mugala

unread,
Sep 26, 2020, 9:20:28 AM9/26/20
to kivy-...@googlegroups.com
I am using python version 3.8.3, pip version 20.2.3, on android version 7 OS with pydroid3 IDE.

Using the pip app feature:
The log was not selectable, so I attached...but it's just the full version of the excerpt I had sent earlier.

And below are my terminal session.

Session 1:
/storage/emulated/0 $ pip install --no-binary :all: pikepdf
Collecting pikepdf
  Using cached pikepdf-1.19.3.tar.gz (2.4 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.8 /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /data/data/ru.iiec.pydroid3/cache/pip-build-env-ifkquqpp/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 30.3.0' wheel setuptools_scm setuptools_scm_git_archive 'pybind11 >= 2.3.0, < 3'
       cwd: None
  Complete output (14 lines):
  Traceback (most recent call last):
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/runpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip/__main__.py", line 23, in <module>
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 5, in <module>
      import locale
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/locale.py", line 16, in <module>
      import re
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/re.py", line 145, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.8 /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /data/data/ru.iiec.pydroid3/cache/pip-build-env-ifkquqpp/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 30.3.0' wheel setuptools_scm setuptools_scm_git_archive 'pybind11 >= 2.3.0, < 3' Check the logs for full command output.
/storage/emulated/0 $

Session 2 (with no --no-binary):
/storage/emulated/0 $ pip install pikepdf
Collecting pikepdf
  Using cached pikepdf-1.19.3.tar.gz (2.4 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.8 /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /data/data/ru.iiec.pydroid3/cache/pip-build-env-gnbrmxk0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 30.3.0' wheel setuptools_scm setuptools_scm_git_archive 'pybind11 >= 2.3.0, < 3'
       cwd: None
  Complete output (14 lines):
  Traceback (most recent call last):
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/runpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip/__main__.py", line 23, in <module>
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 5, in <module>
      import locale
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/locale.py", line 16, in <module>
      import re
    File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/re.py", line 145, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/bin/python3.8 /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /data/data/ru.iiec.pydroid3/cache/pip-build-env-gnbrmxk0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 30.3.0' wheel setuptools_scm setuptools_scm_git_archive 'pybind11 >= 2.3.0, < 3' Check the logs for full command output.
/storage/emulated/0 $



Thanks.


Screenshot_20200926-151237.png

ZenCODE

unread,
Sep 26, 2020, 3:48:44 PM9/26/20
to Kivy users support
PikePDF would need a recipe. It's not a pure python package, and depends upon QPDF libraries, so you would need to create a recipe for it to deploy on android....


To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.

Jacob Mugala

unread,
Sep 26, 2020, 11:13:09 PM9/26/20
to kivy-...@googlegroups.com
Thanks I am going to try that...

Reply all
Reply to author
Forward
0 new messages