#๐Ÿ”’ Failed to open file: group not found at path ' '

26 messages ยท Page 1 of 1 (latest)

cobalt wave
#

I'm trying to open a zarr file by taking in a path and converting it into a zipstore but I keep getting this error. I know there is data in the zarr file so I'm having trouble figuring this out. VsCode recognizes that the file is located in the project but doesn't want to open it. Any help would be appreciated.

frigid yokeBOT
#

@cobalt wave

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

severe nymph
#

!code - below are instructions for how to post your code as text if it's short instead of a screenshot

frigid yokeBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

severe nymph
#

!paste - or follow the below instructions if it's longer that can fit into a message here on discord

frigid yokeBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

severe nymph
#

also, that doesn't show enough of your code to solve your problem without making a lot of guesses and assumption (which might be totally wrong)

#

also post the error you get as text in the same way

cobalt wave
#

okay.

severe nymph
#

!trace - here is more information on the later

frigid yokeBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

severe nymph
# cobalt wave code and error above

can you comment out your line of code that says

    raise ValueError(f"Failed to open SpectralMaps file: {str(e)}")
```and add a line that only says
```py
    raise
```and rerun your code and post the traceback that you get back after that?
#

that way you should get the original exception and full traceback to debug the problem further

cobalt wave
#

yeah

#

^^

severe nymph
#

still looking at this, but i have never worked with zarr files before, so it's a bit of a learning curve for me

cobalt wave
#

yeah i understand its all good

severe nymph
#

still working on this, but need to keep this thread alive as it will automatically be closed by a bot after an hour without messages in the channel

severe nymph
frigid yokeBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.