Coder Social home page Coder Social logo

Comments (9)

paulosabile-wb avatar paulosabile-wb commented on September 26, 2024

Hi @sammlapp

Good day and thank you for reaching out to us. Happy to help you on this!

The test1 table works on Windows when I tried it on my machine.

While it seems I was able to reproduce the behavior for test2, I am also getting no rows logged on the table. Let me investigate this behavior and I will get back to you for an update.

Best Regards,
Paulo

from wandb.

sammlapp avatar sammlapp commented on September 26, 2024

Interesting, thanks for looking into it. Perhaps @paulpeyret-biophonia has a minimal working example of the issue with logging using " / " on Windows?

from wandb.

paulpeyret-biophonia avatar paulpeyret-biophonia commented on September 26, 2024

Hello,

Note: wandb seems to create temp files and folders that it sends to the wandb server, then it deletes (flush) the temp folder.

I have the same behavior as @paulosabile-wb with your code snippet on my windows machine.

Test1:
I was able to reproduce the error in CNN.train() with this following snippet.

This sneaky bug is only raised when you run log function with " /" in the name (it must be the first log of all logs otherwise it works fine)

import wandb
import pandas as pd

table1 = wandb.Table(dataframe=pd.DataFrame({'a':[1,2,3],'b':[4,5,6]}))
wandb_session=wandb.init(entity='kitzeslab',project="opensoundscape",name='test wandb table')
wandb_session.log({"test1 / nested1": table1})

This is caused in wandb package by the call of os.makedirs() function that remove any space at the end of the folder name before creating it.
You can test it here:

import os
my_filename='./test1 / nested1.table.json'
print(os.path.dirname(my_filename))
os.makedirs(os.path.dirname(my_filename), exist_ok=True)

So no space before "/" in wandb_session.log() input dictionary key shall solve this bug.

from wandb.

paulosabile-wb avatar paulosabile-wb commented on September 26, 2024

Hi @sammlapp Good day! Just checking if you were able to make your test1 table work by following @paulpeyret-biophonia suggestion above?

from wandb.

paulosabile-wb avatar paulosabile-wb commented on September 26, 2024

Hi @sammlapp Since we have not received an update from you, we will now mark this as Solved. Please feel free to reach out again if you need assistance!

Have a great day ahead!

Best Regards,
Paulo

from wandb.

sammlapp avatar sammlapp commented on September 26, 2024

Sorry for the delay - I'm largely off grid for fieldwork. I would consider @paulpeyret-biophonia's suggestion a workaround rather than a solution - it is buggy that " /" causes an exception.

from wandb.

paulosabile-wb avatar paulosabile-wb commented on September 26, 2024

Hi @paulpeyret-biophonia Good day! It seems that I am unable to reproduce errors when following your snippet. Could you please clarify what errors are being thrown when you were testing the bug when logging the nested table in Windows?

Could you also share me your sdk version by running wandb --version?

from wandb.

paulpeyret avatar paulpeyret commented on September 26, 2024

Hi @paulosabile-wb ,

The error is :

File "C:\Users\Username\myproject\.venv\lib\site-packages\wandb\util.py", line 1617, in fsync_open
    with open(path, mode, encoding=encoding) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Username\\AppData\\Local\\Temp\\tmpcatlpygf\\test1 / nested1.table.json'

My config is:
wandb, version 0.13.11
Windows 11

from wandb.

paulosabile-wb avatar paulosabile-wb commented on September 26, 2024

Thank you @paulpeyret . I am not able to reproduce this when using version 0.17.1. Any chance you could try this on the latest version of wandb?

from wandb.

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.