Giter VIP home page Giter VIP logo

Comments (4)

mbsantiago avatar mbsantiago commented on May 30, 2024 2

Hey @kaede-kmr!

Thanks for giving Whombat a try!

Apologies for the minimal error message you encountered. Let me explain why this occurred: Whombat is designed to access files from a common directory, which defaults to your home directory. This is a security measure, particularly useful if Whombat is hosted on a shared server, ensuring the app cannot access sensitive files. However, it is indeed possible to customize this setting. Here's how to do it:

  1. Locate the Whombat files in the Application Data Folder. On Windows, this directory is typically found at C:\Users\<username>\AppData\Local\whombat. The AppData folder is usually hidden, but you can access it through the Windows Search or by enabling hidden folders in your Settings.
  2. Once you've found the Whombat data directory, look for a file named settings.json. You'll need to edit this file manually. Inside settings.json, you'll find a section resembling "audio_dir":"<your home>". Change the value to your desired directory (e.g., the D drive). Ensure to enclose the path in quotes to prevent the app from reverting to the original settings.

Any datasets you've previously created may become broken after this change, as Whombat relies on the audio_dir path to locate recordings. Also, in rare circumstances, the settings may revert to their original state. If Whombat fails to find the registered recordings, double-check the audio_dir path using these steps.

Many thanks for the issue! I'll ensure these instructions are included in the next version of our documentation and added to the FAQ for easy reference. Additionally, I'll work on providing more informative error messages in such situations in future releases.

Hope this helps,
Santiago

from whombat.

mbsantiago avatar mbsantiago commented on May 30, 2024 2

Hey Robin,

Thanks for your kind words! 😊

Yeah, supporting datasets across different disks in Whombat would be great, and it's a common scenario. Unfortunately, at the moment, Whombat doesn't directly support this feature.

However, there's a workaround, although it's a bit impractical. Here's how you can set it up:

  1. Start by installing Whombat via pip: pip install whombat.
  2. After installation, you'll need to run Whombat through the terminal using the command WHOMBAT_DATA_DIR=<path_to_instance1> python -m whombat. This command directs Whombat to store all data and settings in the specified directory, rather than the default location. You'll need to use the same command every time to ensure Whombat reads from that location.
  3. You can adjust the audio_dir in the settings file created in this directory to point to your first drive.
  4. Repeat steps 2 and 3 for another directory, adjusting the settings accordingly for the other drive.

While changing how Whombat handles file paths to support this scenario would be an ideal solution, it might require significant changes to the codebase and may take some time to implement. But I'll add it to the TODO list.

Anyways, thanks again for giving Whombat a try, and let me know if you have further questions.

Santiago

from whombat.

mbsantiago avatar mbsantiago commented on May 30, 2024

TODO

  • Include these instructions in the documentation
  • Provide a better error message when user tries to create a dataset outside the audio_dir

from whombat.

robinsandfort avatar robinsandfort commented on May 30, 2024

Hi Santiago,
thanks for your great work with Whombat!
I have the same problem but different projects are also stored on different
hard drives. I think it is not practical to change the autodir like that.
Any idea on how to solve this?
Greetings from Austria,
Robin

from whombat.

Related Issues (10)

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.