Running Drawbot as a module in environments that aren't Mac OS X



  • Hey there trying to install Drawbot as a module on a Ubuntu server running Python 3.8.10 and getting the following error. This is a dumb question, but is Drawbot Mac OS X only?

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-o13_uyde/pyobjc-framework-CoreServices/setup.py", line 26, in <module>
        Extension(
      File "/tmp/pip-install-o13_uyde/pyobjc-framework-CoreServices/pyobjc_setup.py", line 462, in Extension
        os_level = get_os_level()
      File "/tmp/pip-install-o13_uyde/pyobjc-framework-CoreServices/pyobjc_setup.py", line 231, in get_os_level
        subprocess.check_output(["/usr/bin/sw_vers", "-productVersion"])
      File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/usr/lib/python3.8/subprocess.py", line 493, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/sw_vers'


  • Yes, macOS only.

    From the GitHub page: ‘This module only works on Mac OS as it requires PyObjC, AppKit, CoreText Quartz and more.’


  • admin

    DrawBot is mac only... that will not change fast as we got now a super high level of typographic support...

    However Just started drawBotSkia which has a subset of the DrawBot api but uses skia as backend.

    see https://github.com/justvanrossum/drawbot-skia



  • Great thanks gang. I'll look into Just's Skia stuff.


Log in to reply