Git Product home page Git Product logo

Comments (5)

berthubert avatar berthubert commented on July 2, 2024

hi - I've just updated the Jupyter notebook in the repository, it lagged behind the .py version. Can you check if this solved your problem?

from gazproject.

KarelWintersky avatar KarelWintersky commented on July 2, 2024

I cloned repo again.

Traceback (most recent call last):
  File "/home/arris/gazproject/gazmon.py", line 38, in <module>
    uzhgorod = pandas.read_json(prefix+"uzhgorod-data.json")
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 207, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 612, in read_json
    return json_reader.read()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 746, in read
    obj = self._get_object_parser(self.data)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 768, in _get_object_parser
    obj = FrameParser(json, **kwargs).parse()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 880, in parse
    self._parse_no_numpy()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1133, in _parse_no_numpy
    loads(json, precise_float=self.precise_float), dtype=None
ValueError: Expected object or value
ssh: connect to host 10.0.0.4 port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

after running update.sh

from gazproject.

KarelWintersky avatar KarelWintersky commented on July 2, 2024

Also:

NameError                                 Traceback (most recent call last)
Cell In [2], line 10
      7     v.set_index("timestamp", inplace=True)
      8     print(v.index.min(), v.index.max())
---> 10 uzhgorod = pandas.read_json(prefix+"uzhgorod-data.json")
     11 nordstreamF = pandas.read_json(prefix+"nordstream-fluxsys-data.json")
     12 nordstreamO = pandas.read_json(prefix+"nordstream-opal-data.json")

NameError: name 'pandas' is not defined

NameError                                 Traceback (most recent call last)
Cell In [5], line 1
----> 1 plt.figure()
      2 plt.plot(1000*storage.gasInStorage/(365*24))   # TWh
      3 plt.ylabel("GW*year")

NameError: name 'plt' is not defined

but

/home/arris/gazproject$ pip install pandas
Requirement already satisfied: pandas in /home/arris/.local/lib/python3.9/site-packages (1.4.4)
Requirement already satisfied: numpy>=1.18.5 in /home/arris/.local/lib/python3.9/site-packages (from pandas) (1.23.3)
Requirement already satisfied: python-dateutil>=2.8.1 in /home/arris/.local/lib/python3.9/site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas) (2021.1)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)

from gazproject.

KarelWintersky avatar KarelWintersky commented on July 2, 2024
/home/arris/gazproject$ python3 gazmon.py
2022-01-02 06:00:00 2022-09-20 06:00:00
2022-01-02 06:00:00 2022-09-20 06:00:00
2022-01-02 06:00:00 2022-09-20 06:00:00
2022-01-02 06:00:00 2022-09-21 06:00:00
2022-01-02 06:00:00 2022-09-21 06:00:00
2022-01-02 06:00:00 2022-09-20 06:00:00
2022-01-02 06:00:00 2022-09-20 06:00:00
Traceback (most recent call last):
  File "/home/arris/gazproject/gazmon.py", line 65, in <module>
    yamalK_h = pandas.read_json(prefix+"yamal-kondratki-data-intraday.json")
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 207, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 612, in read_json
    return json_reader.read()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 746, in read
    obj = self._get_object_parser(self.data)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 768, in _get_object_parser
    obj = FrameParser(json, **kwargs).parse()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 880, in parse
    self._parse_no_numpy()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1133, in _parse_no_numpy
    loads(json, precise_float=self.precise_float), dtype=None
ValueError: Expected object or value

of course, I changed prefix value to /home/arris/gazproject/

from gazproject.

KarelWintersky avatar KarelWintersky commented on July 2, 2024

After downloading *intraday.json (get-data-intraday.sh) new issue appeared:

Traceback (most recent call last):
  File "/home/arris/gazproject/gazmon.py", line 82, in <module>
    storage = pandas.read_json(prefix+"storage-old.json")
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 207, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 612, in read_json
    return json_reader.read()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 746, in read
    obj = self._get_object_parser(self.data)
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 768, in _get_object_parser
    obj = FrameParser(json, **kwargs).parse()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 880, in parse
    self._parse_no_numpy()
  File "/home/arris/.local/lib/python3.9/site-packages/pandas/io/json/_json.py", line 1133, in _parse_no_numpy
    loads(json, precise_float=self.precise_float), dtype=None
ValueError: Expected object or value

from gazproject.

Related Issues (2)

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.