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

recipe map creation fails on new autopkg setup #893

Open
jgstew opened this issue Sep 25, 2023 · 0 comments
Open

recipe map creation fails on new autopkg setup #893

jgstew opened this issue Sep 25, 2023 · 0 comments
Assignees
Labels
beta Only for AutoPkg beta releases

Comments

@jgstew
Copy link
Contributor

jgstew commented Sep 25, 2023

THIS IS ONLY INTENDED FOR AUTOPKG BETAS.

Describe the problem
Clone autopkg repo, switch to dev branch, install dependancies, then try to run anything or do anything that would create autopkg recipe map file.

Like: jgstew@jgstews-iMac autopkg % python3 ./Code/autopkg info

Preferences contents
BE SURE TO SANITIZE ANY SENSITIVE DATA SUCH AS PASSWORDS OR ADDRESSES.

Not applicable, none created yet.

AutoPkg output
BE SURE TO SANITIZE ANY SENSITIVE DATA SUCH AS PASSWORDS OR ADDRESSES.

jgstew@jgstews-iMac autopkg % python3 ./Code/autopkg info
/Users/jgstew/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Cannot read the recipe map file!
Cannot find or read the recipe map! Creating it now...
Traceback (most recent call last):
  File "/Users/jgstew/Projects/autopkg/./Code/autopkg", line 2725, in <module>
    sys.exit(main(sys.argv))
  File "/Users/jgstew/Projects/autopkg/./Code/autopkg", line 2721, in main
    return subcommands[verb]["function"](argv)
  File "/Users/jgstew/Projects/autopkg/./Code/autopkg", line 893, in get_info
    read_recipe_map(rebuild=True)
  File "/Users/jgstew/Projects/autopkg/Code/autopkglib/__init__.py", line 428, in read_recipe_map
    calculate_recipe_map()
  File "/Users/jgstew/Projects/autopkg/Code/autopkglib/__init__.py", line 344, in calculate_recipe_map
    write_recipe_map_to_disk()
  File "/Users/jgstew/Projects/autopkg/Code/autopkglib/__init__.py", line 384, in write_recipe_map_to_disk
    with open(DEFAULT_RECIPE_MAP, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/jgstew/Library/AutoPkg/recipe_map.json'

Expected behavior

Running mkdir ~/Library/AutoPkg fixes the issue.

I'd expect AutoPkg to create this directory if it does not exist, rather than throwing an error.

Version (please complete the following information):

  • OS version: MacOS 13.6
  • AutoPkg Version: 3.0.0 dev branch

I was NOT running AutoPkg by installing the PKG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Only for AutoPkg beta releases
Projects
None yet
Development

No branches or pull requests

2 participants