This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Description
Hi!
When I try to follow you example (https://github.com/wattsight/wapi-python/blob/master/examples/Timeseries_curve_examples/ts_simple_read.py), I get the following error:
MissingSchema: Invalid URL '/api/curves/get?name=tt+de+con+%C2%B0c+cet+min15+s': No schema supplied. Perhaps you meant http:///api/curves/get?name=tt+de+con+%C2%B0c+cet+min15+s?
I created a specific environment with conda to eliminate this as an error source:
conda create -n wapi python=3.6 anaconda
And the I run:
pip install -U wapi-python
This is my code:
import pandas as pd
import wapi
session = wapi.Session('config.ini')
start_date = pd.Timestamp('2018-6-1 00:00')
end_date = pd.Timestamp('2018-6-8 00:00')
curve_name = 'tt de con °c cet min15 s'
curve = session.get_curve(name=curve_name)
Any idea what is wrong? Thanks!