Closed macnotes closed 11 months ago
I'm not able to recreate the error you're seeing using your code.
The internal AccessToken
model is throwing an error that a type
is not being set (the SDK differentiates between user
and client
tokens). The only way I could see this happening is if you somehow had code for an older version of the SDK mixed with the latest code.
Can you try uninstalling the SDK package and reinstalling it cleanly and trying your code again?
Clean venv fixed it. Thank you! I'm sorry I wasted your time.
I had used pip to update from an old version. Not sure how it got borked. 🤷♂️
Feel free to tell me to go figure it out for myself but I though I'd check in with you first in case you were just still working on this part. It's still alpha, after all.
I'm getting an error trying ApiClientCredentialsProvider.
from jamf_pro_sdk import ApiClientCredentialsProvider
didn't work but it does if I add it to thefrom .clients.auth import list in ./jamf_pro_sdk/__init__.py
or if I import it by path...from jamf_pro_sdk.clients.auth import ApiClientCredentialsProvider
I tried using it and get an error where pydantic is expecting a scope that doesn't yet exist.
This is what I was trying...
System Information
Python 3.11 Sonoma 14.1 Jamf Pro SDK 0.4a1