Open 0num4 opened 10 months ago
here is a build log on windows
root@DESKTOP-2TQ96U5:/mnt/c/Users/Owner/work/private/mahjong/mjx-convert# make install
python3 setup.py install
running install
running bdist_egg
running egg_info
creating mjxc.egg-info
writing mjxc.egg-info/PKG-INFO
writing dependency_links to mjxc.egg-info/dependency_links.txt
writing entry points to mjxc.egg-info/entry_points.txt
writing requirements to mjxc.egg-info/requires.txt
writing top-level names to mjxc.egg-info/top_level.txt
writing manifest file 'mjxc.egg-info/SOURCES.txt'
reading manifest file 'mjxc.egg-info/SOURCES.txt'
writing manifest file 'mjxc.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/converter
copying ./converter/const.py -> build/lib/converter
copying ./converter/hand.py -> build/lib/converter
copying ./converter/main.py -> build/lib/converter
copying ./converter/mjlog_decoder.py -> build/lib/converter
copying ./converter/mjlog_encoder.py -> build/lib/converter
copying ./converter/mjscore_encoder.py -> build/lib/converter
copying ./converter/open_converter.py -> build/lib/converter
copying ./converter/open_tile_ids_converter.py -> build/lib/converter
copying ./converter/__init__.py -> build/lib/converter
creating build/lib/tests_py
copying ./tests_py/test_mjlog.py -> build/lib/tests_py
copying ./tests_py/test_mjscore_encoder.py -> build/lib/tests_py
copying ./tests_py/__init__.py -> build/lib/tests_py
creating build/lib/utils
copying ./utils/diff.py -> build/lib/utils
copying ./utils/__init__.py -> build/lib/utils
creating build/lib/converter/mjxproto
copying ./converter/mjxproto/mjx_pb2.py -> build/lib/converter/mjxproto
copying ./converter/mjxproto/mjx_pb2_grpc.py -> build/lib/converter/mjxproto
copying ./converter/mjxproto/__init__.py -> build/lib/converter/mjxproto
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/const.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/hand.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/main.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/mjlog_decoder.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/mjlog_encoder.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/mjscore_encoder.py -> build/bdist.linux-x86_64/egg/converter
creating build/bdist.linux-x86_64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/mjx_pb2.py -> build/bdist.linux-x86_64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/mjx_pb2_grpc.py -> build/bdist.linux-x86_64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/__init__.py -> build/bdist.linux-x86_64/egg/converter/mjxproto
copying build/lib/converter/open_converter.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/open_tile_ids_converter.py -> build/bdist.linux-x86_64/egg/converter
copying build/lib/converter/__init__.py -> build/bdist.linux-x86_64/egg/converter
creating build/bdist.linux-x86_64/egg/tests_py
copying build/lib/tests_py/test_mjlog.py -> build/bdist.linux-x86_64/egg/tests_py
copying build/lib/tests_py/test_mjscore_encoder.py -> build/bdist.linux-x86_64/egg/tests_py
copying build/lib/tests_py/__init__.py -> build/bdist.linux-x86_64/egg/tests_py
creating build/bdist.linux-x86_64/egg/utils
copying build/lib/utils/diff.py -> build/bdist.linux-x86_64/egg/utils
copying build/lib/utils/__init__.py -> build/bdist.linux-x86_64/egg/utils
byte-compiling build/bdist.linux-x86_64/egg/converter/const.py to const.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/hand.py to hand.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/main.py to main.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjlog_decoder.py to mjlog_decoder.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjlog_encoder.py to mjlog_encoder.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjscore_encoder.py to mjscore_encoder.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjxproto/mjx_pb2.py to mjx_pb2.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjxproto/mjx_pb2_grpc.py to mjx_pb2_grpc.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/mjxproto/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/open_converter.py to open_converter.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/open_tile_ids_converter.py to open_tile_ids_converter.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/converter/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests_py/test_mjlog.py to test_mjlog.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests_py/test_mjscore_encoder.py to test_mjscore_encoder.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests_py/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/utils/diff.py to diff.cpython-39.pyc
byte-compiling build/bdist.linux-x86_64/egg/utils/__init__.py to __init__.cpython-39.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mjxc.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/mjxc-0.0.1-py3.9.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing mjxc-0.0.1-py3.9.egg
creating /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/mjxc-0.0.1-py3.9.egg
Extracting mjxc-0.0.1-py3.9.egg to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding mjxc 0.0.1 to easy-install.pth file
Installing mjxc script to /root/.anyenv/envs/pyenv/versions/3.9.0/bin
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/mjxc-0.0.1-py3.9.egg
Processing dependencies for mjxc==0.0.1
Searching for grpcio==1.39.0
Reading https://pypi.org/simple/grpcio/
Downloading https://files.pythonhosted.org/packages/9f/2a/3e2856d256339e144953e7d28401faee13d72142a73fa4c0d25746786025/grpcio-1.39.0-cp39-cp39-manylinux2014_x86_64.whl#sha256=de83a045005703e7b9e67b61c38bb72cd49f68d9d2780d2c675353a3a3f2816f
Best match: grpcio 1.39.0
Processing grpcio-1.39.0-cp39-cp39-manylinux2014_x86_64.whl
Installing grpcio-1.39.0-cp39-cp39-manylinux2014_x86_64.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding grpcio 1.39.0 to easy-install.pth file
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/grpcio-1.39.0-py3.9-linux-x86_64.egg
Searching for protobuf==3.17.3
Reading https://pypi.org/simple/protobuf/
Downloading https://files.pythonhosted.org/packages/ed/bb/041ce7130ec3aab3de2a5a2a4f1dfb7d74901ccd05bbed5df4a70d1889af/protobuf-3.17.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl#sha256=e76d9686e088fece2450dbc7ee905f9be904e427341d289acbe9ad00b78ebd47
Best match: protobuf 3.17.3
Processing protobuf-3.17.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Installing protobuf-3.17.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding protobuf 3.17.3 to easy-install.pth file
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/protobuf-3.17.3-py3.9-linux-x86_64.egg
Searching for google==3.0.0
Reading https://pypi.org/simple/google/
Downloading https://files.pythonhosted.org/packages/ac/35/17c9141c4ae21e9a29a43acdfd848e3e468a810517f862cad07977bf8fe9/google-3.0.0-py2.py3-none-any.whl#sha256=889cf695f84e4ae2c55fbc0cfdaf4c1e729417fa52ab1db0485202ba173e4935
Best match: google 3.0.0
Processing google-3.0.0-py2.py3-none-any.whl
Installing google-3.0.0-py2.py3-none-any.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding google 3.0.0 to easy-install.pth file
Installing google script to /root/.anyenv/envs/pyenv/versions/3.9.0/bin
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/google-3.0.0-py3.9.egg
Searching for click==8.0.1
Reading https://pypi.org/simple/click/
Downloading https://files.pythonhosted.org/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl#sha256=fba402a4a47334742d782209a7c79bc448911afe1149d07bdabdf480b3e2f4b6
Best match: click 8.0.1
Processing click-8.0.1-py3-none-any.whl
Installing click-8.0.1-py3-none-any.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding click 8.0.1 to easy-install.pth file
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/click-8.0.1-py3.9.egg
Searching for beautifulsoup4
Reading https://pypi.org/simple/beautifulsoup4/
Downloading https://files.pythonhosted.org/packages/57/f4/a69c20ee4f660081a7dedb1ac57f29be9378e04edfcb90c526b923d4bebc/beautifulsoup4-4.12.2-py3-none-any.whl#sha256=bd2520ca0d9d7d12694a53d44ac482d181b4ec1888909b035a3dbf40d0f57d4a
Best match: beautifulsoup4 4.12.2
Processing beautifulsoup4-4.12.2-py3-none-any.whl
Installing beautifulsoup4-4.12.2-py3-none-any.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding beautifulsoup4 4.12.2 to easy-install.pth file
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/beautifulsoup4-4.12.2-py3.9.egg
Searching for soupsieve>1.2
Reading https://pypi.org/simple/soupsieve/
Downloading https://files.pythonhosted.org/packages/4c/f3/038b302fdfbe3be7da016777069f26ceefe11a681055ea1f7817546508e3/soupsieve-2.5-py3-none-any.whl#sha256=eaa337ff55a1579b6549dc679565eac1e3d000563bcb1c8ab0d0fefbc0c2cdc7
Best match: soupsieve 2.5
Processing soupsieve-2.5-py3-none-any.whl
Installing soupsieve-2.5-py3-none-any.whl to /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Adding soupsieve 2.5 to easy-install.pth file
Installed /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages/soupsieve-2.5-py3.9.egg
Searching for tenhou-wall-reproducer==1.2.0
Best match: tenhou-wall-reproducer 1.2.0
Adding tenhou-wall-reproducer 1.2.0 to easy-install.pth file
Using /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Searching for six==1.16.0
Best match: six 1.16.0
Adding six 1.16.0 to easy-install.pth file
Using /root/.anyenv/envs/pyenv/versions/3.9.0/lib/python3.9/site-packages
Finished processing dependencies for mjxc==0.0.1
この件調査したんですがmac m2上だとpython 3.9.13だと動作してpython v3.11.6だと動作しませんでした。
python 3.9.13の場合mjx-convert上からもmake install
とmake cli-test
が動作したのでrequirementとして3.9.13を要求するのがいいと思います。(pybind11の問題なのでコードではどうにもならなさそうです)
Tenhou wall reproducer supports Python 3.7 or later in Linux and Intel Mac environments.
また、この部分について見逃していてissueを建ててしまいました、すみません。
I got the following error when trying to build mjx I got the same error with pip install. It seems to be a mac specific issue, as it installed fine on wsl.