Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error? #1

Open
mivilleb opened this issue Dec 5, 2018 · 1 comment
Open

Syntax Error? #1

mivilleb opened this issue Dec 5, 2018 · 1 comment

Comments

@mivilleb
Copy link

mivilleb commented Dec 5, 2018

Running the code inside Jupyter after installing Matplotlib and meteogram-py I get this error:

`
File "/opt/anaconda3/lib/python3.7/site-packages/meteogrampy/init.py", line 10

except KeyError, e:
               ^

SyntaxError: invalid syntax
`

@me2tkt
Copy link

me2tkt commented Jul 10, 2019

Editthe file called "init.py" (found in the folder ...\Lib\site-packages\meteogrampy )
and change all lines with
except KeyError, e;
to
except KeyError as e

Then in the example change
for x in xrange(len(temperature_data) - 1):
to
for x in range(len(temperature_data) - 1):

The meteogram look different from the example as different data is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants