[MacPorts] #65244: lensfun @0.3.3_0: python module not installed
MacPorts
noreply at macports.org
Tue Jun 7 13:22:36 UTC 2022
#65244: lensfun @0.3.3_0: python module not installed
----------------------+----------------------
Reporter: parafin | Owner: mascguy
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: lensfun |
----------------------+----------------------
Changes (by parafin):
* status: closed => reopened
* resolution: fixed =>
Comment:
With that committed fix I now can reproduce the problem you've been having
when only .egg file is being installed. The only difference is python
version in the Portfile. This is the relevant part (at the end) of build
log with python 3.10 (only .egg installed):
{{{
running install
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build
and pip and other standards-based tools.
warnings.warn(
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/setuptools/command/easy_install.py:144:
EasyInstallDeprecationWarning: easy_install command is deprecated. Use
build and pip and other standards-based tools.
warnings.warn(
Checking .pth file support in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/
/opt/local/bin/python3.10 -E -c pass
TEST FAILED:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/ does NOT support .pth files
bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/
and your PYTHONPATH environment variable currently contains:
''
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html
#custom-installation-locations
Please make the appropriate changes for your system and try again.
running bdist_egg
running egg_info
creating
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info
writing
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/PKG-INFO
writing dependency_links to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/dependency_links.txt
writing top-level names to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/top_level.txt
writing manifest file
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/SOURCES.txt'
reading manifest file
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/SOURCES.txt'
writing manifest file
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.14-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/lensfun
copying
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun/__init__.py
-> build/lib/lensfun
creating build/bdist.macosx-10.14-x86_64
creating build/bdist.macosx-10.14-x86_64/egg
creating build/bdist.macosx-10.14-x86_64/egg/lensfun
copying build/lib/lensfun/__init__.py ->
build/bdist.macosx-10.14-x86_64/egg/lensfun
byte-compiling build/bdist.macosx-10.14-x86_64/egg/lensfun/__init__.py to
__init__.cpython-310.pyc
creating build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/PKG-INFO -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/SOURCES.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
copying
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/dependency_links.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-
INFO
copying
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/apps/lensfun
.egg-info/top_level.txt -> build/bdist.macosx-10.14-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/lensfun-0.3.3-py3.10.egg' and adding
'build/bdist.macosx-10.14-x86_64/egg' to it
removing 'build/bdist.macosx-10.14-x86_64/egg' (and everything under it)
Processing lensfun-0.3.3-py3.10.egg
Copying lensfun-0.3.3-py3.10.egg to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages
Installed
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/lensfun-0.3.3-py3.10.egg
Processing dependencies for lensfun==0.3.3
Finished processing dependencies for lensfun==0.3.3
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build'
}}}
And with python 3.9 (working correctly):
{{{
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/lensfun
copying
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/build/apps/lensfun/__init__.py
-> build/lib/lensfun
running install_lib
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages
creating
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/lensfun
copying build/lib/lensfun/__init__.py ->
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/lensfun
byte-compiling
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/lensfun/__init__.py to __init__.cpython-39.pyc
running install_egg_info
Writing
/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/lensfun-0.3.3-py3.9.egg-info
make: Leaving directory
`/opt/local/var/macports/build/_Users_parafin_ports_graphics_lensfun/lensfun/work/build'
}}}
Did you have your problem with python_branch set to 3.9 or 3.10 in the
Portfile? On what macOS version are you?
--
Ticket URL: <https://trac.macports.org/ticket/65244#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list