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

Fix MacOS builds #164

Open
tomlin7 opened this issue Oct 23, 2023 · 4 comments
Open

Fix MacOS builds #164

tomlin7 opened this issue Oct 23, 2023 · 4 comments
Assignees
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) python-error Related to python versions, pypi packages

Comments

@tomlin7
Copy link
Owner

tomlin7 commented Oct 23, 2023

Bug

Errors occurring when attempting to install tkextrafont

Requirement already satisfied: pip in /Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages (23.0.1)
Collecting pip
  Obtaining dependency information for pip from https://files.pythonhosted.org/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl.metadata
  Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 23.7 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-23.2.1
Collecting gitpython (from -r requirements.txt (line 1))
  Downloading GitPython-3.1.40-py3-none-any.whl.metadata (12 kB)
Collecting filetype (from -r requirements.txt (line 2))
  Downloading filetype-1.2.0-py2.py3-none-any.whl (19 kB)
Collecting tkextrafont (from -r requirements.txt (line 3))
  Downloading tkextrafont-0.6.1.tar.gz (656 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 656.8/656.8 kB 12.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Installing dependency cmake... Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-52w4vt39/tkextrafont_c6eed893e5fc4d1ca15a7412b331e576/setup.py", line 63, in <module>
          sp.call(["pacman", "--needed", "--noconfirm", "-S", "mingw-w64-x86_64-{}".format(dep)])  # , stdout=sp.PIPE)
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 345, in call
          with Popen(*popenargs, **kwargs) as p:
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 971, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/Users/runner/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/subprocess.py", line 1863, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'pacman'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

System Information

  • OS: macos-latest
  • Python Version: 3.10
@tomlin7 tomlin7 added bug Something isn't working python-error Related to python versions, pypi packages cross-platform-support Related to cross-platform support (Linux, Mac, etc.) labels Oct 23, 2023
@tomlin7 tomlin7 self-assigned this Oct 23, 2023
@Moosems
Copy link

Moosems commented Nov 16, 2023

Yes, tkextrafont has been unmaintained for quite some time.

@tomlin7
Copy link
Owner Author

tomlin7 commented Nov 16, 2023

@Moosems according to the tkextrafont docs, for the linux support of library they have specified some prerequisites

This example is given for Ubuntu 20.04, change the names of packages and commands as required for your distribution of choice.

sudo apt install python3-dev tcl-dev tk-dev \
    fontconfig libfontconfig1 libfontconfig1-dev \
    cmake cmake-data extra-cmake-modules build-essential
python -m pip install scikit-build
python setup.py install 

https://github.com/TkinterEP/python-tkextrafont?tab=readme-ov-file#linux

They have not mentioned about macos support though. But what all would be the prerequisites for macos to compile the library?

@Moosems
Copy link

Moosems commented Nov 16, 2023

No idea. Depends on how the library works.

@tomlin7
Copy link
Owner Author

tomlin7 commented Jan 1, 2024

merging issue #86 as both mention same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) python-error Related to python versions, pypi packages
Projects
None yet
Development

No branches or pull requests

2 participants