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

virtual_specs causes installer to fail on macOS #868

Open
2 tasks done
mrclary opened this issue Sep 28, 2024 · 0 comments
Open
2 tasks done

virtual_specs causes installer to fail on macOS #868

mrclary opened this issue Sep 28, 2024 · 0 comments
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@mrclary
Copy link

mrclary commented Sep 28, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

The package installer for macOS fails if virtual_specs is provided in construct.yaml. I expected it not to fail 😄.

Additional Context

The construct.yaml listed below results in the following error upon installation.
The exact same file, but with virtual_specs removed, results in a successful install.

The install.log indicates a PackagesNotFoundError regarding __osx[version='>=12'] from a conda solve in the prepare_installation script. However, the documentation states "In PKG installers, __osx specs can be checked natively without the solver being involved as long as only >=, < or , are used." So there seems to be an inconsistency here. Perhaps I'm not implementing this feature correctly 😄.

I'm using constructor=3.9.3.

construct.yaml contents

name: Spyder
company: Spyder-IDE
reverse_domain_identifier: org.spyder-ide.Spyder
version: 6.0.0rc3.dev144
environment_file: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/build/conda-base-osx-64.lock
installer_filename: Spyder-macOS-x86_64.pkg
installer_type: pkg
initialize_by_default: false
initialize_conda: false
register_python: false
register_envs: false
extra_envs:
  spyder-runtime:
    environment_file: 
      /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/build/conda-runtime-osx-64.lock
channels_remap:
  - src: file:///Users/rclary/.conda/conda-bld
    dest: https://conda.anaconda.org/conda-forge
license_file: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/resources/bundle_license.rtf
virtual_specs:
  - __osx>=12
progress_notifications: true
pre_install: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/resources/pre-install.sh
post_install: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/resources/post-install.sh
conclusion_text: ''
readme_text: ''
default_prefix: $HOME/Library/spyder-6
pkg_name: spyder-6
default_location_pkg: Library
welcome_image: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/build/welcome_img_mac.png
welcome_file: 
  /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/build/osx_pkg_welcome.rtf
extra_files:
  - /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/resources/bundle_readme.md: README.txt
  - /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/build/condarc: .condarc
  - /Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/resources/menuinst_cli.py: bin/menuinst_cli.py
signing_identity_name: 2YJ64GUAVW
notarization_identity_name: 2YJ64GUAVW

install.log excerpt

2024-09-28 14:15:27-07 TAE7235-MLAP package_script_service[43320]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.2UJ4bt/Scripts/org.spyder-ide.Spyder.pkg.prepare_installation.RXyJcg
2024-09-28 14:15:27-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: PREFIX=/Users/rclary/Library/spyder-6
2024-09-28 14:15:27-07 TAE7235-MLAP rclary[61369]: Checking virtual specs compatibility: __osx
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: Collecting package metadata (current_repodata.json): ...working... done
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: Solving environment: ...working... unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: Collecting package metadata (repodata.json): ...working... done
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: Solving environment: ...working... failed
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: PackagesNotFoundError: The following packages are not available from current channels:
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - __osx[version='>=12']
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: Current channels:
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/label/spyder_dev/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/label/spyder_dev/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/label/spyder_kernels_rc/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://conda.anaconda.org/conda-forge/label/spyder_kernels_rc/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - file:///Users/rclary/.conda/conda-bld/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - file:///Users/rclary/.conda/conda-bld/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://repo.anaconda.com/pkgs/main/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://repo.anaconda.com/pkgs/main/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://repo.anaconda.com/pkgs/r/osx-64
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:   - https://repo.anaconda.com/pkgs/r/noarch
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: To search for alternate channels that may provide the conda package you're
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: looking for, navigate to
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall:     https://anaconda.org
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: ./postinstall: and use the search bar at the top of the page.
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: PackageKit: Hosted team responsible for script has been cleared.
2024-09-28 14:15:52-07 TAE7235-MLAP package_script_service[43320]: Responsibility set back to self.
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: releasing backupd
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: allow user idle system sleep
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Spyder-macOS-x86_64.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/dist/Spyder-macOS-x86_64.pkg#prepare_installation.pkg, PKInstallPackageIdentifier=org.spyder-ide.Spyder.pkg.prepare_installation, NSLocalizedDescription=An error occurred while running scripts from the package “Spyder-macOS-x86_64.pkg”.} {
	    NSFilePath = "./postinstall";
	    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cSpyder-macOS-x86_64.pkg\U201d.";
	    NSURL = "file:///Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/dist/Spyder-macOS-x86_64.pkg#prepare_installation.pkg";
	    PKInstallPackageIdentifier = "org.spyder-ide.Spyder.pkg.prepare_installation";
	}
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: Cleared responsibility for install from 61234.
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: Cleared permissions on Installer.app
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: Hosted team responsible for install has been cleared.
2024-09-28 14:15:52-07 TAE7235-MLAP Installer[61234]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Spyder-macOS-x86_64.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/rclary/Documents/Repos/Spyder-IDE/spyder/installers-conda/dist/Spyder-macOS-x86_64.pkg#prepare_installation.pkg, PKInstallPackageIdentifier=org.spyder-ide.Spyder.pkg.prepare_installation, NSLocalizedDescription=An error occurred while running scripts from the package “Spyder-macOS-x86_64.pkg”.}
2024-09-28 14:15:52-07 TAE7235-MLAP installd[43283]: PackageKit: Removing client PKInstallDaemonClient pid=61234, uid=784632031 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2024-09-28 14:15:53-07 TAE7235-MLAP Installer[61234]: PackageKit: Bypassing the enforcement checker since the destination is read/write
2024-09-28 14:15:53-07 TAE7235-MLAP Installer[61234]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
2024-09-28 14:15:53-07 TAE7235-MLAP Installer[61234]: IFDInstallController 30602C0 state = 8
2024-09-28 14:15:53-07 TAE7235-MLAP Installer[61234]: Displaying 'Install Failed' UI.
2024-09-28 14:15:53-07 TAE7235-MLAP Installer[61234]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
2024-09-28 14:16:11-07 TAE7235-MLAP Installer[61234]: Package Removal: Package is not in downloads directory. Not offering removal.
2024-09-28 14:16:11-07 TAE7235-MLAP Installer[61234]: Package Removal: Package cannot be removed.

@mrclary mrclary added the type::bug describes erroneous operation, use severity::* to classify the type label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant