Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Romi-776
    @Romi-776
    Hello Everyone!
    Initially I had cloned the git repo using https along with all other docker setup. The project was working but git pull isn't working. Now I cloned it using SSH but now the project isn't working. It is showing a message everywhere that pyenv version 3.9.1 isn't installed. I tried to install it using the steps given on this link
    https://gist.github.com/luzfcb/1a7f64adf5d12c2d357d0b4319fe9dcd
    but the pyenv version isn't updating. My pc is showing the verion of pyenv as 1.2.23.
    Can anyone tell me what should I do now?
    Thanks.
    Screenshot from 2021-02-20 07-08-34.png
    9 replies
    Screenshot from 2021-02-20 07-07-21.png
    These are some of the screenshots for reference.
    Vishwas Singh
    @infern018
    Screenshot (368).png
    Hello all, I was setting up the project using docker, but when i ran docker-compose up the these errors showed up
    3 replies
    can anyone guide me on this?
    Vishwas Singh
    @infern018
    Screenshot 2021-02-20 174302.png
    that worked something @Yashs911 , but it is stuck on this for so long :P
    why this can be showing up?
    4 replies
    Vishwas Singh
    @infern018
    while running docker-compose up i am getting this error : db_1 | FATAL: role "openlibrary" does not exist
    and the database is not loading up, can someone help me out?
    Jessica Zhang
    @jessicajzhang03
    Hi! I'm new here and just set up my docker environment. When I click some links, e.g., "subjects" in the dropdown menu (http://localhost:8080/subjects) and "suggesting edits" in the footer (http://localhost:8080/help/faq/editing), I get a 404 error. Is this supposed to be the case, or did I mess something up?
    Christian Clauss
    @cclauss
    Don’t use sudo.
    Vishwas Singh
    @infern018
    can anyone tell why when i am using ctx.user.is_admin() it is showing logged in as admin even when i am logged in by my normal credentials
    image.png
    I've tried using separate nested if conditon for <if ctx.user.is_admin()> but it is being called irrespective of who logs in
    Why this may be showing up?
    It is with ref to this pull (internetarchive/openlibrary#4652)
    @bsdlp
    Romi-776
    @Romi-776
    When I try to run "docker-compose up" I am getting an error like this:
    Screenshot from 2021-02-24 08-25-02.png
    6 replies
    ravenhaer
    @ravenhaer
    Hello everyone! I am Anwesha. I am new to Open library community. Can anyone suggest a good first issue or an urgent issue I can start working on
    Christian Clauss
    @cclauss
    @Romi-776 The Python print error means that you are using a really old infogami. In the /opt/openlibrary directory please do a make git and try to restart Open Library.
    Romi-776
    @Romi-776
    There's no openlibrary directory in my /opt directory.
    Christian Clauss
    @cclauss
    ls/opt
    ls /opt
    Romi-776
    @Romi-776
    Screenshot from 2021-02-27 08-13-21.png
    Christian Clauss
    @cclauss
    If you go into your openlibrary directory and type make git you should see:
    % make git
    git submodule init
    git submodule sync
    Synchronizing submodule url for 'vendor/infogami'
    Synchronizing submodule url for 'vendor/js/wmd'
    git submodule update
    That should fix the print issue.
    Romi-776
    @Romi-776
    This is what happened after doing make git in openlibrary directory
    Screenshot from 2021-02-27 14-02-15.png
    Screenshot from 2021-02-27 14-02-41.png
    Christian Clauss
    @cclauss
    pushd vendor/infogami
    git checkout master
    git pull
    popd
    Romi-776
    @Romi-776
    I ran these commands but it made no difference in the previous error.
    Christian Clauss
    @cclauss

    What was the output of these commands?

    Please do not use sudo.

    What is the output of git remote -v when in the openlibrary directory and when in the openlibrary/vendo/infogami directory?

    Romi-776
    @Romi-776
    Command: pushd vendor/infogami
    Output: ~/gsocOrg1/openlibrary/vendor/infogami ~/gsocOrg1/openlibrary

    Command: git checkout master
    Output: Already on 'master'
    Your branch is up to date with 'origin/master'.

    Command: git pull
    Output: Already up to date.

    Command: popd
    Output: ~/gsocOrg1/openlibrary

    Command: git remote -v
    Output: origin git@github.com:internetarchive/openlibrary.git (fetch)
    origin git@github.com:internetarchive/openlibrary.git (push)
    Command: git remote -v
    Output: origin git://github.com/internetarchive/infogami.git (fetch)
    origin git://github.com/internetarchive/infogami.git (push)
    Christian Clauss
    @cclauss
    In the openlibrary/vendor/infogami directory...
    git fetch
    git pull origin master
    Romi-776
    @Romi-776
    Screenshot from 2021-02-27 14-27-11.png
    Christian Clauss
    @cclauss
    I really do not understand. I think you should rm -r openlibrary and start the installation process from scratch and avoid using sudo in that process.
    Romi-776
    @Romi-776
    Ok
    Thanks a lot for your time and help @cclauss!
    Mek
    @mekarpeles
    @/all We had a breaking change go into our docker image, so you'll need to run docker-compose up --pull -d to get make css and make components to work (or maybe docker-compose build --pull web , I forget). But it should result in those commands being ~2x faster :) See internetarchive/openlibrary#4669 .
    Romi-776
    @Romi-776

    I really do not understand. I think you should rm -r openlibrary and start the installation process from scratch and avoid using sudo in that process.

    You're right @cclauss! I have recently done the installation process from scratch, again and after speding some time on it, the project ran successfully.
    Thank you very much.

    Muhammed Ali
    @khabdrick
    Hello everyone, my name is Muhammed Ali, I'm looking to contribute to openlibrary, please what are the prerequisites
    Muhammed Ali
    @khabdrick
    No one can help me, mehn what a community