Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sabreen-Parveen
    @Sabreen-Parveen
    Thanks @mekarpeles :)
    Kartik Prajapati
    @Kartik1397
    Why I am getting this
    home_1 | Traceback (most recent call last):
    home_1 | File "scripts/new-solr-updater.py", line 294, in <module>
    home_1 | main()
    home_1 | File "scripts/new-solr-updater.py", line 278, in main
    home_1 | with open(state_file, "w") as f:
    home_1 | IOError: [Errno 13] Permission denied: 'solr-update.offset'
    openlibrary_home_1 exited with code 1
    Christian Clauss
    @cclauss
    In the upgrade from Python 2 to Python 3, we have moved some of the capabilities of home_1 to home_0 so please see if you can change the host accordingly.
    Kartik Prajapati
    @Kartik1397
    Thank You @cclauss previously I was running docker-compose build in openlibrary/docker/ after running build command in opnelibary/ everything is working fine.
    Sabreen-Parveen
    @Sabreen-Parveen
    image.png
    2 replies
    I was just going through the home page of open library and found this..
    A little part of check availabilty is not visible.. Can I create an issue for this?
    Zaheer Abbas
    @nk4456542
    @Sabreen-Parveen this issue has already been created, here : internetarchive/openlibrary#3916
    Kartik Prajapati
    @Kartik1397
    Screenshot from 2020-12-07 00-55-04.png
    5 replies
    Can I open an issue for restyling add book cover popup?
    Sabreen-Parveen
    @Sabreen-Parveen
    The subject page on localhost shows this:
    1 reply
    image.png
    What should I do?
    Manish Kumar Sarangi
    @captain-panda
    Hello
    This is Manish
    I came upon this project, and will really love to contribute. I'm proficient in python, and front end development, so please point me where to start from.
    Christian Clauss
    @cclauss
    @Sabreen-Parveen are you testing on your local machine. If so, then this is expected behavior. /subjects should be available on dev, staging, and production but not on a localhost instance.
    1 reply
    @captain-panda Please go thru the menu at the righthand side of https://github.com/internetarchive/openlibrary/wiki especially the developer resources.
    Sabreen-Parveen
    @Sabreen-Parveen
    oh yes, I was testing on my local machine.. Thanks a lot :)
    0dysseas
    @0dysseas
    Hello. I've found a bug that I'd like to work on and I've been working on it for the past day.
    In doing so, I'd like to include a third-party library to process cookies
    but I can't, for the life of me, add this to the project
    *add it
    I've followed the Working with javascript instructions but I don't have a vendor.jsh file
    I also, tried adding the library in dependency.json and run docker-compose exec web make js but to no avail...
    Can someone please help me with this?
    Mek
    @mekarpeles
    @0dysseas what is the use case? And which bug? If you comment on the Issue, we may be able to help!
    0dysseas
    @0dysseas
    HI @mekarpeles, thanks for replying! This is for the internetarchive/openlibrary#2815 and I've already commented on it. I couldn't figure out how to add a third-party library, so I built a solution with vanilla js.
    Romi-776
    @Romi-776
    Hello Everyone.
    I am Parminder Singh.
    I have some basic knowledge of Python, Django and Javascript.
    I really loves reading books and I would love to contribute to this project.
    But I'm a little bit confused about how to start this contributing journey.
    Can anyone please give me some step wise instructions as to what should I do first?
    Should I fork and clone the repo or should I first download and setup the docker?
    Yash Saravgi
    @Yashs911
    @Romi-776, you can follow these steps:
    1 reply
    1) Fork and Clone Openlibrary repo, set up an upstream link
    2) Download and Install Docker
    3) After that Follow Docker Instructions to set up the development environment.
    Romi-776
    @Romi-776
    @Yashs911 Thanks for the help.
    Susnata Goswami
    @proghead00
    Hey there. Is this an appropriate place to discuss about GSoC'21?
    Mek
    @mekarpeles
    @proghead00 please do ask questions!
    And welcome :)
    Jonathan Zacsh
    @jzacsh
    naive (total-noob-to-this-codebase) question:
    Jonathan Zacsh
    @jzacsh
    oh nvm, i misread that caller's code. looks like make_record is always called. so actually - seems it's this line that defines1 self.docs that should just already have the right data perhaps ... but from query_keys2 documentation, i'm guessing (however it's implemented) it's not intended to be a general search but just a 1:1 lookup.
    Mek
    @mekarpeles
    @jzacsh the /isbn path will resolve to the correct Open Library record if it exists or attempt to import it from other sources. The import route is currently disabled (until Tuesday this upcoming week) because we just redesigned how our imports work (and had to temporarily pause this import path)
    @cclauss regarding this -- since our new system submits a book initially (and likely won't get a response the first attempt) if a book is not in the system, we should probably try submitting a few times to the lookup-server (to give one a chance to succeed)

    Correct @jzacsh just a 1-off search or import. If you need to do a bulk search by ISBN, you may wish to either consider our data dump https://openlibrary.org/developers/dumps or one of our search/book APIs:

    https://openlibrary.org/dev/docs/api/books

    Jonathan Zacsh
    @jzacsh

    thanks @mekarpeles -- if i'm understanding the Book API correctly then it's also just a check if the ISBN already exists right? (eg https://openlibrary.org/api/books?bibkeys=ISBN:9781410490834 returns but that's only because openlibrary now actually knows about this ISBN - just before import i describe in that bug, it was probably returning an empty object?)

    So if we wanted to fix this import bug it'd be a two part problem?

    1. identify the right API to let you search more generally (eg: by Title, Author - eg: whatever backs this page: https://openlibrary.org/search?q=Lily+and+the+octopus&mode=everything)
    2. build new UX during import to let users say "yes, that work seems like a correct match, even though you (openlibrary) haven't seen this ISBN/edition yet"

    is the API i'm thinking of ((1) above) available? (from the api page you linked to, the bibkeys= API ((4) on that page) doesn't seem quite generic enough - it only takes OLID, or LCCN, or OCLC, or ISBN, right?

    (i see you linked to the data dumps - i might be missing something - not sure how to make use of that for this bug)

    Christian Clauss
    @cclauss
    Add .json to see the output... https://openlibrary.org/books/OL26835764M.json This is not just a boolean.
    Jonathan Zacsh
    @jzacsh

    wrt books/..json i'm not sure i follow - that's the output of a query against a particular edition ID right?

    wrt /search?...json it doesn't render the JSON for me (i still see the same UI)

    1 reply
    ah - sent before your message-edit. yeah so that isbn json output is what i'm guessing would have returned empty at the time of the import (because that ISBN didn't exist yet in openlibrary)
    Christian Clauss
    @cclauss
    /isbn is against an isbn, books is against an OLid
    Jonathan Zacsh
    @jzacsh
    (i could be missing something) what i'm saying is I don't think we can do by-id lookups of any sort, we need to do a general search on (title, author, ...other metadata...)
    thanks for that - yeah i was looking at that wiki - i didn't see anything about searching for works (i see there's a create/delete work API though)
    though i could be lacking context on that "list of all routes" dump at the bottom - maybe there's something there for me to grok, but i think that's just a kind of codebase-exploration-helper right?