Comments (8)
So everything still works, its just a warning. Have seen it on Python3.9 and 3.10.
from git2jss.
So everything still works, its just a warning. Have seen it on Python3.9 and 3.10.
For me it's not working, unfortunately. I have tested adding a new script and it detects the new script but never actually uploads it, adding the --verbose argument doesn't provide any meaningful data either.
`python3 sync.py --url https://jss-url --username xyz --verbose
Changed Extension Attributes: []
Changed Scripts: ['Git2JSS-Test.sh', 'Git2JSS-Test.xml']
Password:
sync.py:361: DeprecationWarning: with timeout() is deprecated, use async with timeout() instead
with async_timeout.timeout(args.timeout):
WARNING: Executing <Task pending name='Task-1' coro=<main() running at sync.py:384> wait_for=<Future pending cb=[shield.._outer_done_callback() at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/tasks.py:902, <TaskWakeupMethWrapper object at 0x104360df0>()] created at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/tasks.py:883> cb=[run_until_complete..done_cb()] created at sync.py:427> took 0.012 seconds
WARNING: Executing <Task pending name='Task-2' coro=<TCPConnector._resolve_host() running at /Users/xyz/Library/Python/3.8/lib/python/site-packages/aiohttp/connector.py:880> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x104371580>()] created at /Users/xyz/Library/Python/3.8/lib/python/site-packages/aiohttp/resolver.py:33> cb=[shield.._inner_done_callback() at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/tasks.py:885] created at /Users/xyz/Library/Python/3.8/lib/python/site-packages/aiohttp/connector.py:1147> took 0.002 seconds
DEBUG: <uvloop.loop.SSLProtocol object at 0x104002ca0> starts SSL handshake
WARNING: Executing took 0.002 seconds
DEBUG: <uvloop.loop.SSLProtocol object at 0x104002ca0>: SSL handshake took 347.0 ms
WARNING: Executing <Task pending name='Task-1' coro=<main() running at sync.py:384> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x104371280>()] created at /Users/xyz/Library/Python/3.8/lib/python/site-packages/aiohttp/streams.py:614> cb=[run_until_complete..done_cb()] created at sync.py:427> took 0.006 seconds
No Changes in Extension Attributes
WARNING: Executing <Task pending name='Task-1' coro=<main() running at sync.py:388> cb=[run_until_complete..done_cb()] created at sync.py:427> took 0.005 seconds
`
from git2jss.
Can you fix the formatting in the output above? Also can you share the xml for the script? I don't think this is an issue with the timeout based on the output posted above
from git2jss.
Can you fix the formatting in the output above? Also can you share the xml for the script? I don't think this is an issue with the timeout based on the output posted above
The output is kind of messy and I'm not sure I can fix the formatting more than just adding a few spaces to space it out. I've attached the XML
Just to add, even if I just add the script itself without any xml to the scripts folder I get the same result.
from git2jss.
Sorry for the bump but was wondering if you have any ideas as to why this isn't working?
from git2jss.
Apologies for the delayed response, I no longer have a jss instance to test against so it might be touch and go for a bit :( Can you maybe try an older version of python and let me know if it works? When I originally developed this it was against 3.6 - just trying to narrow this down to a python version, jamf api issue, or malformed script issue
from git2jss.
No worries on the delay, I will specify the original python version and let you know the outcome.
from git2jss.
If it detects the script, ensure you have the proper permissions enabled in Jamf for the API user
from git2jss.
Related Issues (15)
- Not Fully Asynchronous When Syncing Scripts
- publish on pypi HOT 1
- sync not uploading EAs/Scripts if jamf has none
- store command line args in keychain HOT 4
- ElementTree errors on parsing "&" HOT 6
- sync.py do_not_verify_ssl HOT 7
- No interpreter directive found for (zsh) HOT 2
- Not supplying --password produces error HOT 5
- Add support for Configuration Profiles HOT 3
- Jamf API changes HOT 4
- using export_path with download.py caused errors in sync.py with sync_path HOT 1
- Timeout on on prem v10 HOT 4
- refactor directory structure HOT 1
- Add Flag for Disabling Validation of cert
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2jss.