-
Notifications
You must be signed in to change notification settings - Fork 7
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
Blocks i3bar #6
Comments
I think this is probably caused by the same underlying issue as #5. Which version of Python are you using? |
I'm using Python 2.7.9. However, when I call weather.py manually, it immediately returns the correct answer, so I guess it's not related. |
Are you on WiFi or otherwise unstable internet? If so, I can be almost certain #5 is the issue here. I've never had any problems with i3-weather in my i3bar for my desktop computer connected via Ethernet, however I ended up disabling it on my laptop since the WiFi networks I connect to often drop and cause #5. |
No, my connection is stable (wired ethernet + good uplink provider). I have to note that those hangs occur always when running with --wrap-i3-status and never when running standalone. Do I have any chance to trace what's going on there? |
Here are the last few lines of an strace ran on the console:
|
I will investigate this later today. It's possibly a Python 2 issue, as I think @calzoneman and I both run it with Python 3. Have you tried running On March 16, 2015 1:38:35 PM EDT, "Timo A. Hummel" [email protected] wrote:
|
No not yet, however, running |
With |
Question: when you say
Does the bar display the weather information after those 20 seconds? |
@kalgynirae I suspect it is a Python 2.x issue, specifically with regard to |
@calzoneman yes, it does display, but delays updating the i3bar. When I run it from the CLI with i3status, I get no output, then many outputs at once. I can confirm that it works with python3 on my machine as well. |
The problem appears to be that |
Thanks for the great support and the fix. Should I test the fix or can I stick with python3? |
It should work with either one. I use Python 3 since that is the default on Arch Linux, but it seems to work with Python 2.7 now. |
Hi,
I probably have found a bug. I have added i3weather to my i3bar as per documentation:
bar {
status_command i3status | ~/bin/weather.py --wrap-i3-status 673711 --unit c
However, this gives the following results:
It seems that weather.py blocks updating the i3bar somehow. When I remove it, my i3bar updates again every second.
The text was updated successfully, but these errors were encountered: