[MacPorts] #61807: py-meshio fails to install for python37

MacPorts noreply at macports.org
Fri Dec 11 21:56:27 UTC 2020


#61807: py-meshio fails to install for python37
----------------------+--------------------
 Reporter:  dgarnier  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.6.4
 Keywords:            |       Port:
----------------------+--------------------
 Something seems to be off when installing for python3.7.  Works fine for
 python3.8.

 Relevant error from log is:

 {{{
 :info:destroot Listing '.install-cache/pkg/meshio-4.3.6.dist-info'...
 :info:destroot Traceback (most recent call last):
 :info:destroot   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/install/__main__.py", line 128, in <module>
 :info:destroot     install(cache_dir, args.destdir)
 :info:destroot   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/install/__init__.py", line 284, in install
 :info:destroot     _copy_dir(scripts_cache_dir, destdir_path('scripts'))
 :info:destroot   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/install/__init__.py", line 96, in _copy_dir
 :info:destroot     shutil.copy2(path, root)
 :info:destroot   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py",
 line 266, in copy2
 :info:destroot     copyfile(src, dst, follow_symlinks=follow_symlinks)
 :info:destroot   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py",
 line 121, in copyfile
 :info:destroot     with open(dst, 'wb') as fdst:
 :info:destroot FileNotFoundError: [Errno 2] No such file or directory:
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin
 /meshio-info'
 info:destroot ERROR [Errno 2] No such file or directory:
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin
 /meshio-info'
 :info:destroot Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/meshio-4.3.6" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
 -m install --verbose
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/meshio-4.3.6-py3-none-any.whl --destdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/destroot
 :info:destroot Exit code: 1
 }}}

 Its clear that
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin

 Indeed, if one then does:
 {{{
 sudo mkdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 meshio/py37-meshio/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin
 }}}

 the install completes.

 I don't know why this fails for python37 and not python38.  Seems like an
 issue in the upstream meshio, but maybe a workaround can be made as the
 fix is pretty easy.

-- 
Ticket URL: <https://trac.macports.org/ticket/61807>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list