Open fang2415 opened 1 year ago
Not sure... I'd try a pip uninstall streamglob
and then re-run pip install .
Hey glad to see the repo is still in action! (Especially now that https://github.com/kmac/mlbv is on hiatus.)
Unfortunately uninstalling and reinstalling (at 3e63312ef9) produces the same result. I did get a deprecation notice from pip saying that
streamglob is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed
Installing wheel
and re-uninstalling-and-installing mlbstreamer removed the deprecation notice but produced the same traceback when streamglob is run.
I'm a little surprised that nobody else is running into a similar problem since I'm seeing it on two different machines (although admittedly they're configured similarly). Is there any info about my setup that might help? Or recommendations of where to look to debug further?
I was also having this issue.
I worked around it by commenting out lines 20 and 21 from utils.py:
I worked around it by commenting out lines 20 and 21 from utils.py:
Ah, terrific, that along with an update of my config file did the trick!
@tonycpsu, would you consider a PR for this fix, or would it break something else?
I was also having this issue.
I worked around it by commenting out lines 20 and 21 from utils.py:
Having the same issue. I commented these two lines, but the same error still shows up, not sure what i'm doing wrong. Any suggestions?
I worked around it by commenting out lines 20 and 21 from utils.py:
Ah, terrific, that along with an update of my config file did the trick!
@tonycpsu, would you consider a PR for this fix, or would it break something else?
Were the updates to your config file related to this issue?
Were the updates to your config file related to this issue?
No, I think it was just out of date. IIRC I commented out those two lines and did pip install .
, from which point I didn't see the FileNotFoundError
again. But then I think on the first run streamglob crashed because of a missing dependency; then after installing that it crashed due to an out-of-date sqlite DB that it had to rebuild; and after that there was a missing entry in the config file without which I got a Python error about trying to compare a Tree with an int. Reinstalling the sample config file as described in the README got everything up and running.
It seems strange that the same error is still showing up for you... I guess if I were you I'd double-check that you're on the most recent update (3e63312ef9605d2ebb2e9f303c7aac8d83bad750), then do @dyep49's fix again, then retry @tonycpsu's suggestion to reinstall using pip uninstall streamglob
and then pip install .
. Then if it's still giving you the FileNotFoundError
, do what I probably should have done in the first place and run grep -r css
to see if there's anywhere else in the code that you could comment out to stop it trying to get at that non-existent css file...
See if pulling the latest main
branch fixes this. Not really sure what else to do since I can't reproduce locally.
Working for me at 09301bff87, many thanks @tonycpsu!
Out of curiosity, do you actually have a file at streamglob/resources/css
? Because I clearly don't, and I don't see it here either, so I'm curious why you're not seeing the same error as I was. Maybe the file fell out of version control somehow?
Anyway, if that makes you nervous then let me know if I can help debug further. But the code with the new repair seems to be working for me.
Welp that'd do it. Yeah it's there now.
Aha! The puzzle is solved! All working for me at de8c50cb3.
I'm still getting a similar error (and I'm sure it's something dumb I'm doing or not doing
`Traceback (most recent call last):
File "/usr/local/bin/streamglob", line 5, in
File "/usr/local/lib/python3.9/dist-packages/streamglob/main.py", line 45, in
File "/usr/local/lib/python3.9/dist-packages/streamglob/state.py", line 10, in
File "/usr/local/lib/python3.9/dist-packages/streamglob/config.py", line 22, in
File "/usr/local/lib/python3.9/dist-packages/streamglob/utils.py", line 27, in
File "/usr/lib/python3.9/contextlib.py", line 117, in enter return next(self.gen)
File "/usr/lib/python3.9/importlib/resources.py", line 175, in _path_from_reader opener_reader = reader.open_resource(norm_resource)
File "
I tried uninstalling as well as starting over to make sure I was getting the latest main branch. Any nudging in the right direction would be greatly appreciated
But then I think on the first run streamglob crashed because of a missing dependency; then after installing that it crashed due to an out-of-date sqlite DB that it had to rebuild; and after that there was a missing entry in the config file without which I got a Python error about trying to compare a Tree with an int. Reinstalling the sample config file as described in the README got everything up and running.
I think I'm following along the same path you did @fang2415 - i had a missing dependency (MagickWand lib) and now i'm getting an sqlite db error. Can you give some additional details on the "out-of-date sqlite db it had to rebuild"? What did you have to do to rebuild the db?
TIA
I think I'm following along the same path you did @fang2415 - i had a missing dependency (MagickWand lib) and now i'm getting an sqlite db error. Can you give some additional details on the "out-of-date sqlite db it had to rebuild"? What did you have to do to rebuild the db?
So I think that one was solved by just running streamglob
twice -- the first time it crashed with the db error, the second time it looked like it moved the bad db to a backup and started up a new one. I think if that hadn't worked, my next step would have been to manually move that db file or possibly all the old stuff in the config directory (which for me is at ~/.config/streamglob
) in order to clear all the caches and session info and whatever else is in there that might be preserving some kind of bad state. If you move config.yaml
you'll have to set it up again using the instructions in the README (which is what sorted out my last hitch), but I think the rest of the stuff in that config directory should get set up automatically on first run?
And if none of that works then maybe @dyep49's solution will keep things running so you can at least watch some baseball while you continue to debug?
Not sure whether this repo is still alive, but: I'm trying to bring streamglob up to date and am getting this traceback, on several different devices, after updating to 674f3ed0c2, running
pip install -U .
and thenstreamglob
:Anybody know how to proceed here?