uvemas/ViTables

Cannot open pandas.DataFrame nodes

Opened this issue · 9 comments

It seems that all work from #71 is not working on ViTable-3.0.2, pandas do not work at all.
Is this expected?

Something that confirma my finding is that this code would raise an exception due to log object misuse, it's not a callable but an object
(as a side note, the check would fail on production, if assertions are disabled - a regular if is preferable).

So it seems this code path has not run ever.

Not expected at all. I'll try to have a look soon but it won't be easy (covid-19 lockdown + children is not the best for working on code).

Hi, yes assertions should not be in the code, that's right. But I'm not sure what the problem is. I've just installed vitables-3.0.2 from pypi in a fresh virtual environment, and created some trivial dataframes. Everything works fine. I've also opened the dataframes via my local repo without problems.

Very strange!
Can you post a screenshot of the UI on a dataframe node?

This is what i'm seeing:
image

  • Could there be some other precondition for dataframe code to enact, that i have forgotten about?
  • How is that even setting breakpoints don't seem to kick?
  • How is that mistaken log-statements never break - could it be that their conditions are never true?

Uff! No idea about what happens. I'll do some tests with breakpoints and logs and tell you my findings.

Would you mind installing it in a clean venv?

In a clean venv I can set breakpoints and they work. Inserting a malformed log after line 45 raise a TypeError (Logger object is not callable) as expected. I'm not sure about the conditions of the log-statements. Maybe you are right and they are never true.

Still have no idea on what your problem can be :-(