Open rggdmonk opened 8 months ago
There was a pending pull request on opus-fast-mosestokenizer
related to this. It's now merged to the master branch, can you test if the change helps?
Sure. I plan to test it later this week.
Still issues. I tried https://github.com/Helsinki-NLP/opus-fast-mosestokenizer/blob/master/INSTALL.md#from-source
(arm_fix) ➜ opus-fast-mosestokenizer git:(master) python -c "import pybind11; print(pybind11.get_cmake_dir())"
/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/pybind11/share/cmake/pybind11
opus-fast-mosestokenizer git:(master) python setup.py build_ext install
running build_ext
CMake Deprecation Warning at CMakeLists.txt:1 (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.
CMake Error at CMakeLists.txt:154 (find_package):
By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "pybind11",
but CMake did not find one.
Could not find a package configuration file provided by "pybind11" with any
of the following names:
pybind11Config.cmake
pybind11-config.cmake
Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set
"pybind11_DIR" to a directory containing one of the above files. If
"pybind11" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/Users/pstepach/Desktop/WORKING_FOLDER/arm_fix/opus-fast-mosestokenizer/setup.py", line 107, in <module>
setup(
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/pstepach/Desktop/WORKING_FOLDER/arm_fix/opus-fast-mosestokenizer/setup.py", line 53, in run
self.build_extension(ext)
File "/Users/pstepach/Desktop/WORKING_FOLDER/arm_fix/opus-fast-mosestokenizer/setup.py", line 91, in build_extension
subprocess.check_call(cmake_args, cwd=self.build_temp, env=env)
File "/Users/pstepach/miniconda3/envs/arm_fix/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/Users/pstepach/Desktop/WORKING_FOLDER/arm_fix/opus-fast-mosestokenizer', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/pstepach/Desktop/WORKING_FOLDER/arm_fix/opus-fast-mosestokenizer/build/lib.macosx-11.1-arm64-cpython-310/mosestokenizer/lib/', '-DPYTHON_EXECUTABLE=/Users/pstepach/miniconda3/envs/arm_fix/bin/python', '-DBUILD_CLI:BOOL=OFF', '-DBUILD_PYTHON:BOOL=ON', '-DBUILD_SHARED_LIBS:BOOL=ON', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.```
Hi!
I am currently experiencing an issue with the installation on M-series Macs (via
pip install opusfilter
).Unfortunately, the installation process fails due to a problem with the
opus-fast-mosestokenizer
dependency.Tested with Python 3.8/3.9/3.10/3.11
Some output: