- 
                Notifications
    
You must be signed in to change notification settings  - Fork 54
 
Description
Platform: Mac Mini (Late 2018) - 3.2 GHz 6-core Intel i7
OS: Sequoia 15.7.1
From a terminal window at prompt:
- 
installed python/tcl-tk/python-tk via homebrew as per https://tkdocs.com/tutorial/install.html
 - 
verify python (homebrew installed)
 
$ python3 --version
python-3.14.0
- verify tcl-tk & python-tk (homebrew installed)
 
$ python3 -m tkinter
observed and interacted w/ "click me" dialog
- create virtual environment
 
$ python3 -m venv ~/[venv_path]
- activate venv
 
$ . ~/[venv_path]/bin/activate
- verify tcl-tk & python-tk in virtual environment
 
(venv) % python3 -m tkinter
observed and interacted w/ "click me" dialog
- install dependencies for other development
 
(venv) % pip3 install --no-binary=Pillow Pillow attrs configobj py2app pycotap pygame pysol-cards setuptools accessible-output2
- finally, attempt install of ttkthemes
 
(venv) % pip3 install ttkthemes
resultant message output with error indication
Collecting ttkthemes
  Downloading ttkthemes-3.2.2.tar.gz (891 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 891.2/891.2 kB 7.9 MB/s  0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      Traceback (most recent call last):
        File "/Users/[username]/venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <modu
          main()
          ~~~~^^
        File "/Users/[username]/venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/[username]/venv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_r
          return hook(config_settings)
        File "/private/var/folders/fp/4qmbhtqn3mn0ryvk6xd31ks80000gn/T/pip-build-env-1jm7olrs/overlay/lib/python3.14/site-packages/setuptool
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/fp/4qmbhtqn3mn0ryvk6xd31ks80000gn/T/pip-build-env-1jm7olrs/overlay/lib/python3.14/site-packages/setuptool
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/private/var/folders/fp/4qmbhtqn3mn0ryvk6xd31ks80000gn/T/pip-build-env-1jm7olrs/overlay/lib/python3.14/site-packages/setuptool
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/fp/4qmbhtqn3mn0ryvk6xd31ks80000gn/T/pip-build-env-1jm7olrs/overlay/lib/python3.14/site-packages/setuptool
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 7, in <module>
        File "/usr/local/Cellar/[email protected]/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/tkinter/__init__.py", line 38, i
          import _tkinter # If this fails your Python may not be configured for Tk
          ^^^^^^^^^^^^^^^
      ModuleNotFoundError: No module named '_tkinter'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
- observed install problem also occurs when using
 
python3 -m pip install git+https://github.com/RedFantom/ttkthemes
as described in ttkthemes docs
Need help sorting out cause of failure and/or correct steps for correct package install.
Numerous sources online suggest that pip should just work. Search for probable cause leads to information not applicable to circumstances, nor address observations directly. Rabbit Holes everywhere.
Suspect some specific path, or environment setting, needs to be tweaked because of homebrew usage.