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

Use with Platypus doesn't take installed requirements into account. #122

Open
kMikaZu opened this issue Dec 21, 2023 · 4 comments
Open

Use with Platypus doesn't take installed requirements into account. #122

kMikaZu opened this issue Dec 21, 2023 · 4 comments

Comments

@kMikaZu
Copy link

kMikaZu commented Dec 21, 2023

          I use the 1Password CLI and a custom script to inject the secrets. That script is wrapped into an app, made in Platypus. It asks for the environment (**Staging** or **Production**) and should then choose the right secret. 

The script runs fine, but I get a similar error.

​Staging
Installing Requirements
Requirement already satisfied: configparser in /opt/homebrew/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (6.0.0)
Requirement already satisfied: requests in /opt/homebrew/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 2)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 2)) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 2)) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 2)) (2023.11.17)
Running Jamf2Snipe
Traceback (most recent call last):
  File "/PATH/Jamf2Snipe.app/Contents/Resources/jamf2snipe", line 52, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
This is the end

What could be the culprit here? I followed the instructions and also created the virtualenv .

Originally posted by @kMikaZu in #67 (comment)

@kMikaZu
Copy link
Author

kMikaZu commented Dec 21, 2023

@jerm

@kMikaZu kMikaZu changed the title I use the 1Password CLI and a custom script to inject the secrets. That script is wrapped into an app, made in Platypus. It asks for the environment (**Staging** or **Production**) and should then choose the right secret. Use with Platypus doesn't take installed requirements into account. Dec 21, 2023
@kMikaZu
Copy link
Author

kMikaZu commented Jan 4, 2024

Any news on this? Could be useful for the Kandji Sync script as well!

@jerm
Copy link
Member

jerm commented Jan 4, 2024

@kMikaZu This seems like an issue with how Playpus is (not?) using the virtualenv, rather than a jamf2snipe issue. I just double-checled that we're not specifying a python binary, but rather picking it from the environment

#!/usr/bin/env python3

So that should "just work"..... but I really know nothing about how Platypus do.

Is this something you'd be willing to open-source? It's a cool use-case, but if it's a closed app, it's such a niche, possibly Platypus-specific, issue that this is where I'd direct you to our support plans.

If we're helping out the community, though, it's way easier to justify diving into it pro bono ;)

@kMikaZu
Copy link
Author

kMikaZu commented Jan 10, 2024

Don't know for sure what you are meaning with open-source? If you mean like: Providing a guide how to make a Platypus-app of this nice script, of course! With instructions etc. I have plans to make it happen for the Kandji Snipe script as well.

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

No branches or pull requests

2 participants