Griffith - media collection manager
May 23, 2012, 07:04:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New mailing lists,
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: "Errors Occurred See the logfile ..." message closing griffith on Windows  (Read 1382 times)
flaviano
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: December 17, 2009, 12:41:44 AM »

Hello, first of all thank you for this great software, I use it on both Windows and Linux, but on Windows py2exe adds that annoying message box every time you close griffith, everything is working fine in the program the logfile most of the time has only a GtkWarning which is really nothing to worry about.
I have found a way to avoid this and I think you should adopt something similar because people think your program has a lot of bugs if every time they close it that message box pops up, which is not really the case. I have added a file module called no_log.py with the following code:
Code:
import sys
if hasattr(sys,"frozen"):  # true only if we are running as a py2exe app
    class Blackhole(object):
        def write(self,text):
            pass
        def flush(self):
            pass
    sys.stdout = Blackhole()
    sys.stderr = Blackhole()
    del Blackhole
del sys
then in the file griffith I have added at the beginning
Code:
import no_log

I know that you want logfiles to understand what is wrong with your program so your solution should be more advanced, like being able to activate logging again with a command line switch or a configuration, but believe me that  message box is really ugly and for no good reason because your program runs just fine.

Thank you ciao.


Logged
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #1 on: December 17, 2009, 12:04:45 PM »

Thanks for your suggestion. I implemented a little different way a while ago. It is already
checked in to the repository and should be released with the next version of griffith (0.11 I think)
http://svn.berlios.de/svnroot/repos/griffith/trunk/lib/gdebug.py
My solution didn't throw away the log. It redirects the output to a file "griffith.log" in the application data
directory of griffith (before that changed it was written to the installation directory which fails on
Vista and Windows 7 because of UAC). I added a debug mode on windows platforms with an own
dialog to show the messages, too. All that stuff is added to the installer which creates some
extra links in the start menu. Every user should now easily find the "Debug Mode" of griffith if necessary
and the log file.
Logged
flaviano
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: December 17, 2009, 05:17:40 PM »

Fantastic, I look forward to downloading the new version.

In the meanwhile I have made a patched version of griffith.exe file which continues to perform normal logging but just dosn't pop up the message box when you close griffith, I would like to make it available to people having my same problem, it's just a matter of substituting the original .exe in the installation folder with the patched one which has the same size (151 kb), but I don't want to break any copyright or bypass the griffith's developers approval, maybe I can send it to someone for a test and then ,if you authorize me, I will post a link for the download.
Logged
Simeon
Full Member
***
Offline Offline

Posts: 175


View Profile
« Reply #3 on: December 17, 2009, 07:43:40 PM »

Every user should now easily find the "Debug Mode" of griffith if necessary
and the log file.
I never had problems with Griffith myself, but that sounds cool and is a handy feature for those who do.
Logged

Science is the belief in the ignorance of the experts - Richard P. Feynman
skelet
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #4 on: December 22, 2009, 01:54:58 PM »

I have the same problems. The program does not download pictures  (Posters from  moviemeter.nl). Other things works oké (plot etc). Getting picture from this sides or other side's is a problem.  Can someone give me a clue how i can repare this. I also tried first downloading from IMDB but the problem occus with every  film I tried.  With the older version everything was no problem. But I could not download from moviemeter.nl.  I am not an expert but i can replace file's without a problem. Here is my griffith.exe.log data.



WARNING:Griffith:file not found: None)
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 62f81d580b9d3df8b8673f38d4cf4e2d
WARNING:Griffith:poster not available: e5c78989a1d2ce9e05740b48246c13b8
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 93f8e09238828f781e3320fb3ae6f75f
WARNING:Griffith:poster not available: 9cc6b614c834c64d8d68ebb93b253a6a
WARNING:Griffith:poster not available: 6976c91aa24e8674eac15cc459dda8b1
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:poster not available: 64932ecc7b55d2854e3a5e6a6585b9dd
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
Traceback (most recent call last):
  File "griffith", line 332, in update_movie
  File "C:\Program Files\Griffith\lib\add.py", line 118, in update_movie
    handler = self.Image.set_from_file(new_image_path)
TypeError: GtkImage.set_from_file() argument 1 must be string or None, not bool
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:cannot read poster data
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d
WARNING:Griffith:poster not available: 17ae2f4684bb7f71956b43c55b74655d


Please help me.
Logged
mike
Global Moderator
Hero Member
*****
Offline Offline

Posts: 996


View Profile WWW
« Reply #5 on: December 22, 2009, 08:33:00 PM »

A fix for the error is committed to the source code repository with revision 1296.
The fix will be released with the upcoming version 0.11.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!