question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Fetch_values does not work with numerical values in debug mode.

See original GitHub issue

Describe the bug

Calling fetch_values on a FloatSeries created in debug mode returns an empty dataframe.

Reproduction

r = neptune.init(mode="debug")
r["t"].log(0)
r["t"].log(1)
r["t"].log(2)
print(r["t"].fetch_values())

Expected behavior

The dataframe should contain the 3 entries

Environment

Observed on neptune-client 0.10.3 to 0.10.5

Extra Notes

I do not have the issue when not using debug mode. fetch_last returns the expected value (2). It works fine with “a”, “b”, “c” instead of 0, 1, 2.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vivienrobert-wefoxcommented, Oct 20, 2021

hello @kamil-kaczmarek I understand that but the docs read “In contrast to Offline mode, all data are stored only in memory.” and it is not the case here as evidenced in my opening message. The values do not seem to be stored in memory for this particular case. I will add that it works as expected for non numerical values.

With numbers (doesn’t work as expected):

>>> r = neptune.init(mode="debug")
Info (NVML): NVML Shared Library Not Found. GPU usage metrics may not be reported. For more information, see https://docs-legacy.neptune.ai/logging-and-managing-experiment-results/logging-experiment-data.html#hardware-consumption 
>>> r["t"].log(0)
>>> r["t"].log(1)
>>> r["t"].log(2)
>>> print(r["t"].fetch_values())
Empty DataFrame
Columns: []
Index: []

With text (works as expected).

>>> r = neptune.init(mode="debug")
>>> r["t"].log("a")
>>> r["t"].log("b")
>>> r["t"].log("c")
>>> print(r["t"].fetch_values())
   step value               timestamp
0     0     a 1970-01-01 01:00:42.342
1     1     b 1970-01-01 01:00:42.342
2     2     c 1970-01-01 01:00:42.342
1reaction
Blaizzycommented, Aug 26, 2021

Hi @vivienrobert-wefox

I’m Prince Canuma, a Data Scientist at Neptune.ai

I have looked into your issue and submitted it to the engineering team,

And either I or they will reach out to you once it’s solved!

Kind regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

variable values not showing during debug vs 2019 16.2.4
The problem I had that I was executing the application in release mode, changing it to Debug resolved the issue.
Read more >
VS2017 15.9.4 debugger still not showing variable values on ...
If there is no error message ("Unable to read memory") it reports the following: "Cannot obtain value of the local variable or argument...
Read more >
Using the Python Connector - Snowflake Documentation
This topic provides a series of examples that illustrate how to use the Snowflake Connector to perform standard Snowflake operations such as user...
Read more >
Debugging Numerical Issues in TensorFlow Programs Using ...
An educated guess is that this problem is caused by a numerical ... The “FULL_HEALTH” mode is suitable for debugging bugs involving NaN...
Read more >
Stepping through code and inspecting variables to isolate bugs
When you run your app, the debugger pauses at the first breakpoint it ... p and po print an error because they don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found