https://supabase.com/ logo
Join Discord
Powered by
# python
  • j

    J0

    12/31/2021, 11:23 AM
    oh how did you go about installing it? I ran the instructions above on a standalone instance and it seemed to work
  • a

    Anoushk

    12/31/2021, 11:23 AM
    i did pip install in repl and on railway i added it to the requirements.txt
  • a

    Anoushk

    12/31/2021, 11:25 AM
    i tried it on ur repl and it worked, not sure whats happening here
  • a

    Anoushk

    12/31/2021, 11:25 AM
    can i pip install an older version of this package from pypi where the match func was there
  • j

    J0

    12/31/2021, 11:26 AM
    idt there's an older version with the match function. It's a new feature haha
  • j

    J0

    12/31/2021, 11:26 AM
    do you mind listing the exact commands you ran which produced this error?
  • j

    J0

    12/31/2021, 11:26 AM
    one other thing we could try is doing
    pip3 install <package name> --user
  • j

    J0

    12/31/2021, 11:27 AM
    oh ok
  • j

    J0

    12/31/2021, 11:27 AM
    so I think there's an existing version of
    supabase
    installed so we'll need to uninstall that and reinstall
  • j

    J0

    12/31/2021, 11:27 AM
    int order for it to work
  • a

    Anoushk

    12/31/2021, 11:28 AM
    oh i thought i delted it
  • j

    J0

    12/31/2021, 11:28 AM
    I'm going to run the following commands:
    pip3 uninstall supabase
    and then
    pip3 install <wheel>
    would that be okay?
  • a

    Anoushk

    12/31/2021, 11:29 AM
    yea do it
  • j

    J0

    12/31/2021, 11:36 AM
    yeah so I deleted the package and uploaded the version on my end, you can check if it works now
  • j

    J0

    12/31/2021, 11:36 AM
    seem to be able to import
  • a

    Anoushk

    12/31/2021, 11:36 AM
    ohk and the issue was?
  • a

    Anoushk

    12/31/2021, 11:37 AM
    and whats the package name to import in the code?
  • j

    J0

    12/31/2021, 11:37 AM
    I'm not too sure tbh. The wheel file might just have been incorrect
  • j

    J0

    12/31/2021, 11:38 AM
    oh should be the same as the regular client library(e.g.
    Copy code
    python
    import os
    from supabase import create_client, Client
    
    url: str = os.environ.get("SUPABASE_URL")
    key: str = os.environ.get("SUPABASE_KEY")
    supabase: Client = create_client(url, key)
    Yeah it's quite a bit of a hassle rn D: but once we release the next ver it should just work with
    pip3 install supabase
    sorry that you have to go through this
  • a

    Anoushk

    12/31/2021, 11:38 AM
    ohk did u already upload it on my repl
  • j

    J0

    12/31/2021, 11:38 AM
    yup I did
  • a

    Anoushk

    12/31/2021, 11:38 AM
    cn u do it again i think i did it again cos i thought u did it on ur repl
  • j

    J0

    12/31/2021, 11:39 AM
    Sure, have uploaded the .whl file to your repl and installed it actually. Are you able to view the console on the right?
  • a

    Anoushk

    12/31/2021, 11:40 AM
    yep
  • a

    Anoushk

    12/31/2021, 11:40 AM
    did u pip install it?
  • j

    J0

    12/31/2021, 11:41 AM
    yes, I did
  • a

    Anoushk

    12/31/2021, 11:43 AM
    ohk th bot works, now i need to do the same for my railway deployment cos repl doesnt stay online 24/7
  • a

    Anoushk

    12/31/2021, 11:44 AM
    cn u give me ur github so i can add u to the repo so u cn upload the file
  • a

    Anoushk

    12/31/2021, 11:44 AM
    idk why if i download it doesnt work
  • a

    Anoushk

    12/31/2021, 11:45 AM
    sorry for the hassle
1...111213...19Latest