Giter Site home page Giter Site logo

Comments (8)

arrrrrmin avatar arrrrrmin commented on June 6, 2024 2

Hello @tokusumi, yesterday I discovered this repo. Had the same problem. Also solved it by reinstalling the environment. Here are some requirements. (I'm moving my repo from Flask to fastAPI backend, just so you don't wonder ^^). I installed via pip3 install fastapi-cloudauth. I hope this helps you reproduce the error. Sadly I didnt freeze the requirements, so I can't tell you which versions I used.

flask #removed when reinstalling
jinja2 #removed when reinstalling
gunicorn #removed when reinstalling
boto3 #removed when reinstalling
pandas #removed when reinstalling

fastapi
uvicorn
python-jose
requests
dotenv #removed when reinstalling
fastapi-cloudauth

from fastapi-cloudauth.

tokusumi avatar tokusumi commented on June 6, 2024 1

How did you install this? Please tell me reproducible way.

from fastapi-cloudauth.

tokusumi avatar tokusumi commented on June 6, 2024 1

I cannot reproduced 😢 .
I tried the followings commands in the configurations:

  • Python: v3.8.3
  • pip: v18.1
  • application file: copy the example in readme and paste it in app.py

Notice that you must set valid region and user pool id in environment variables in the last line.

$ python3 -m venv env
$ source env/bin/activate
$ python -m pip install -U flask jinja2 gunicorn boto3 pandas
$ python -m pip install -U fastapi uvicorn python-jose requests python-dotenv
$ python -m pip install -U fastapi-cloudauth
$ export REGION=us-east-1 && export USERPOOLID=us-east-1_xxxxxxxxx && uvicorn app:app
INFO:     Started server process [20051]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)

from fastapi-cloudauth.

tokusumi avatar tokusumi commented on June 6, 2024 1

Came across 👍 Thank you. I'll try to find a solution.

from fastapi-cloudauth.

jurasofish avatar jurasofish commented on June 6, 2024

I got this too and "fixed" it by recreating my condo Env. It only occurred after I installed some new packages which I didn't end up needing (I forget which). Happens when one of the classes returns a copy of itself. I might get around to a pr

from fastapi-cloudauth.

tokusumi avatar tokusumi commented on June 6, 2024

Hi, all!
I updated to resolve this problem in master branch and tested that in my reproducible environment. Could you check it with the latest master branch?

from fastapi-cloudauth.

arrrrrmin avatar arrrrrmin commented on June 6, 2024

@tokusumi pip3 install git+https://github.com/tokusumi/fastapi-cloudauth.git does't throw the pickle error anymore. Thanks for resolving :)

from fastapi-cloudauth.

tokusumi avatar tokusumi commented on June 6, 2024

Thank you for helping us.
To fix this error, v0.1.3 was released.

from fastapi-cloudauth.

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.