ValdikSS / blockcheck

Russian ISP blocking type checker NOTE: NOT WORKING CURRENTLY. ВНИМАНИЕ: НЕ РАБОТАЕТ НА ТЕКУЩИЙ МОМЕНТ
MIT License
1.37k stars 143 forks source link

Blockcheck does not show anything #5

Closed ZyX-I closed 10 years ago

ZyX-I commented 10 years ago

After running ./blockcheck.py in a newly cloned repository (also when installing with /usr/lib/python-exec/python3.2/pip install --egg git+https://github.com/ValdikSS/blockcheck (note --egg) with dependencies from #3) it does not show anything: just blank window:

Blank blockcheck window

. Default python 3 version is 3.2.5-r3, using python-3.3.3 also shows the same behavior. To fix the problem the following patch is sufficient:

diff --git a/blockcheck.py b/blockcheck.py
index f9019ee..1af4667 100755
--- a/blockcheck.py
+++ b/blockcheck.py
@@ -3,6 +3,7 @@
 import urllib.request
 import dns.resolver
 try:
+    import ttttttt
     import tkinter as tk
     import threading
     tkusable = True

(obviously I only trigger except ImportError to set tkusable to False).

ValdikSS commented 10 years ago

This is known issue, will be fixed in some hours.

ValdikSS commented 10 years ago

Please try this commit.

ZyX-I commented 10 years ago

Same. When I press <C-c> I get the following stack trace:

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
^CException in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.2/threading.py", line 740, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.2/threading.py", line 693, in run
    self._target(*self._args, **self._kwargs)
  File "./blockcheck.py", line 145, in main
    dns = test_dns()
  File "./blockcheck.py", line 61, in test_dns
    print("[O] Тестируем DNS")
  File "./blockcheck.py", line 21, in print
    text.after_idle(print_tk)
  File "/usr/lib64/python3.2/tkinter/__init__.py", line 534, in after_idle
    return self.after('idle', func, *args)
  File "/usr/lib64/python3.2/tkinter/__init__.py", line 527, in after
    return self.tk.call('after', ms, name)
_tkinter.TclError: out of stack space (infinite loop?)

Traceback (most recent call last):
  File "./blockcheck.py", line 195, in <module>
    root.mainloop()
  File "/usr/lib64/python3.2/tkinter/__init__.py", line 1057, in mainloop
    self.tk.mainloop(n)
KeyboardInterrupt

. It is always the same.

ValdikSS commented 10 years ago

Please test now.

ZyX-I commented 10 years ago

It is OK now.