Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in make build(MacOS) #8

Open
0num4 opened this issue Nov 25, 2023 · 2 comments
Open

error in make build(MacOS) #8

0num4 opened this issue Nov 25, 2023 · 2 comments

Comments

@0num4
Copy link

0num4 commented Nov 25, 2023

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.

mjx-convert on  master [!] via 🐍 v3.11.3 on ☁️ 
❯ make install
python3 setup.py install
running install
/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running 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
reading manifest file 'mjxc.egg-info/SOURCES.txt'
writing manifest file 'mjxc.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-13.4-arm64/egg
running install_lib
running build_py
creating build/bdist.macosx-13.4-arm64/egg
creating build/bdist.macosx-13.4-arm64/egg/converter
creating build/bdist.macosx-13.4-arm64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/mjx_pb2.py -> build/bdist.macosx-13.4-arm64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/mjx_pb2_grpc.py -> build/bdist.macosx-13.4-arm64/egg/converter/mjxproto
copying build/lib/converter/mjxproto/__init__.py -> build/bdist.macosx-13.4-arm64/egg/converter/mjxproto
copying build/lib/converter/mjlog_encoder.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/mjlog_decoder.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/mjscore_encoder.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/__init__.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/open_converter.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/hand.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/main.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/const.py -> build/bdist.macosx-13.4-arm64/egg/converter
copying build/lib/converter/open_tile_ids_converter.py -> build/bdist.macosx-13.4-arm64/egg/converter
creating build/bdist.macosx-13.4-arm64/egg/tests_py
copying build/lib/tests_py/test_mjlog.py -> build/bdist.macosx-13.4-arm64/egg/tests_py
copying build/lib/tests_py/__init__.py -> build/bdist.macosx-13.4-arm64/egg/tests_py
copying build/lib/tests_py/test_mjscore_encoder.py -> build/bdist.macosx-13.4-arm64/egg/tests_py
creating build/bdist.macosx-13.4-arm64/egg/utils
copying build/lib/utils/__init__.py -> build/bdist.macosx-13.4-arm64/egg/utils
copying build/lib/utils/diff.py -> build/bdist.macosx-13.4-arm64/egg/utils
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjxproto/mjx_pb2.py to mjx_pb2.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjxproto/mjx_pb2_grpc.py to mjx_pb2_grpc.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjxproto/__init__.py to __init__.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjlog_encoder.py to mjlog_encoder.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjlog_decoder.py to mjlog_decoder.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/mjscore_encoder.py to mjscore_encoder.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/__init__.py to __init__.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/open_converter.py to open_converter.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/hand.py to hand.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/main.py to main.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/const.py to const.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/converter/open_tile_ids_converter.py to open_tile_ids_converter.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/tests_py/test_mjlog.py to test_mjlog.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/tests_py/__init__.py to __init__.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/tests_py/test_mjscore_encoder.py to test_mjscore_encoder.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/utils/__init__.py to __init__.cpython-311.pyc
byte-compiling build/bdist.macosx-13.4-arm64/egg/utils/diff.py to diff.cpython-311.pyc
creating build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/PKG-INFO -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/SOURCES.txt -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/dependency_links.txt -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/entry_points.txt -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/not-zip-safe -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/requires.txt -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
copying mjxc.egg-info/top_level.txt -> build/bdist.macosx-13.4-arm64/egg/EGG-INFO
creating 'dist/mjxc-0.0.1-py3.11.egg' and adding 'build/bdist.macosx-13.4-arm64/egg' to it
removing 'build/bdist.macosx-13.4-arm64/egg' (and everything under it)
Processing mjxc-0.0.1-py3.11.egg
removing '/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/mjxc-0.0.1-py3.11.egg' (and everything under it)
creating /Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/mjxc-0.0.1-py3.11.egg
Extracting mjxc-0.0.1-py3.11.egg to /Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages
mjxc 0.0.1 is already the active version in easy-install.pth
Installing mjxc script to /Users/User/.anyenv/envs/pyenv/versions/3.11.3/bin

Installed /Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/mjxc-0.0.1-py3.11.egg
Processing dependencies for mjxc==0.0.1
Searching for tenhou_wall_reproducer
Reading https://pypi.org/simple/tenhou_wall_reproducer/
/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Downloading https://files.pythonhosted.org/packages/86/4d/2c51afc73b5c35c33fe8b9d80ed93c9b26378a19f209da2e1cda34d9762f/tenhou_wall_reproducer-1.2.0.tar.gz#sha256=df9d7678080317efb21369c4cfcbdffc623e0c91f42aad38db7180ee1bb160ad
Best match: tenhou-wall-reproducer 1.2.0
Processing tenhou_wall_reproducer-1.2.0.tar.gz
Writing /var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/setup.cfg
Running tenhou_wall_reproducer-1.2.0/setup.py -q bdist_egg --dist-dir /var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/egg-dist-tmp-q25gmymn
/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
CMake Warning:
  Ignoring extra path from command line:

   "/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0"


CMake Error: The source directory "/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Traceback (most recent call last):
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 156, in save_modules
    yield saved
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 259, in run_setup
    _execfile(setup_script, ns)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/setup.py", line 118, in <module>
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 165, in run
    cmd = self.call_command('install_lib', warn_dir=0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
    self.run_command(cmdname)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
    self.run_command('build_ext')
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
    self.build_extensions()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
    self._build_extensions_serial()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
    self.build_extension(ext)
  File "/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/setup.py", line 103, in build_extension
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/build/lib.macosx-13.4-arm64-cpython-311/', '-DPYTHON_EXECUTABLE=/Users/User/.anyenv/envs/pyenv/versions/3.11.3/bin/python3', '-DEXAMPLE_VERSION_INFO=1.2.0', '-DCMAKE_BUILD_TYPE=Release', '-GNinja']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/User/work/private/mjx-convert/setup.py", line 8, in <module>
    setup(
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install.py", line 74, in run
    self.do_egg_install()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install.py", line 131, in do_egg_install
    cmd.run(show_deprecation=False)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 420, in run
    self.easy_install(spec, not self.no_deps)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 662, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 709, in install_item
    self.process_distribution(spec, dist, deps)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 754, in process_distribution
    distros = WorkingSet([]).resolve(
              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 789, in resolve
    dist = best[req.key] = env.best_match(
                           ^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1075, in best_match
    return self.obtain(req, installer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1087, in obtain
    return installer(requirement)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 681, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 707, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 900, in install_eggs
    return self.build_and_install(setup_script, setup_base)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 1174, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/easy_install.py", line 1158, in run_setup
    run_setup(setup_script, args)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 249, in run_setup
    with setup_context(setup_dir):
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 190, in setup_context
    with save_modules():
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 143, in resume
    raise exc.with_traceback(self._tb)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 156, in save_modules
    yield saved
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 259, in run_setup
    _execfile(setup_script, ns)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/setup.py", line 118, in <module>
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 165, in run
    cmd = self.call_command('install_lib', warn_dir=0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
    self.run_command(cmdname)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
    self.run_command('build_ext')
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
    self.build_extensions()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
    self._build_extensions_serial()
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
    self.build_extension(ext)
  File "/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/setup.py", line 103, in build_extension
  File "/Users/User/.anyenv/envs/pyenv/versions/3.11.3/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/2q/m7cxsq7n0rn3v9nm_31kjhtr0000gn/T/easy_install-h1md9fkb/tenhou_wall_reproducer-1.2.0/build/lib.macosx-13.4-arm64-cpython-311/', '-DPYTHON_EXECUTABLE=/Users/User/.anyenv/envs/pyenv/versions/3.11.3/bin/python3', '-DEXAMPLE_VERSION_INFO=1.2.0', '-DCMAKE_BUILD_TYPE=Release', '-GNinja']' returned non-zero exit status 1.
make: *** [install] Error 1

@0num4
Copy link
Author

0num4 commented Nov 25, 2023

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

@0num4
Copy link
Author

0num4 commented Nov 25, 2023

この件調査したんですがmac m2上だとpython 3.9.13だと動作してpython v3.11.6だと動作しませんでした。
python 3.9.13の場合mjx-convert上からもmake installmake cli-testが動作したのでrequirementとして3.9.13を要求するのがいいと思います。(pybind11の問題なのでコードではどうにもならなさそうです)

Tenhou wall reproducer supports Python 3.7 or later in Linux and Intel Mac environments.

また、この部分について見逃していてissueを建ててしまいました、すみません。

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

No branches or pull requests

1 participant