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

FileNotFoundError #59

Open
yochananmarqos opened this issue Dec 3, 2018 · 5 comments
Open

FileNotFoundError #59

yochananmarqos opened this issue Dec 3, 2018 · 5 comments

Comments

@yochananmarqos
Copy link

yochananmarqos commented Dec 3, 2018

I installed the AUR package on Manjaro Cinnamon and the GUI will not launch:

$ su -c "netgui"
Traceback (most recent call last):
  File "/usr/share/netgui/main.py", line 559, in <module>
    NetGUI()
  File "/usr/share/netgui/main.py", line 114, in __init__
    self.notifications = Notification()
  File "/usr/share/netgui/Library/notifications.py", line 9, in __init__
    user_prefs = json.load(open(preferences_file))
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/netgui/preferences.json'

All that is in /var/lib/netgui is program.pid.

@codywd
Copy link
Owner

codywd commented Dec 3, 2018

Hey,

Thanks for the bug report. I'll look into it soon. Pretty clear what is happening, but need to look at why.

@manouchk
Copy link

Same problem here with netgui 0.85-1

codywd added a commit that referenced this issue Dec 14, 2022
@codywd
Copy link
Owner

codywd commented Dec 14, 2022

I believe this might be fixed in the new push to the develop branch pushed as part of c275c22, but I don't have an Arch Linux system handy at the moment. I'm working on buying an old laptop I can throw Arch on so that I can get back to testing/development of this (or alternatively/preferably, hoping my a new charger will get my Sager gaming laptop up again, and I can just install Arch on it).

If you want to try pulling the develop code and see if it works, that'd be great. Otherwise, I'll test this code once I can procure/build Arch on a laptop again. If it works, I'll merge and update the AUR.

Basically, it isn't pre-creating a default prefs file. Simple problem, hopefully this simple solutions fixes it.

@yochananmarqos
Copy link
Author

yochananmarqos commented Dec 14, 2022

@codywd Yes, it's fixed in the develop branch.

FYI, I edited the shebang in setup.py to #!/usr/bin/python and used python-setuptools, python2-setuptools was not required.

codywd added a commit that referenced this issue Dec 14, 2022
In regards to #60 and the comment from @yochananmarqos in #59
@codywd
Copy link
Owner

codywd commented Dec 14, 2022

Perfect, any other issues related to the FileNotFound or is it good? I updated setup.py in 35ae570 to reflect the change you made and PKGBUILD in 4d96891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants