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

cannot install build tools (macOS14) #813

Open
artificiel opened this issue Oct 13, 2023 · 1 comment
Open

cannot install build tools (macOS14) #813

artificiel opened this issue Oct 13, 2023 · 1 comment

Comments

@artificiel
Copy link

following the instruction, I had to specifiy pip3 (instead of plain pip) and got a lot of action going with install.sh...
but it chokes here:

Collecting markdown==2.6.5
  Downloading Markdown-2.6.5.zip (412 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 412.0/412.0 kB 16.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: markdown
  Building wheel for markdown (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      /private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/setup.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
        import imp
      Converting docs/release-2.3.txt -> build/docs/release-2.3.html
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/setup.py", line 234, in <module>
          setup(
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/dist.py", line 1001, in run_command
          super().run_command(command)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 364, in run
          self.run_command("build")
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/dist.py", line 1001, in run_command
          super().run_command(command)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/dist.py", line 1001, in run_command
          super().run_command(command)
        File "/Users/brtn/source_control/ofSite/nikola/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/setup.py", line 184, in run
          out = template % self._get_context(src, outfile)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/setup.py", line 116, in _get_context
          c['body'] = self.md.convert(src)
                      ^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/build/lib/markdown/__init__.py", line 375, in convert
          newRoot = treeprocessor.run(root)
                    ^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/yd/9qhlg5md2kjd0z_f4rz4vwyh0000gn/T/pip-install-qudeu96r/markdown_69de6074df2b456e81bb63d73ec8f5b4/build/lib/markdown/treeprocessors.py", line 361, in run
          brs = root.getiterator('br')
                ^^^^^^^^^^^^^^^^
      AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for markdown
  Running setup.py clean for markdown
Failed to build markdown
ERROR: Could not build wheels for markdown, which is required to install pyproject.toml-based projects

 ^ Received error installing website static generator ^
@artificiel artificiel changed the title cannot install build tools (macOS15) cannot install build tools (macOS14) Oct 13, 2023
@smeyfroi
Copy link

This PR might be interesting. I opened it Draft until someone else had a chance to test it, although it was quite a while ago now. Interested if it helps you: #795

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

2 participants