Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading files from multiple drives #136

Open
mariustk opened this issue Feb 12, 2025 · 0 comments
Open

Loading files from multiple drives #136

mariustk opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working gui Issue is related to GUI

Comments

@mariustk
Copy link

Describe the bug
When loading file from two separate network drives there is an issue with path resolving

To Reproduce
Steps to reproduce the behavior:

  1. Load a pickle file from one drive (probably occurring with all formats)
  2. Load a pickle file from another drive

Expected behavior
Expect to be able to load files located on multiple network drives

Screenshots

Traceback (most recent call last):
  File "C:\Interpreters\Instruct_with_sifio\Lib\site-packages\qats\app\gui.py", line 1421, in update_model
    names = self.db.list(names="*", relative=True, display=False)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Interpreters\Instruct_with_sifio\Lib\site-packages\qats\tsdb.py", line 1265, in list
    match = [self._path_relpath(_, common) for _ in match]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Interpreters\Instruct_with_sifio\Lib\site-packages\qats\tsdb.py", line 1265, in <listcomp>
    match = [self._path_relpath(_, common) for _ in match]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Interpreters\Instruct_with_sifio\Lib\site-packages\qats\tsdb.py", line 365, in _path_relpath
    return os.path.relpath(key, start)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 766, in relpath
ValueError: path is on mount 'Y:', start on mount 'C:'
@eneelo eneelo added bug Something isn't working gui Issue is related to GUI labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui Issue is related to GUI
Projects
None yet
Development

No branches or pull requests

2 participants