Code Monkey home page Code Monkey logo

Comments (6)

thombashi avatar thombashi commented on May 20, 2024 1

I'll close the issue.
Feel free to reopen if you still have any problems about the issue.

from sqlitebiter.

thombashi avatar thombashi commented on May 20, 2024

@LewWadoo
Thank you for your report.

I am not sure the root cause for now. I could successfully convert my google spreadsheet with sqlitebiter gs in my environment.
Could you tell me your environments information to understand your situation?:

  • Python version
  • sqlitebiter version
    • did you installed optional dependency packages for gs subcommand?
  • Did you enable Google Sheets API for your credentials?
  • spreadsheets you typed (gom, etc.?) actually existed at Google Sheets and readable by Google Sheets API?

from sqlitebiter.

LewWadoo avatar LewWadoo commented on May 20, 2024

I don't remember, what, how and why I was using sqlitebiter. Since then I don't use it.

from sqlitebiter.

cdbattags avatar cdbattags commented on May 20, 2024

Hi @thombashi, I'm also receiving this error:

sqlitebiter -o sample.sqlite gs <credential>.json <spreadsheet-name>
[ERROR] OpenError: spreadsheet '<spreadsheet-name>' not found
[INFO] converted results: source=0, fail=1

Is there any way to access by URL? I believe gspread and pytablereader both support this?

The sheet just needs to be in the "My Drive" folder, no?

from sqlitebiter.

cdbattags avatar cdbattags commented on May 20, 2024

I figured this out, thanks! I had to share the folder with my service account.

I'd be curious what happens if spreadsheet names conflict though. I would say it would be a bit better to default to using the file key. Would you be open to a PR on this and pytablereader?

from sqlitebiter.

thombashi avatar thombashi commented on May 20, 2024

Hi @cdbattags

I'd be curious what happens if spreadsheet names conflict though.

According to the gspread document:

https://docs.gspread.org/en/latest/api.html?gspread.Client.open#gspread.Client.open
If thereโ€™s more than one spreadsheet with same title the first one will be opened.

I would say it would be a bit better to default to using the file key. Would you be open to a PR on this and pytablereader?

Surely the above might be better. Fallback to open by title would be ideal when failed to open by key to keeping backward compatibility.
PR would always be welcome.

from sqlitebiter.

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.