-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hello, Im having troubles using this code. From what can i understand is that I needed to change all the "collections" modules for "collections.abc" and it seems to be working the last thing i dont understand is how to use the yaml module. My understanding of this issue is the yaml module got updated and i need to add some parameters (here is the article which i consulted: https://stackoverflow.com/questions/69564817/typeerror-load-missing-1-required-positional-argument-loader-in-google-col) but im not sure im doing this correctly, because when i run the code the following apears in my screen (NOTE: I'm using a virtual enviroment):
This is the code:
from flask import Flask, redirect, render_template, request, session
import yaml
from mendeley import Mendeley
from mendeley.session import MendeleySession
with open('config.yml') as f:
config = yaml.safe_load(f)
REDIRECT_URI = 'http://localhost:5000/oauth'
This is the result:
(venvMendeley) C:\Users\rafae\Downloads\mendeley-api-python-example-master\mendeley-api-python-example-master>python mendeley-example.py
* Serving Flask app 'mendeley-example'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000/
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 996-554-940
Metadata
Metadata
Assignees
Labels
No labels