Code Monkey home page Code Monkey logo

Comments (6)

jerjou avatar jerjou commented on May 27, 2024

Thanks for the bug report! I'm having trouble reproducing - the discovery.build() call in the line following, that creates the bigquery service object, should have filled in the scope for you (though what you did is perfectly valid as well).

Do you know what version of the google-api-python-client library you're using?
Also - what environment are you running the code in? (eg local dev, google compute engine, app engine, etc)

It looks like the code to automatically fill in the scope was added on 05/2014, which should be in pip, etc..

from python-docs-samples.

theacodes avatar theacodes commented on May 27, 2024

It may be that because it's using the http client directly, instead of the service, that the proper scope isn't being used.

from python-docs-samples.

Falydoor avatar Falydoor commented on May 27, 2024

I'm using the version 1.3.2 for the google-api-python-client and I'm on a local dev environment.
I'm loading data into my BigQuery project using this sample in python.

And I had other issues that I fixed by comparing the POST request who was made in the BigQuery web client and the one in this sample.

If you have time, you can check my commit here because I had to do some changes (the big one was to add a "\n" before the last boundary).

from python-docs-samples.

jerjou avatar jerjou commented on May 27, 2024

Oh weird. I guess it's only using the service object to poll for the job status. I wonder why the sample is working for me... anyway, will update.

from python-docs-samples.

theacodes avatar theacodes commented on May 27, 2024

preferably, we should find a way to make this sample not use raw POST
request (this is a really ugly sample). I know I filed a bug for this
somewhere.

On Thu, Oct 15, 2015 at 1:15 PM Jerjou [email protected] wrote:

Oh weird. I guess it's only using the service object to poll for the job
status. I wonder why the sample is working for me... anyway, will update.


Reply to this email directly or view it on GitHub
#126 (comment)
.

from python-docs-samples.

jerjou avatar jerjou commented on May 27, 2024

Okay- updated the sample to actually use the python sdk the way I had originally thought it was being used ^_^; This should hopefully make the scope issue obsolete.

Will update the relevant doc as well.

from python-docs-samples.

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.