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

Update the build system for macOS to work with the modified "setup.py" for pymod #49

Open
Kazzz-S opened this issue Feb 14, 2023 · 7 comments

Comments

@Kazzz-S
Copy link
Owner

Kazzz-S commented Feb 14, 2023

I need to test the modified setup.py as requested by thomaslima.


In the first attempt using MacPorts, I got the errors below.
The reason is apparent. I will be able to manage somehow.

Traceback (most recent call last):
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 146, in check_libpng
    subprocess.check_call(["libpng-config", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/opt/local/Library/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 "/opt/local/Library/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: 'libpng-config'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 510, in <module>
    define_macros=config.macros() + [("MAKE_TL_LIBRARY", 1)],
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 430, in macros
    if platform.system() == "Darwin" and check_libpng():
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 151, in check_libpng
    raise RuntimeError("libpng missing. libpng-config is not available") from e
RuntimeError: libpng missing. libpng-config is not available
Kazzz-S added a commit that referenced this issue Feb 14, 2023
@thomaslima
Copy link

Looks like you don't have libpng-config in your path. with brew, it can be installed with brew install libpng. maybe macports can also install it?

Kazzz-S added a commit that referenced this issue Feb 14, 2023
@Kazzz-S
Copy link
Owner Author

Kazzz-S commented Feb 14, 2023

Homemade pymod in LW*Monterey*.dmg

<< Anaconda3 >>

(base) MacBookPro2{sekigawa} pymod-dist (1)% which pip3
/Applications/anaconda3/bin/pip3

(base) MacBookPro2{sekigawa} pymod-dist (2)% pip3 install klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl \
                                             --force-reinstall
Processing ./klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
Successfully installed klayout-0.28.5

(base) MacBookPro2{sekigawa} klayout (3)% pwd
/Applications/anaconda3/lib/python3.9/site-packages/klayout

(base) MacBookPro2{sekigawa} klayout (4)% ll
total 49812
drwxr-xr-x  34 sekigawa wheel     1088 Feb 15 06:33 .
drwxr-xr-x 698 sekigawa wheel    22336 Feb 15 06:33 ..
-rw-r--r--   1 sekigawa wheel       34 Feb 15 06:33 __init__.py
drwxr-xr-x   3 sekigawa wheel       96 Feb 15 06:33 __pycache__
drwxr-xr-x   5 sekigawa wheel      160 Feb 15 06:33 db
drwxr-xr-x  10 sekigawa wheel      320 Feb 15 06:33 db_plugins
-rwxr-xr-x   1 sekigawa wheel    35928 Feb 15 06:33 dbcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel  2376826 Feb 15 06:33 dbcore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 15 06:33 lay
-rwxr-xr-x   1 sekigawa wheel    35992 Feb 15 06:33 laycore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel   585462 Feb 15 06:33 laycore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 15 06:33 lib
-rwxr-xr-x   1 sekigawa wheel   567912 Feb 15 06:33 lib_ant.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel 29637144 Feb 15 06:33 lib_db.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   960264 Feb 15 06:33 lib_edt.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   816120 Feb 15 06:33 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   772784 Feb 15 06:33 lib_img.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel 10772816 Feb 15 06:33 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   182976 Feb 15 06:33 lib_layview.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   285256 Feb 15 06:33 lib_lib.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   441536 Feb 15 06:33 lib_lym.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1386456 Feb 15 06:33 lib_pya.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel    38840 Feb 15 06:33 lib_rba.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1018968 Feb 15 06:33 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   750576 Feb 15 06:33 lib_tl.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel    35736 Feb 15 06:33 libcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel      151 Feb 15 06:33 libcore.pyi
-rw-r--r--   1 sekigawa wheel        0 Feb 15 06:33 py.typed
drwxr-xr-x   4 sekigawa wheel      128 Feb 15 06:33 rdb
-rwxr-xr-x   1 sekigawa wheel    35648 Feb 15 06:33 rdbcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel    71673 Feb 15 06:33 rdbcore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 15 06:33 tl
-rwxr-xr-x   1 sekigawa wheel    35528 Feb 15 06:33 tlcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel   118783 Feb 15 06:33 tlcore.pyi

(base) MacBookPro2{sekigawa} klayout (5)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  @rpath/libpng16.16.dylib (compatibility version 54.0.0, current version 54.0.0) <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

<< MacPorts >>

MacBookPro2{sekigawa} pymod-dist (1)% which pip3
/opt/local/bin/pip3

MacBookPro2{sekigawa} pymod-dist (2)% sudo pip3 install klayout-0.28.5-cp39-cp39-macosx_12_0_x86_64.whl \
                                      --force-reinstall
Password:
WARNING: +++++ messages +++++
Processing ./klayout-0.28.5-cp39-cp39-macosx_12_0_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
Successfully installed klayout-0.28.5
WARNING: +++++ messages +++++

MacBookPro2{sekigawa} klayout (3)% pwd
/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/python3.9/site-packages/klayout

MacBookPro2{sekigawa} klayout (4)% ll
total 54928
drwxr-xr-x 34 root wheel     1088 Feb 15 06:47 .
drwxr-xr-x 53 root wheel     1696 Feb 15 06:47 ..
-rw-r--r--  1 root wheel       34 Feb 15 06:47 __init__.py
drwxr-xr-x  3 root wheel       96 Feb 15 06:47 __pycache__
drwxr-xr-x  5 root wheel      160 Feb 15 06:47 db
drwxr-xr-x 10 root wheel      320 Feb 15 06:47 db_plugins
-rwxr-xr-x  1 root wheel    36808 Feb 15 06:47 dbcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel  2376826 Feb 15 06:47 dbcore.pyi
drwxr-xr-x  4 root wheel      128 Feb 15 06:47 lay
-rwxr-xr-x  1 root wheel    36632 Feb 15 06:47 laycore.cpython-39-darwin.so
-rw-r--r--  1 root wheel   585462 Feb 15 06:47 laycore.pyi
drwxr-xr-x  4 root wheel      128 Feb 15 06:47 lib
-rwxr-xr-x  1 root wheel   724384 Feb 15 06:47 lib_ant.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel 32056816 Feb 15 06:47 lib_db.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1098552 Feb 15 06:47 lib_edt.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1107688 Feb 15 06:47 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   922744 Feb 15 06:47 lib_img.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel 11388280 Feb 15 06:47 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   228768 Feb 15 06:47 lib_layview.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   319816 Feb 15 06:47 lib_lib.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   560840 Feb 15 06:47 lib_lym.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  2088888 Feb 15 06:47 lib_pya.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel    43384 Feb 15 06:47 lib_rba.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1331664 Feb 15 06:47 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   999152 Feb 15 06:47 lib_tl.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel    36440 Feb 15 06:47 libcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel      151 Feb 15 06:47 libcore.pyi
-rw-r--r--  1 root wheel        0 Feb 15 06:47 py.typed
drwxr-xr-x  4 root wheel      128 Feb 15 06:47 rdb
-rwxr-xr-x  1 root wheel    36304 Feb 15 06:47 rdbcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel    71673 Feb 15 06:47 rdbcore.pyi
drwxr-xr-x  4 root wheel      128 Feb 15 06:47 tl
-rwxr-xr-x  1 root wheel    36088 Feb 15 06:47 tlcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel   118783 Feb 15 06:47 tlcore.pyi

MacBookPro2{sekigawa} klayout (5)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  /opt/local/lib/libpng16.16.dylib (compatibility version 56.0.0, current version 56.0.0)  <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

<< Homebrew >>

MacBookPro2{sekigawa} pymod-dist (1)% which pip3
/usr/local/opt/[email protected]/bin/pip3

MacBookPro2{sekigawa} pymod-dist (2)% pip3 install klayout-0.28.5-cp39-cp39-macosx_12_0_x86_64.whl \
                                      --force-reinstall
DEPRECATION: +++++ messages +++++
Processing ./klayout-0.28.5-cp39-cp39-macosx_12_0_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
  DEPRECATION: +++++ messages +++++
DEPRECATION: +++++ messages +++++
Successfully installed klayout-0.28.5

MacBookPro2{sekigawa} klayout (3)% pwd
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/klayout

MacBookPro2{sekigawa} klayout (4)% ll
total 63228
drwxr-xr-x 34 sekigawa admin     1088 Feb 15 07:03 .
drwxr-xr-x 47 sekigawa admin     1504 Feb 15 07:03 ..
-rw-r--r--  1 sekigawa admin       34 Feb 15 07:03 __init__.py
drwxr-xr-x  3 sekigawa admin       96 Feb 15 07:03 __pycache__
drwxr-xr-x  5 sekigawa admin      160 Feb 15 07:03 db
drwxr-xr-x 10 sekigawa admin      320 Feb 15 07:03 db_plugins
-rwxr-xr-x  1 sekigawa admin    36648 Feb 15 07:03 dbcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin  2376826 Feb 15 07:03 dbcore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 15 07:03 lay
-rwxr-xr-x  1 sekigawa admin    36632 Feb 15 07:03 laycore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin   585462 Feb 15 07:03 laycore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 15 07:03 lib
-rwxr-xr-x  1 sekigawa admin   822368 Feb 15 07:03 lib_ant.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin 38747720 Feb 15 07:03 lib_db.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1227800 Feb 15 07:03 lib_edt.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1255296 Feb 15 07:03 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1086184 Feb 15 07:03 lib_img.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin 12192568 Feb 15 07:03 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   255128 Feb 15 07:03 lib_layview.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   375656 Feb 15 07:03 lib_lib.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   636016 Feb 15 07:03 lib_lym.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  2157992 Feb 15 07:03 lib_pya.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin    43272 Feb 15 07:03 lib_rba.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1523696 Feb 15 07:03 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1049048 Feb 15 07:03 lib_tl.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin    36440 Feb 15 07:03 libcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin      151 Feb 15 07:03 libcore.pyi
-rw-r--r--  1 sekigawa admin        0 Feb 15 07:03 py.typed
drwxr-xr-x  4 sekigawa admin      128 Feb 15 07:03 rdb
-rwxr-xr-x  1 sekigawa admin    36304 Feb 15 07:03 rdbcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin    71673 Feb 15 07:03 rdbcore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 15 07:03 tl
-rwxr-xr-x  1 sekigawa admin    36080 Feb 15 07:03 tlcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin   118783 Feb 15 07:03 tlcore.pyi

MacBookPro2{sekigawa} klayout (5)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  /usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 56.0.0, current version 56.0.0)   <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

@Kazzz-S Kazzz-S assigned Kazzz-S and unassigned Kazzz-S Feb 14, 2023
@Kazzz-S
Copy link
Owner Author

Kazzz-S commented Feb 15, 2023

Hi @thomaslima,

I modified the build4mac.py script to use the latest setup.py and was able to build the homemade pymod for LW*.dmg as before.
However, it seems that libpng is not included in the wheel file. I think this is an unintended consequence for you.

To me, this is OK because, conceptually, LW* DMGs resort to the base system as much as possible.
However, providing two different versions of packages (PyPI is the master) is not neat.
So a practical solution could be not to include the homemade pymod in LW*.dmg.
In this connection, I would like to test the NEW wheel package (x86_64, Python39) containing libpng in my three environments. Could you kindly provide it if available?
Those packages currently available on the PyPI site do not appear to be state-of-the-art.

By the way, the build4mac.py script simply follows the three steps on demand:

  1. python3 setup.py build
  2. python3 setup.py bdist_wheel
  3. python3 setup.py clean --all

where python3 is from [Anaconda3|MacPorts|Homebrew].
I believe something must be missing to include libpng.

Best regards,
Kazzz-S

@thomaslima
Copy link

Hi @Kazzz-S .

  1. It's not unintended. You are correct. I think it's OK too for LW. Built wheels don't try to patch the library dependencies. That is done by running delocate after wheel installation. See https://github.com/KLayout/klayout/blob/334e9985f3d7d746d31128e8556a429028b24b46/pyproject.toml#L32 . I think you can just do delocate-wheel --ignore-missing-dependencies path_to_wheel.whl.
  2. The wheels can be found in the artifacts of the following GitHub actions: https://github.com/KLayout/klayout/actions/runs/4153634515. Scroll to the bottom and click the artifact link.
  3. BTW I saw that python is trying to deprecate setup.py. The new build command (also used via GitHub actions) is python -m build.

What I was asking in the other thread is if the HW .dmg shipped with libpng, since it's not a dependency that is present by default in macOS.

Thanks!

@Kazzz-S
Copy link
Owner Author

Kazzz-S commented Feb 16, 2023

Hi @thomaslima,

Thank you for your clarification and instruction.

What I was asking in the other thread is if the HW .dmg shipped with libpng, since it's not a dependency that is present by default in macOS.

libpng is shipped with the HW*.dmg, as shown below (the latest build on Monterey).

(base) MacBookPro2{sekigawa} Frameworks (1)% pwd
/Applications/HW-Homebrew.app/Contents/Frameworks

(base) MacBookPro2{sekigawa} Frameworks (2)% ll
total 155400
drwxr-xr-x 76 sekigawa admin     2432 Feb 15 02:01 .
drwxr-xr-x  9 sekigawa admin      288 Feb 15 02:01 ..
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 Python.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtCore.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtDBus.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtDesigner.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtGui.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtMultimedia.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtMultimediaWidgets.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtNetwork.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtOpenGL.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtPdf.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtPrintSupport.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtQml.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtQmlModels.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtQuick.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtSql.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtSvg.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:01 QtVirtualKeyboard.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtWidgets.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtXml.framework
drwxr-xr-x  5 sekigawa admin      160 Feb 15 02:00 QtXmlPatterns.framework
lrwxr-xr-x  1 sekigawa admin       20 Feb 15 06:16 db_plugins -> ../MacOS/db_plugins/
drwxr-xr-x 13 sekigawa admin      416 May  4  2022 gdbm
-rwxr-xr-x  1 sekigawa admin   573768 Feb 15 02:01 libfreetype.6.dylib
-rwxr-xr-x  1 sekigawa admin  1087312 Feb 15 02:01 libglib-2.0.0.dylib
-rwxr-xr-x  1 sekigawa admin    33160 Feb 15 02:01 libgthread-2.0.0.dylib
-rwxr-xr-x  1 sekigawa admin    88168 Feb 15 02:01 libintl.8.dylib
-rwxr-xr-x  1 sekigawa admin   603424 Feb 15 02:01 libjpeg.8.dylib
-rwxr-xr-x  1 sekigawa admin 23339936 Feb 15 02:01 libklayout_QtCore.0.dylib
-rwxr-xr-x  1 sekigawa admin   154344 Feb 15 02:01 libklayout_QtDesigner.0.dylib
-rwxr-xr-x  1 sekigawa admin 16720032 Feb 15 02:01 libklayout_QtGui.0.dylib
-rwxr-xr-x  1 sekigawa admin  9774200 Feb 15 02:01 libklayout_QtMultimedia.0.dylib
-rwxr-xr-x  1 sekigawa admin  5661720 Feb 15 02:01 libklayout_QtNetwork.0.dylib
-rwxr-xr-x  1 sekigawa admin  2110672 Feb 15 02:01 libklayout_QtPrintSupport.0.dylib
-rwxr-xr-x  1 sekigawa admin  2606720 Feb 15 02:01 libklayout_QtSql.0.dylib
-rwxr-xr-x  1 sekigawa admin   445496 Feb 15 02:01 libklayout_QtSvg.0.dylib
-rwxr-xr-x  1 sekigawa admin   575792 Feb 15 02:01 libklayout_QtUiTools.0.dylib
-rwxr-xr-x  1 sekigawa admin 31076952 Feb 15 02:01 libklayout_QtWidgets.0.dylib
-rwxr-xr-x  1 sekigawa admin  1163312 Feb 15 02:01 libklayout_QtXml.0.dylib
-rwxr-xr-x  1 sekigawa admin   889576 Feb 15 02:01 libklayout_QtXmlPatterns.0.dylib
-rwxr-xr-x  1 sekigawa admin   717192 Feb 15 02:01 libklayout_ant.0.dylib
-rwxr-xr-x  1 sekigawa admin   424672 Feb 15 02:01 libklayout_bd.0.dylib
-rwxr-xr-x  1 sekigawa admin 27233504 Feb 15 02:01 libklayout_db.0.dylib
-rwxr-xr-x  1 sekigawa admin  5030664 Feb 15 02:01 libklayout_doc.0.dylib
-rwxr-xr-x  1 sekigawa admin   164704 Feb 15 02:01 libklayout_drc.0.dylib
-rwxr-xr-x  1 sekigawa admin  1625392 Feb 15 02:01 libklayout_edt.0.dylib
-rwxr-xr-x  1 sekigawa admin   752440 Feb 15 02:01 libklayout_gsi.0.dylib
-rwxr-xr-x  1 sekigawa admin   639672 Feb 15 02:01 libklayout_icons.0.dylib
-rwxr-xr-x  1 sekigawa admin   877000 Feb 15 02:01 libklayout_img.0.dylib
-rwxr-xr-x  1 sekigawa admin  3321752 Feb 15 02:01 libklayout_lay.0.dylib
-rwxr-xr-x  1 sekigawa admin 10818056 Feb 15 02:01 libklayout_laybasic.0.dylib
-rwxr-xr-x  1 sekigawa admin  3376704 Feb 15 02:01 libklayout_layui.0.dylib
-rwxr-xr-x  1 sekigawa admin   352592 Feb 15 02:01 libklayout_layview.0.dylib
-rwxr-xr-x  1 sekigawa admin   318104 Feb 15 02:01 libklayout_lib.0.dylib
-rwxr-xr-x  1 sekigawa admin    82784 Feb 15 02:01 libklayout_lvs.0.dylib
-rwxr-xr-x  1 sekigawa admin   442856 Feb 15 02:01 libklayout_lym.0.dylib
-rwxr-xr-x  1 sekigawa admin   622080 Feb 15 02:01 libklayout_pya.0.dylib
-rwxr-xr-x  1 sekigawa admin    74560 Feb 15 02:01 libklayout_qtbasic.0.dylib
-rwxr-xr-x  1 sekigawa admin   355184 Feb 15 02:01 libklayout_rba.0.dylib
-rwxr-xr-x  1 sekigawa admin   914760 Feb 15 02:01 libklayout_rdb.0.dylib
-rwxr-xr-x  1 sekigawa admin   879392 Feb 15 02:01 libklayout_tl.0.dylib
-rwxr-xr-x  1 sekigawa admin   531568 Feb 15 02:01 libpcre2-16.0.dylib
-rwxr-xr-x  1 sekigawa admin   580648 Feb 15 02:01 libpcre2-8.0.dylib
-rwxr-xr-x  1 sekigawa admin   180416 Feb 15 02:01 libpng16.16.dylib <=====
                                                   ^^^^^^^^^^^^^^^^^
-rwxr-xr-x  1 sekigawa admin    49976 Feb 15 02:01 libsharpyuv.0.dylib
-rwxr-xr-x  1 sekigawa admin   463008 Feb 15 02:01 libtiff.5.dylib
-rwxr-xr-x  1 sekigawa admin   384544 Feb 15 02:01 libwebp.7.dylib
-rwxr-xr-x  1 sekigawa admin    34528 Feb 15 02:01 libwebpdemux.2.dylib
-rwxr-xr-x  1 sekigawa admin    52800 Feb 15 02:01 libwebpmux.3.dylib
-rwxr-xr-x  1 sekigawa admin   810416 Feb 15 02:01 libzstd.1.dylib
drwxr-xr-x 10 sekigawa admin      320 May  4  2022 mpdecimal
drwxr-xr-x 14 sekigawa admin      448 Feb  8 18:13 [email protected]
drwxr-xr-x 12 sekigawa admin      384 Oct  8 18:33 readline
drwxr-xr-x  9 sekigawa admin      288 Jan  1 16:31 sqlite
drwxr-xr-x 17 sekigawa admin      544 Jan 17 06:58 xz

Kazzz-S

@Kazzz-S
Copy link
Owner Author

Kazzz-S commented Feb 16, 2023

Installation of PyPI's NEW pymod including libpng

Successful in the three environments, as shown below.

<< Anaconda3 >>

(base) MacBookPro2{sekigawa} PyPI (1)% pwd
/Applications/LW-Anaconda3.app/Contents/PyPI

(base) MacBookPro2{sekigawa} PyPI (2)% ll
total 17124
drwxr-xr-x  3 sekigawa admin       96 Feb 16 18:07 .
drwxr-xr-x 10 sekigawa admin      320 Feb 16 18:07 ..
-rw-rw-r--  1 sekigawa admin 17534549 Feb 11 23:53 klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl

(base) MacBookPro2{sekigawa} PyPI (3)% which pip3
/Applications/anaconda3/bin/pip3

(base) MacBookPro2{sekigawa} PyPI (4)% pip3 install klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl \
                                       --force-reinstall
Processing ./klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
Successfully installed klayout-0.28.5

(base) MacBookPro2{sekigawa} klayout (5)% pwd
/Applications/anaconda3/lib/python3.9/site-packages/klayout

(base) MacBookPro2{sekigawa} klayout (6)% ll
total 63660
drwxr-xr-x  35 sekigawa wheel     1120 Feb 16 18:15 .
drwxr-xr-x 698 sekigawa wheel    22336 Feb 16 18:15 ..
drwxr-xr-x   3 sekigawa wheel       96 Feb 16 18:15 .dylibs <=====
-rw-r--r--   1 sekigawa wheel       34 Feb 16 18:15 __init__.py
drwxr-xr-x   3 sekigawa wheel       96 Feb 16 18:15 __pycache__
drwxr-xr-x   5 sekigawa wheel      160 Feb 16 18:15 db
drwxr-xr-x  10 sekigawa wheel      320 Feb 16 18:15 db_plugins
-rwxr-xr-x   1 sekigawa wheel    56336 Feb 16 18:15 dbcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel  2376826 Feb 16 18:15 dbcore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 16 18:15 lay
-rwxr-xr-x   1 sekigawa wheel    56128 Feb 16 18:15 laycore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel   585462 Feb 16 18:15 laycore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 16 18:15 lib
-rwxr-xr-x   1 sekigawa wheel   845280 Feb 16 18:15 lib_ant.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel 38538912 Feb 16 18:15 lib_db.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1284032 Feb 16 18:15 lib_edt.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1286880 Feb 16 18:15 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1125568 Feb 16 18:15 lib_img.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel 12376512 Feb 16 18:15 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   267536 Feb 16 18:15 lib_layview.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   406880 Feb 16 18:15 lib_lib.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel   660960 Feb 16 18:15 lib_lym.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  2179680 Feb 16 18:15 lib_pya.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel    62944 Feb 16 18:15 lib_rba.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1560016 Feb 16 18:15 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel  1110128 Feb 16 18:15 lib_tl.cpython-39-darwin.so
-rwxr-xr-x   1 sekigawa wheel    55920 Feb 16 18:15 libcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel      151 Feb 16 18:15 libcore.pyi
-rw-r--r--   1 sekigawa wheel        0 Feb 16 18:15 py.typed
drwxr-xr-x   4 sekigawa wheel      128 Feb 16 18:15 rdb
-rwxr-xr-x   1 sekigawa wheel    55744 Feb 16 18:15 rdbcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel    71673 Feb 16 18:15 rdbcore.pyi
drwxr-xr-x   4 sekigawa wheel      128 Feb 16 18:15 tl
-rwxr-xr-x   1 sekigawa wheel    55520 Feb 16 18:15 tlcore.cpython-39-darwin.so
-rw-r--r--   1 sekigawa wheel   118783 Feb 16 18:15 tlcore.pyi

(base) MacBookPro2{sekigawa} klayout (7)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  @loader_path/.dylibs/libpng16.16.dylib (compatibility version 56.0.0, current version 56.0.0) <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

(base) MacBookPro2{sekigawa} klayout (8)% python3
Python 3.9.15 (main, Nov  4 2022, 11:11:31)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import klayout.tl
>>> import klayout.db
>>>



<< MacPorts >>

MacBookPro2{sekigawa} PyPI (1)% pwd
/Applications/LW-MacPorts.app/Contents/PyPI

MacBookPro2{sekigawa} PyPI (2)% ll
total 17124
drwxr-xr-x  3 sekigawa admin       96 Feb 16 18:08 .
drwxr-xr-x 10 sekigawa admin      320 Feb 16 18:08 ..
-rw-rw-r--  1 sekigawa admin 17534549 Feb 11 23:53 klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl

MacBookPro2{sekigawa} PyPI (3)% which pip3
/opt/local/bin/pip3

MacBookPro2{sekigawa} PyPI (4)% sudo pip3 install klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl \
                                --force-reinstall
Password:
WARNING: +++++ messages +++++
Processing ./klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
Successfully installed klayout-0.28.5
WARNING: +++++ messages +++++

MacBookPro2{sekigawa} klayout (5)% pwd
/opt/local/Library/Frameworks/Python.framework/Versions/Current/lib/python3.9/site-packages/klayout

MacBookPro2{sekigawa} klayout (6)% ll
total 63660
drwxr-xr-x 35 root wheel     1120 Feb 16 18:23 .
drwxr-xr-x 53 root wheel     1696 Feb 16 18:23 ..
drwxr-xr-x  3 root wheel       96 Feb 16 18:23 .dylibs <=====
-rw-r--r--  1 root wheel       34 Feb 16 18:23 __init__.py
drwxr-xr-x  3 root wheel       96 Feb 16 18:23 __pycache__
drwxr-xr-x  5 root wheel      160 Feb 16 18:23 db
drwxr-xr-x 10 root wheel      320 Feb 16 18:23 db_plugins
-rwxr-xr-x  1 root wheel    56336 Feb 16 18:23 dbcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel  2376826 Feb 16 18:23 dbcore.pyi
drwxr-xr-x  4 root wheel      128 Feb 16 18:23 lay
-rwxr-xr-x  1 root wheel    56128 Feb 16 18:23 laycore.cpython-39-darwin.so
-rw-r--r--  1 root wheel   585462 Feb 16 18:23 laycore.pyi
drwxr-xr-x  4 root wheel      128 Feb 16 18:23 lib
-rwxr-xr-x  1 root wheel   845280 Feb 16 18:23 lib_ant.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel 38538912 Feb 16 18:23 lib_db.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1284032 Feb 16 18:23 lib_edt.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1286880 Feb 16 18:23 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1125568 Feb 16 18:23 lib_img.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel 12376512 Feb 16 18:23 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   267536 Feb 16 18:23 lib_layview.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   406880 Feb 16 18:23 lib_lib.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel   660960 Feb 16 18:23 lib_lym.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  2179680 Feb 16 18:23 lib_pya.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel    62944 Feb 16 18:23 lib_rba.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1560016 Feb 16 18:23 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel  1110128 Feb 16 18:23 lib_tl.cpython-39-darwin.so
-rwxr-xr-x  1 root wheel    55920 Feb 16 18:23 libcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel      151 Feb 16 18:23 libcore.pyi
-rw-r--r--  1 root wheel        0 Feb 16 18:23 py.typed
drwxr-xr-x  4 root wheel      128 Feb 16 18:23 rdb
-rwxr-xr-x  1 root wheel    55744 Feb 16 18:23 rdbcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel    71673 Feb 16 18:23 rdbcore.pyi
drwxr-xr-x  4 root wheel      128 Feb 16 18:23 tl
-rwxr-xr-x  1 root wheel    55520 Feb 16 18:23 tlcore.cpython-39-darwin.so
-rw-r--r--  1 root wheel   118783 Feb 16 18:23 tlcore.pyi

MacBookPro2{sekigawa} klayout (7)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  @loader_path/.dylibs/libpng16.16.dylib (compatibility version 56.0.0, current version 56.0.0) <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

MacBookPro2{sekigawa} klayout (8)% which python3
/opt/local/bin/python3

MacBookPro2{sekigawa} klayout (9)% python3
Python 3.9.16 (main, Dec  7 2022, 02:41:07)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import klayout.tl
>>> import klayout.db
>>>


<< Homebrew >>

MacBookPro2{sekigawa} PyPI (1)% pwd
/Applications/LW-Homebrew.app/Contents/PyPI

MacBookPro2{sekigawa} PyPI (2)% ll
total 17124
drwxr-xr-x  3 sekigawa admin       96 Feb 16 18:08 .
drwxr-xr-x 10 sekigawa admin      320 Feb 16 18:08 ..
-rw-rw-r--  1 sekigawa admin 17534549 Feb 11 23:53 klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl

MacBookPro2{sekigawa} PyPI (3)% which pip3
/usr/local/opt/[email protected]/bin/pip3

MacBookPro2{sekigawa} PyPI (4)% pip3 install klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl \
                                --force-reinstall
DEPRECATION:  +++++ messages +++++
Processing ./klayout-0.28.5-cp39-cp39-macosx_10_9_x86_64.whl
Installing collected packages: klayout
  Attempting uninstall: klayout
    Found existing installation: klayout 0.28.5
    Uninstalling klayout-0.28.5:
      Successfully uninstalled klayout-0.28.5
  DEPRECATION:  +++++ messages +++++
DEPRECATION:  +++++ messages +++++
Successfully installed klayout-0.28.5

MacBookPro2{sekigawa} klayout (5)% pwd
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/klayout

MacBookPro2{sekigawa} klayout (6)% ll
total 63660
drwxr-xr-x 35 sekigawa admin     1120 Feb 16 18:32 .
drwxr-xr-x 47 sekigawa admin     1504 Feb 16 18:32 ..
drwxr-xr-x  3 sekigawa admin       96 Feb 16 18:32 .dylibs <=====
-rw-r--r--  1 sekigawa admin       34 Feb 16 18:32 __init__.py
drwxr-xr-x  3 sekigawa admin       96 Feb 16 18:32 __pycache__
drwxr-xr-x  5 sekigawa admin      160 Feb 16 18:32 db
drwxr-xr-x 10 sekigawa admin      320 Feb 16 18:32 db_plugins
-rwxr-xr-x  1 sekigawa admin    56336 Feb 16 18:32 dbcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin  2376826 Feb 16 18:32 dbcore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 16 18:32 lay
-rwxr-xr-x  1 sekigawa admin    56128 Feb 16 18:32 laycore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin   585462 Feb 16 18:32 laycore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 16 18:32 lib
-rwxr-xr-x  1 sekigawa admin   845280 Feb 16 18:32 lib_ant.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin 38538912 Feb 16 18:32 lib_db.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1284032 Feb 16 18:32 lib_edt.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1286880 Feb 16 18:32 lib_gsi.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1125568 Feb 16 18:32 lib_img.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin 12376512 Feb 16 18:32 lib_laybasic.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   267536 Feb 16 18:32 lib_layview.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   406880 Feb 16 18:32 lib_lib.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin   660960 Feb 16 18:32 lib_lym.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  2179680 Feb 16 18:32 lib_pya.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin    62944 Feb 16 18:32 lib_rba.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1560016 Feb 16 18:32 lib_rdb.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin  1110128 Feb 16 18:32 lib_tl.cpython-39-darwin.so
-rwxr-xr-x  1 sekigawa admin    55920 Feb 16 18:32 libcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin      151 Feb 16 18:32 libcore.pyi
-rw-r--r--  1 sekigawa admin        0 Feb 16 18:32 py.typed
drwxr-xr-x  4 sekigawa admin      128 Feb 16 18:32 rdb
-rwxr-xr-x  1 sekigawa admin    55744 Feb 16 18:32 rdbcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin    71673 Feb 16 18:32 rdbcore.pyi
drwxr-xr-x  4 sekigawa admin      128 Feb 16 18:32 tl
-rwxr-xr-x  1 sekigawa admin    55520 Feb 16 18:32 tlcore.cpython-39-darwin.so
-rw-r--r--  1 sekigawa admin   118783 Feb 16 18:32 tlcore.pyi

MacBookPro2{sekigawa} klayout (7)% for f in `ls *.so`; do echo $f; otool -L $f | grep png; done
dbcore.cpython-39-darwin.so
laycore.cpython-39-darwin.so
lib_ant.cpython-39-darwin.so
lib_db.cpython-39-darwin.so
lib_edt.cpython-39-darwin.so
lib_gsi.cpython-39-darwin.so
lib_img.cpython-39-darwin.so
lib_laybasic.cpython-39-darwin.so
lib_layview.cpython-39-darwin.so
lib_lib.cpython-39-darwin.so
lib_lym.cpython-39-darwin.so
lib_pya.cpython-39-darwin.so
lib_rba.cpython-39-darwin.so
lib_rdb.cpython-39-darwin.so
lib_tl.cpython-39-darwin.so
  @loader_path/.dylibs/libpng16.16.dylib (compatibility version 56.0.0, current version 56.0.0) <=====
libcore.cpython-39-darwin.so
rdbcore.cpython-39-darwin.so
tlcore.cpython-39-darwin.so

MacBookPro2{sekigawa} klayout (8)% which python3
/usr/local/opt/[email protected]/bin/python3

MacBookPro2{sekigawa} klayout (9)% python3
Python 3.9.16 (main, Dec  7 2022, 10:15:43)
[Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import klayout.tl
>>> import klayout.db
>>>

@thomaslima
Copy link

Thank you so much for verifying!

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