Giter Club home page Giter Club logo

Comments (7)

clampr avatar clampr commented on May 26, 2024 1

One more update: I decided to drop PyArrow completely as we can achieve similar performance with Pickle. Simply update to Meteostat 1.0.2:

pip install meteostat -U

from meteostat-python.

clampr avatar clampr commented on May 26, 2024

Sadly, I cannot tell what's causing this issue. Is it working if you run any of the example scripts in plain Python? Usually, Meteostat should install all dependencies when using pip. Only thing that's an optional dependency is Matplotlib.

from meteostat-python.

ObiWanLansi avatar ObiWanLansi commented on May 26, 2024

I think matplotlib isn't the problem, I use it almost every day. But what is the PyArrow ? I guess it's an wrapper for Apache Arrow, and i dont know if there is maybe an problem under windows 10?

The same python test script worked under Linux Mint 20 (Kernel 5.4.0), also Python 3.8.5 and IPython 7.19.0 and Spyder 4.1.5 very fine ... :-)

It's both an Anaconda Installation and MeteoStat was installed whith pip3 directly from an Konsole (cmd.exe@win / bash@linux)

Maybe I can still test it tonight under a Raspberry 4 ...

from meteostat-python.

ObiWanLansi avatar ObiWanLansi commented on May 26, 2024

I tried to install it in a Raspberry, but unfortunately had no chance because PyArrow only threw errors.
But of course this is a PyArrow problem and not a MeteoStat problem ....

from meteostat-python.

gorogm avatar gorogm commented on May 26, 2024

Same issue here, the example code crashes in the 'stations = Stations()' line :(
Windows 10, Python 3.7.4, conda 4.9.2

from meteostat-python.

clampr avatar clampr commented on May 26, 2024

If PyArrow causes these errors, I'm working on a workaround which is described in #10. I guess we can ship it with the next release.

from meteostat-python.

clampr avatar clampr commented on May 26, 2024

Alright - I finally have an update on this issue. As described in #10 the solution is a workaround for systems which don't support PyArrow.

First, please upgrade to Meteostat 1.0.1:

pip install meteostat -U

If the installation fails, please try again with the --no-deps flag and install Pandas manually.

Then, in all scripts that utilize any of the Meteostat classes, simply disable caching:

Stations.max_age = 0
Hourly.max_age = 0
Daily.max_age = 0

This will bypass the cache and, therefore, doesn't require PyArrow. I hope it helps some of you.

from meteostat-python.

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.