Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

build.sh cannot install Cython #6

Closed
marcelmindemann opened this issue Apr 22, 2018 · 3 comments
Closed

build.sh cannot install Cython #6

marcelmindemann opened this issue Apr 22, 2018 · 3 comments

Comments

@marcelmindemann
Copy link

marcelmindemann commented Apr 22, 2018

Using OnePlus 3 with sultanxda Lineage 14.1.

  Running setup.py bdist_wheel for Cython ... error
  Complete output from command /data/data/com.termux/files/home/borgbackup_on_android/borg-env/bin/python3 -u -c "import setuptools, tokenize;__file__='/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /data/data/com.termux/files/usr/tmp/pip-wheel-9_ay5rg0 --python-tag cp36:
  Unable to find pgen, not compiling formal grammar.
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  copying cython.py -> build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/Cython
  copying Cython/Shadow.py -> build/lib.linux-aarch64-3.6/Cython
  copying Cython/Coverage.py -> build/lib.linux-aarch64-3.6/Cython
  copying Cython/__init__.py -> build/lib.linux-aarch64-3.6/Cython
  building 'Cython.Plex.Scanners' extension
  creating build/temp.linux-aarch64-3.6
  creating build/temp.linux-aarch64-3.6/data
  creating build/temp.linux-aarch64-3.6/data/data
  creating build/temp.linux-aarch64-3.6/data/data/com.termux
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/Cython
  creating build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/Cython/Plex
  aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Oz -Oz -fPIC -I/data/data/com.termux/files/usr/include/python3.6m -c /data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/Cython/Plex/Scanners.c -o build/temp.linux-aarch64-3.6/data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/Cython/Plex/Scanners.o
  In file included from /data/data/com.termux/files/usr/tmp/pip-install-g58qt4vz/Cython/Cython/Plex/Scanners.c:19:
/data/data/com.termux/files/usr/include/python3.6m/Python.h:39:10: fatal error: 'crypt.h' file not found
  #include <crypt.h>
           ^~~~~~~~~
  1 error generated.
  error: command 'aarch64-linux-android-clang' failed with exit status 1

  ----------------------------------------
  Failed building wheel for Cython
  Running setup.py clean for Cython
  Running setup.py bdist_wheel for coverage ... done
  Stored in directory: /data/data/com.termux/files/home/.cache/pip/wheels/24/76/26/c60de6a591b00f71dcf87941eb41b8f29820857eade91fe66f
  Running setup.py bdist_wheel for py-cpuinfo ... done
  Stored in directory: /data/data/com.termux/files/home/.cache/pip/wheels/bd/e6/74/5f9ff2150a62868acf69169db535d99949f838ac2f8e0b5d4b
Successfully built coverage py-cpuinfo
Failed to build Cython
@marcelmindemann marcelmindemann changed the title build build.sh cannot install Cython Apr 22, 2018
@real-or-random
Copy link

Same here, you need to pkg install libcrypt-dev, see termux/termux-app#659.

real-or-random added a commit to real-or-random/borgbackup_on_android that referenced this issue Jul 11, 2018
@medram
Copy link

medram commented Oct 29, 2019

this command pkg install libcrypt-dev is not working, any other alternatives ?

@medram
Copy link

medram commented Oct 29, 2019

hey there,
I solved this problem using
pkg install clang
pkg install libxml2 libxslt
pip install cython
pip install lxml
have a good day :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants