Coder Social home page Coder Social logo

Comments (3)

chkp-yaelg avatar chkp-yaelg commented on August 24, 2024

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.

wouterdb avatar wouterdb commented on August 24, 2024

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.

chkp-yaelg avatar chkp-yaelg commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.