ComicTagger Talk
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Cannot Open Files

2 posters

Go down

Cannot Open Files Empty Cannot Open Files

Post  richardjones Wed Jun 25, 2014 10:53 am

Hello,

First time using ComicTagger and I can't seem to get any files to open. Relevant Info:

1. ComicTagger 1.1.15-beta (Comic Vine API tested and working)
2. Manjaro (Openbox)
3. GUI (Started from terminal to troubleshoot)
4. Running from extracted Python Package .zip

Upon opening ComicTagger from terminal, I get:

Code:
python2 comictagger.py

(python2:27840): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(python2:27840): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

When I try to open a file, I get the following output:

Code:
Traceback (most recent call last):
  File "/home/username/comictagger-1.1.15-beta/comictaggerlib/taggerwindow.py", line 946, in selectFile
    self.fileSelectionList.addPathList( fileList )
  File "/home/username/comictagger-1.1.15-beta/comictaggerlib/fileselectionlist.py", line 196, in addPathList
    row = self.addPathItem( f )
  File "/home/username/comictagger-1.1.15-beta/comictaggerlib/fileselectionlist.py", line 306, in addPathItem
    self.updateRow( row )
  File "/home/username/comictagger-1.1.15-beta/comictaggerlib/fileselectionlist.py", line 311, in updateRow
    fi = self.twList.item( row, FileSelectionList.dataColNum ).data( Qt.UserRole ).toPyObject()
AttributeError: 'NoneType' object has no attribute 'data'

At this point, the GUI shows an "Adding Files" progress bar displaying the path to the file but does not progress past 0%.

I've also tried installing ComicTagger but ran into the same issue. I'm sure I'm just missing something. Any help would be most appreciated. Thanks!


Last edited by richardjones on Thu Jun 26, 2014 6:05 pm; edited 1 time in total

richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  ComicTagger Thu Jun 26, 2014 4:40 pm

Hmmm, not sure what would be happening here.  I've never used Manjaro, let alone tested on it. I wonder if there is some subtle version difference in Python, Qt, or PyQt that is exacerbating this problem.  Can you find the versions?

Are you adding a single file or a bunch.  Both should work, I'm just trying to narrow it down.  Maybe try it with various known good comic files, one at a time.

Some other things to verify that CT "likes" the file:  run comictagger.py with -p and single file

Code:
comictagger.py -p yourcomic.cbz

This is command line mode, and should verify that is recognizes the file as a comic, at minimum.

Also, if you're comfortable with a little debugging, can you edit fileselectionlist.py, and add a line:

Code:
        print "row=",row
right before line 311?

I haven't been in this part of the code in a long while!
ComicTagger
ComicTagger
Admin

Posts : 209
Join date : 2012-12-02

https://comictagger.forumotion.com

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  richardjones Thu Jun 26, 2014 6:24 pm

ComicTagger wrote:Hmmm, not sure what would be happening here.  I've never used Manjaro, let alone tested on it. I wonder if there is some subtle version difference in Python, Qt, or PyQt that is exacerbating this problem.  Can you find the versions?

Are you adding a single file or a bunch.  Both should work, I'm just trying to narrow it down.  Maybe try it with various known good comic files, one at a time.

Some other things to verify that CT "likes" the file:  run comictagger.py with -p and single file

Code:
comictagger.py -p yourcomic.cbz

This is command line mode, and should verify that is recognizes the file as a comic, at minimum.

Also, if you're comfortable with a little debugging, can you edit fileselectionlist.py, and add a line:

Code:
        print "row=",row
right before line 311?

I haven't been in this part of the code in a long while!

Hi! Thanks for helping me troubleshoot this. Manjaro is basically like Arch Linux if you've ever used that.

I've tried adding both a single file and adding a folder with multiple files and got the same result.

Here's the result of running from the command line on a single .cbz file:


Code:
python2 comictagger.py -p 2.cbz
ZIP archive    ( 48 pages)  tags:[ none ]

and a single .cbr file:

Code:
python2 comictagger.py -p 1.cbr
RAR archive    ( 36 pages)  tags:[ none ]

I'd be happy to try to help with the debugging. I added a line between 310 and 311 in fileselectionlist.py that reads:

Code:
print "row=",row

Is that correct? What should I try after doing that?   Smile 

Thanks again for the help.

richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  richardjones Thu Jun 26, 2014 6:27 pm

Also, if I run 'python comictagger.py' rather than 'python2 comictagger.py', I get:

Code:
Traceback (most recent call last):
  File "comictagger.py", line 2, in <module>
    from comictaggerlib.main import ctmain
  File "/home/username/comictagger-1.1.15-beta/comictaggerlib/main.py", line 54
    print "Key set"
                  ^
SyntaxError: invalid syntax

Subsequently, the GUI does not launch. Not sure if that's relevant but I though I should mention it.

richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  richardjones Thu Jun 26, 2014 7:59 pm

Forgot to add Arch package info and versions for Python, QT, and and PyQT:

Python2: 2.7.7.1
QT4: 4.8.6-1
Python2-pyqt4: 4.11-1


richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  ComicTagger Thu Jul 03, 2014 2:36 pm

I'm back Sorry for the delay.

I'm stumped. There's nothing obvious about the versions that would be causing issues. But I've never used Arch or Manjaro, so I should probably load it up on a new VM to test it out. Can't say when I will have time to do that though.

That "print" line I had you add will show a value on the terminal when you add a comic. It may show 0 or None. Just curious what comes out. (BTW, that line needs to be tabbed the same as line after it)
ComicTagger
ComicTagger
Admin

Posts : 209
Join date : 2012-12-02

https://comictagger.forumotion.com

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  richardjones Sat Jul 05, 2014 9:19 am

ComicTagger wrote:I'm back Sorry for the delay.

I'm stumped.  There's nothing obvious about the versions that would be causing issues.  But I've never used Arch or Manjaro, so I should probably load it up on a new VM to test it out.  Can't say when I will have time to do that though.

That "print"  line I had you add will show a value on the terminal when you add a comic.  It may show 0 or None.  Just curious what comes out.  (BTW, that line needs to be tabbed the same as line after it)

Should it look like this (first line being 310 and the last 312)?


Code:
def updateRow( self, row ):
      print "row=",row
      fi = self.twList.item( row, FileSelectionList.dataColNum ).data( Qt.UserRole ).toPyObject()

I'm guessing that I'm doing something incorrect Smile

richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  ComicTagger Sun Jul 06, 2014 1:26 pm

I managed to install Manjaro, and found the issue.
You can replace "fileselectionlist.py" file with this one:
https://comictagger.googlecode.com/svn/trunk/comictaggerlib/fileselectionlist.py

This should solve your problem!
ComicTagger
ComicTagger
Admin

Posts : 209
Join date : 2012-12-02

https://comictagger.forumotion.com

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  richardjones Mon Jul 07, 2014 9:25 am

That did the trick! Thank you SO much!

richardjones

Posts : 7
Join date : 2014-06-25

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  ComicTagger Mon Jul 07, 2014 3:24 pm

Cool! When I put out the next release, that fix will be in it.
ComicTagger
ComicTagger
Admin

Posts : 209
Join date : 2012-12-02

https://comictagger.forumotion.com

Back to top Go down

Cannot Open Files Empty Re: Cannot Open Files

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum