Replies: 2 comments
-
Run |
Beta Was this translation helpful? Give feedback.
-
Hi there, after some digging, I managed to install tgcf on Termux v0.118.0 downloaded from the GitHub. There are two ways you can install tgcf on a clean install of Termux. The first one uses proot-distro that simulates the Linux environment. Make sure to enter those commands line by line according to your chosen method. 1. Installing on Termux using proot-distro:
2. Installing locally on Termux:
Comparing the first and the second method: proot-distro
Local Termux
That being said, you can choose any way you prefer. @aahnik I hope this quide can be placed inside the wiki, if it helps 😄. |
Beta Was this translation helpful? Give feedback.
-
I tried to install tgcf on my Android phone using Termux, but it's not successful.
I followed the instruction from here, and every command before
pip install --upgrade tgcf
has no problem.My phone is Samsung S6 Edge, running Android 5.1.1.
Termux version is: termux-app_v0.118.0+d7bab73-apt-android-5-github-debug_universal
Here is the error message:
`
$ pip install --upgrade tgcf
Collecting tgcf
Using cached tgcf-0.2.11.post0-py3-none-any.whl (21 kB)
Collecting Pillow<9.0.0,>=8.1.2 (from tgcf)
Using cached Pillow-8.4.0.tar.gz (49.4 MB)
Preparing metadata (setup.py) ... done
Collecting PyYAML<6.0.0,>=5.4.1 (from tgcf)
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 271, in
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 314, in run
self.find_sources()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 322, in find_sources
mm.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/command/sdist.py", line 104, in add_defaults
super().add_defaults()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext
self.filelist.extend(build_ext.get_source_files())
File "", line 201, in get_source_files
File "/data/data/com.termux/files/usr/tmp/pip-build-env-kbgw3jmz/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Beta Was this translation helpful? Give feedback.
All reactions