Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wilful::[gsa]> cat gocd.py
- #!/usr/sbin/python3
- from gocd import Server
- server = Server('https://localhost:8153', user='name', password='***')
- pipeline = server.pipeline('Example-Pipeline')
- response = pipeline.history()
- response.body
- wilful::[gsa]> python gocd.py
- Traceback (most recent call last):
- File "gocd.py", line 3, in <module>
- from gocd import Server
- File "/home/wilful/git/g-core-labs/gsa/gocd.py", line 3, in <module>
- from gocd import Server
- ImportError: cannot import name 'Server' from partially initialized module 'gocd' (most likely due to a circular import) (/home/wilful/git/g-core-labs/gsa/gocd.py)
- wilful::[gsa]> python -c 'from gocd import Server'
- Traceback (most recent call last):
- File "<string>", line 1, in <module>
- File "/home/wilful/git/g-core-labs/gsa/gocd.py", line 3, in <module>
- from gocd import Server
- ImportError: cannot import name 'Server' from partially initialized module 'gocd' (most likely due to a circular import) (/home/wilful/git/g-core-labs/gsa/gocd.py)
- wilful::[gsa]> cd ..
- wilful::[g-core-labs]> python -c 'from gocd import Server'
- wilful::[g-core-labs]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement