Comments (3)
Hi @wouterdb,
Can you please explain how did you get this error and how can we reproduce it in our lab?
If you are working only with python 3 you can use the code from pull request #25
later we will publish compatible code that will solve your problem in all python versions.
Regards,
Yael.
from cp_mgmt_api_python_sdk.
Hi @chkp-yaelg,
some context
python version: python 3.6
os: centos 7
We got this error by running this code as part of the deployment agent of the Inmanta orchestrator.
I think this specific error was caused because this code is executed under a system account that has very limited permissions.
It can write to specific folders, but not to the folder it is executed in. As we can not set the path this file is written to, it causes the first error.
If you would create a read-only folder and execute a login call in that folder, you should get the same result.
@edvgui (who made #25) is a collegue of mine, we have applied his patch and it is confirmed to work.
Thanks you for the quick repsonse,
Wouter
from cp_mgmt_api_python_sdk.
@wouterdb and @edvgui Thanks you both for your collaboration.
I used your code and update it to be compatible to both python versions (2 and 3)
This change is available now in release v.1.1.1
from cp_mgmt_api_python_sdk.
Related Issues (20)
- policies with ipv6 only objects break the clone_object.py HOT 1
- Publish on pypi.org HOT 2
- why we don't upload this to pypi HOT 4
- Problems with cp_mgmt_api_python_sdk - can't log in HOT 2
- Missing meta data HOT 1
- setup.py HOT 2
- API_key request login failed HOT 2
- "show logs" HOT 1
- Login with Certificates HOT 1
- connection timeout HOT 2
- package name collision with cpapi / OpenMaya HOT 3
- api endpoints called with limit are failing HOT 3
- The rule to add in specific section parameter not accepting HOT 6
- Python Version HOT 3
- KeyError: 'sid' HOT 3
- Python 3.12 AttributeError: module 'ssl' has no attribute 'wrap_socket' HOT 3
- Is there a good way for me to obtain all access sections under the layer? HOT 1
- Option to discard pending changes on exception HOT 1
- pip install-python3 HOT 1
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 cp_mgmt_api_python_sdk.