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

macOS 10.15 Catalina Issue #7

Open
tbridge opened this issue Jun 9, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@tbridge
Copy link

commented Jun 9, 2019

Hi Aaron,

We're running into a challenge using the CloudFront-Middleware with Catalina's beta 1, and while I don't expect a fix in the short term, I wanted to let you know of the results of a run of Managed Software Center:

WARNING: Ignoring /usr/local/munki/middleware_cloudfront.py because of error importing module.

And, attempting to invoke the python script directly:

./middleware_cloudfront.py: line 1: Munki middleware provider to generate signed CloudFront requests.: command not found
./middleware_cloudfront.py: line 3: import: command not found
./middleware_cloudfront.py: line 4: import: command not found
./middleware_cloudfront.py: line 5: import: command not found
./middleware_cloudfront.py: line 6: import: command not found
from: can't read /var/mail/string
from: can't read /var/mail/OpenSSL.crypto
from: can't read /var/mail/OpenSSL.crypto
from: can't read /var/mail/OpenSSL.crypto
from: can't read /var/mail/Foundation
./middleware_cloudfront.py: line 13: __version__: command not found
Could not find command "=".
./middleware_cloudfront.py: line 16: KEYFILENAME: command not found
./middleware_cloudfront.py: line 17: syntax error near unexpected token `('
./middleware_cloudfront.py: line 17: `KEYFILEPATH = os.path.abspath(os.path.join(os.path.dirname(__file__),'```

@AaronBurchfield

This comment has been minimized.

Copy link
Owner

commented Jun 9, 2019

Hey Tom, thanks for opening this!

As a temporary solution I was able to get this middleware working again on 10.15 by installing a few missing python modules. If Apple doesn't fix this in future versions of 10.15 we'll find a better way to bundle these modules.

sudo python -m ensurepip
sudo pip install asn1crypto enum34 py2-ipaddress
@tbridge

This comment has been minimized.

Copy link
Author

commented Jun 9, 2019

Thanks so much for letting me know how to address this in the meantime!

Let me know if there's a radar I should dupe?

@erikng

This comment has been minimized.

Copy link

commented Jun 10, 2019

@AaronBurchfield

This comment has been minimized.

Copy link
Owner

commented Jun 10, 2019

@tbridge I used the dev beta's feedback utility to open issue 6139616.

@erikng That's the plan since middleware is imported under munki's python runtime anyway. 👍

Holding this issue open until we have a long-term solution for 10.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.