-
Notifications
You must be signed in to change notification settings - Fork 23
List is incomplete in GUI #101
Comments
Thank you for opening this issue. Could you please edit your post and provide the necessary information as per Issue: Bug report template ? Also, please attach some screenshots if possible. |
Thank you for the update @jagadeesh-sudhakaraiah Yes indeed it is a strange behavior and I was also able to replicate this. I'll look closer into this and see if I find what causes this unexpected behavior. |
Oh cool. Thanks for looking into it. Please let me know if any additional information is required. |
I think I know what might be causing this. Upon executing Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/linux_gui/presenters/dashboard_presenter.py", line 384, in populate_server_list
flag = GdkPixbuf.Pixbuf.new_from_file_at_size(self.dashboard_service.get_flag_path(country), 15,15)
gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/usr/local/lib/python3.8/dist-packages/linux_gui/resources/img/flags/small/Peru.png”: No such file or directory (4) and the list of countries is incomplete. As a temporary workaround, I did sudo cp /usr/local/lib/python3.8/dist-packages/linux_gui/resources/img/flags/small/Unknown.png \
/usr/local/lib/python3.8/dist-packages/linux_gui/resources/img/flags/small/Peru.png and it's now displaying all countries :) Hope that helps! |
There are 200 jpg images for flags under linux_gui/resources/img/flags/large, but there are only 81 png images for flags under linux_gui/resources/img/flags/small, which is very interesting. Another interesting part is about the file name: small images is using country name, but large images is using country code. |
Also found another inconsistency: there are 250 countries in linux-cli's country_codes.py, but there are only 200 jpg images for flags under linux_gui/resources/img/flags/large. |
Upon executing your workaround, I got this: |
@Papigoe most probably your Python version is different than example given. Type Or go to that directory in one command and copy file in another:
|
I don't know how to do that, so I'll either just stick with the countries I can see, or just use CLI version. For the record, I'm using Python 3.8.5. Thank you for your response!
[keithcrestcolour.jpg][Keith Roebuck.png]
𝓢𝓬𝓸𝓽𝓽 𝓔𝓵𝓵𝓲𝓼 𝓣𝓪𝔂𝓵𝓸𝓻-𝓗𝓪𝓻𝓿𝓮𝔂
Sent with [ProtonMail](https://protonmail.com) Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Sunday, October 25th, 2020 at 4:05 AM, Atanas Minev ***@***.***> wrote:
***@***.***(https://github.com/Papigoe) most probably your Python version is different than example given. Type python3 --version. You'll get something like Python 3.6.9. Replace both python3.8 occurrences in the cp paths with python3.6 (according to your actual version major.minor)
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#101 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ALDLGBWCASRQES6EDWMITJDSMPL6HANCNFSM4QLFO4KQ).
|
You could also try something like sudo find /usr/local/lib -name linux_gui -type d You should get the first part of the path. |
Ditto. I am only seeing A through N listed in the GUI. The last available country is Norway. Using the terminal is the only way to access O through Z. |
If you have image magick, then sudo convert /usr/lib/python3.9/site-packages/linux_gui/resources/img/flags/large/pe.jpg -resize 720x720 /usr/lib/python3.9/site-packages/linux_gui/resources/img/flags/small/Peru.png fixes it |
Worked a treat! Thanks to all of you for your help. |
This fixed it for me as well. so is the issue something that should be reported upstream to the python project? Is the problem because the python project didn't provide the small country flag for peru? |
@cbdejavu this is an issue with a missing flag. This project will no longer receive updates as the official GUI for the official CLI is currently being worked on. |
On the first install everything was fine. After few days, countries list seems incomplete. I can connect to the countries that are not listed on the GUI via CLI. List doesn't extended beyond Norway. Everything else works great. Please let me know if additional details are required.
OS: Ubuntu 20.04
Kernel: 5.4.0-42-generic
pip version: 20.0.2
python3 version: 3.8.2
The text was updated successfully, but these errors were encountered: