You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using briefca, specifically beeware to build an android app. When i use command to build app for android, it is throwing me this error.
Setting main module... done
[nmtbhashini] Building Android APK...
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
Warning: Python version 3.11 may have fewer packages available. If you experience problems, try switching to version 3.8.
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:extractDebugPythonBuildPackages UP-TO-DATE
> Task :app:generateDebugPythonRequirements
Chaquopy: Installing for arm64-v8a
Looking in indexes: https://pypi.org/simple, https://chaquo.com/pypi-13.1
Collecting numpy
Using cached https://chaquo.com/pypi-13.1/numpy/numpy-1.26.2-0-cp311-cp311-android_21_arm64_v8a.whl (5.0 MB)
Collecting regex
Using cached https://chaquo.com/pypi-13.1/regex/regex-2023.10.3-0-cp311-cp311-android_21_arm64_v8a.whl (284 kB)
Collecting sentencepiece
Using cached sentencepiece-0.2.0.tar.gz (2.6 MB)
Collecting indic-nlp-library
Using cached indic_nlp_library-0.92-py3-none-any.whl (40 kB)
Processing /Users/gireeshachowdhary/Library/Caches/chaquopy/pip/wheels/34/cc/6e/444b747bf2adc6a0530acd6a7afda9f908b219906cfd4df2e7/mosestokenizer-1.2.1-py3-none-any.whl
Collecting nltk
Using cached nltk-3.9.1-py3-none-any.whl (1.5 MB)
Collecting sacremoses
Using cached sacremoses-0.1.1-py3-none-any.whl (897 kB)
Processing /Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/src/nmtbhashini/resources/ctranslate2_lib-4.1.0-0-py3-none-android_21_arm64_v8a.whl
Processing /Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/src/nmtbhashini/resources/ctranslate2_python-4.1.0-0-py3-none-android_21_arm64_v8a.whl
Collecting toga-android~=0.4.5
Using cached toga_android-0.4.7-py3-none-any.whl (67 kB)
Collecting chaquopy-libcxx>=11000
Using cached https://chaquo.com/pypi-13.1/chaquopy-libcxx/chaquopy_libcxx-11000-0-py3-none-android_21_arm64_v8a.whl (308 kB)
Collecting chaquopy-openblas>=0.2.20
Using cached https://chaquo.com/pypi-13.1/chaquopy-openblas/chaquopy_openblas-0.2.20-5-py3-none-android_21_arm64_v8a.whl (4.3 MB)
Collecting sphinx-argparse
Using cached sphinx_argparse-0.5.2-py3-none-any.whl (12 kB)
Collecting pandas
Using cached https://chaquo.com/pypi-13.1/pandas/pandas-1.5.0-1-cp311-cp311-android_21_arm64_v8a.whl (10.1 MB)
Collecting morfessor
Using cached Morfessor-2.0.6-py3-none-any.whl (35 kB)
Collecting sphinx-rtd-theme
Downloading sphinx_rtd_theme-3.0.1-py2.py3-none-any.whl (7.7 MB)
Processing /Users/gireeshachowdhary/Library/Caches/chaquopy/pip/wheels/ad/d6/21/763477f07e94a9d2567147f91d34897dfd1eb1062350302969/uctools-1.3.0-py3-none-any.whl
Processing /Users/gireeshachowdhary/Library/Caches/chaquopy/pip/wheels/28/b0/06/bccd361b5b8bbf1ec88b72164fa52daaaa2221865fb980dff1/toolwrapper-2.1.0-py3-none-any.whl
Processing /Users/gireeshachowdhary/Library/Caches/chaquopy/pip/wheels/1a/b0/8c/4b75c4116c31f83c8f9f047231251e13cc74481cca4a78a9ce/docopt-0.6.2-py2.py3-none-any.whl
Collecting openfile
Using cached openfile-0.0.7-py3-none-any.whl (2.4 kB)
Collecting joblib
Using cached joblib-1.4.2-py3-none-any.whl (301 kB)
Collecting tqdm
Using cached tqdm-4.66.5-py3-none-any.whl (78 kB)
Collecting click
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting toga-core==0.4.7
Using cached toga_core-0.4.7-py3-none-any.whl (139 kB)
Collecting chaquopy-libgfortran>=4.9
Using cached https://chaquo.com/pypi-13.1/chaquopy-libgfortran/chaquopy_libgfortran-4.9-0-py3-none-android_21_arm64_v8a.whl (495 kB)
Collecting docutils>=0.19
Using cached docutils-0.21.2-py3-none-any.whl (587 kB)
Collecting sphinx>=5.1.0
Downloading sphinx-8.1.0-py3-none-any.whl (3.5 MB)
Collecting pytz>=2020.1
Using cached pytz-2024.2-py2.py3-none-any.whl (508 kB)
Collecting python-dateutil>=2.8.1
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting sphinxcontrib-jquery<5,>=4
Using cached sphinxcontrib_jquery-4.1-py2.py3-none-any.whl (121 kB)
Collecting travertino>=0.3.0
Using cached travertino-0.3.0-py3-none-any.whl (16 kB)
Collecting sphinxcontrib-htmlhelp>=2.0.6
Using cached sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl (98 kB)
Collecting Jinja2>=3.1
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Collecting Pygments>=2.17
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Collecting imagesize>=1.3
Using cached imagesize-1.4.1-py2.py3-none-any.whl (8.8 kB)
Collecting sphinxcontrib-jsmath>=1.0.1
Using cached sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl (5.1 kB)
Collecting alabaster>=0.7.14
Using cached alabaster-1.0.0-py3-none-any.whl (13 kB)
Collecting requests>=2.30.0
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting sphinxcontrib-qthelp>=1.0.6
Using cached sphinxcontrib_qthelp-2.0.0-py3-none-any.whl (88 kB)
Collecting snowballstemmer>=2.2
Using cached snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
Collecting sphinxcontrib-applehelp>=1.0.7
Using cached sphinxcontrib_applehelp-2.0.0-py3-none-any.whl (119 kB)
Collecting sphinxcontrib-devhelp>=1.0.6
Using cached sphinxcontrib_devhelp-2.0.0-py3-none-any.whl (82 kB)
Collecting sphinxcontrib-serializinghtml>=1.1.9
Using cached sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl (92 kB)
Collecting babel>=2.13
Using cached babel-2.16.0-py3-none-any.whl (9.6 MB)
Collecting packaging>=23.0
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting MarkupSafe>=2.0
Downloading markupsafe-3.0.1.tar.gz (20 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting certifi>=2017.4.17
Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting urllib3<3,>=1.21.1
Using cached urllib3-2.2.3-py3-none-any.whl (126 kB)
Collecting idna<4,>=2.5
Using cached idna-3.10-py3-none-any.whl (70 kB)
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.4.0-py3-none-any.whl (49 kB)
Building wheels for collected packages: sentencepiece, MarkupSafe
Building wheel for sentencepiece (setup.py): started
Building wheel for sentencepiece (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-install-_8vz4ym6/sentencepiece/setup.py'"'"'; __file__='"'"'/private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-install-_8vz4ym6/sentencepiece/setup.py'"'"';import chaquopy_monkey; chaquopy_monkey.disable_native();f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-wheel-3ydfyrpi
cwd: /private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-install-_8vz4ym6/sentencepiece/
Complete output (85 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/sentencepiece
copying src/sentencepiece/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/sentencepiece
copying src/sentencepiece/_version.py -> build/lib.macosx-10.9-universal2-cpython-311/sentencepiece
copying src/sentencepiece/sentencepiece_model_pb2.py -> build/lib.macosx-10.9-universal2-cpython-311/sentencepiece
copying src/sentencepiece/sentencepiece_pb2.py -> build/lib.macosx-10.9-universal2-cpython-311/sentencepiece
running build_ext
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sentencepiece' found
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- VERSION: 0.2.0
CMake Error at /opt/homebrew/Cellar/cmake/3.30.4/share/cmake/Modules/CMakeDetermineCCompiler.cmake:49 (message):
Could not find compiler set in environment variable CC:
Chaquopy_cannot_compile_native_code.
Call Stack (most recent call first):
CMakeLists.txt:23 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
./build_bundled.sh: line 22: nproc: command not found
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-install-_8vz4ym6/sentencepiece/setup.py", line 169, in <module>
setup(
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/vg/68_c7bhx0c79x9t4k94_6hvm0000gn/T/pip-install-_8vz4ym6/sentencepiece/setup.py", line 87, in build_extension
subprocess.check_call(['./build_bundled.sh', __version__])
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./build_bundled.sh', '0.2.0']' returned non-zero exit status 2.
----------------------------------------
ERROR: Failed to install sentencepiece from https://files.pythonhosted.org/packages/c9/d2/b9c7ca067c26d8ff085d252c89b5f69609ca93fb85a00ede95f4857865d4/sentencepiece-0.2.0.tar.gz#sha256=a52c19171daaf2e697dc6cbe67684e0fa341b1248966f6aebb541de654d15843 (from -r requirements.txt (line 4)).
For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues.
Chaquopy: Exit status 1
> Task :app:generateDebugPythonRequirements FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:generateDebugPythonRequirements'.
> Process 'command '/Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/build/nmtbhashini/android/gradle/app/build/python/env/debug/bin/python'' finished with non-zero exit value 1
To view full details in Android Studio:
* Click the 'Build: failed' caption to the left of this message.
* Then scroll up to see the full output.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 38s
2 actionable tasks: 1 executed, 1 up-to-date
Building... errored
Error while building project.
Log saved to /Users/gireeshachowdhary/Desktop/C4GT-Bhashini/NMT/beeware_app/nmtbhashini/logs/briefcase.2024_10_11-01_49_40.build.log
I have also provided path to locally built ctranslate2 packages in pyproject.toml file.
Also when i was building android package wheel for sentencepiece, it was showing me this error : -
I was using briefca, specifically beeware to build an android app. When i use command to build app for android, it is throwing me this error.
I have also provided path to locally built ctranslate2 packages in pyproject.toml file.
Also when i was building android package wheel for sentencepiece, it was showing me this error : -
Please can some guide me about how to go around this?
The text was updated successfully, but these errors were encountered: