israel-dryer / TkFontAwesome

Use any of the 1k+ free FontAwesome icons in your tkinter application.
MIT License
66 stars 11 forks source link

No such file or directory: 'pacman' #4

Closed sakshemglaze closed 2 years ago

sakshemglaze commented 2 years ago

On mac os i tried to install this package using command pip install fontawesome but it give me error.

Collecting tkfontawesome Using cached tkfontawesome-0.2.0-py3-none-any.whl (405 kB) Collecting tksvg==0.7.4 Using cached tksvg-0.7.4.tar.gz (50 kB) Preparing metadata (setup.py) ... 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 "", line 2, in File "", line 34, in File "/private/var/folders/p2/_8dlzbbd3kq5wr0rmwd2xh600000gn/T/pip-install-qez1bb0p/tksvg_a96fbe2637684b8398caee99455febb7/setup.py", line 62, in sp.call(["pacman", "--needed", "--noconfirm", "-S", "mingw-w64-x86_64-{}".format(dep)]) # , stdout=sp.PIPE) File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 349, in call with Popen(*popenargs, **kwargs) as p: File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/Cellar/python@3.9/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, 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.

israel-dryer commented 2 years ago

It appears the underlying library tksvg is only available on Windows & Linux... though it appears the tcl version is available for mac, the python library author has not configured for that.

sakshemglaze commented 2 years ago

So now can we discontinue this tool because we need this for mac system?

israel-dryer commented 2 years ago

No need to discontinue. It still works perfectly fine at the moment for Linux and Windows.

chrisdel101 commented 2 years ago

Also tried to use on mac 12.4 : No such file or directory: 'pacman': 'pacman'. Is there any workaround to get it to work? Like @sakshemglaze , I need it to work specifically for mac (as well as the others).