MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Error I cant really explain with out a picture (https://www.mobileread.com/forums/showthread.php?t=74831)

rcuadro 02-23-2010 12:28 PM

Error I cant really explain with out a picture
 
2 Attachment(s)
I am trying to really use Sigil for the first time to put together study material. I used http://www.web2fb2.net/ to take pages from wikipedia and convert them to ePub but I cannot open them in Sigil.
It complains about permission being denied...
I was able to open the ePub with Calibre, B&N reader, Adobe DE...

This is on OSX Snow Lepard and Sigil 0.1.9
I attached the ePub file in question...

https://www.mobileread.com/forums/att...1&d=1266942255

Wetdogeared 02-23-2010 02:09 PM

I'm able to open your file using Windows Vista.

Sigil Version 0.1.9
Loaded QT 4.6.1

Valloric 02-23-2010 02:57 PM

I too can open this file just fine on Win7 x64. Create a new issue on the tracker, attach the epub file and a link to this thread and I'll take a look at it the next time I'm near a Mac.

rcuadro 02-23-2010 03:46 PM

Issue 256 opened :)

pdurrant 02-23-2010 04:26 PM

Quote:

Originally Posted by rcuadro (Post 802391)
It complains about permission being denied...
I was able to open the ePub with Calibre, B&N reader, Adobe DE...

I can reproduce the problem on Mac OS X 10.5.8 (Leopard), Sigil 1.9.

However, it seems to be a problem with the zip file - unzipping and rezipping allows the book to be opened in Sigil.

Perhaps the zip contains file permissions that Sigil's unzip is honouring?

gwynevans 02-23-2010 05:33 PM

Quote:

Originally Posted by pdurrant (Post 802854)
Perhaps the zip contains file permissions that Sigil's unzip is honouring?

Probably - zipinfo gives the following

Code:

$ zipinfo -l electric\ motor.epub
Archive:  electric motor.epub  425882 bytes  22 files
?---------  2.0 unx      20 b-      20 stor 23-Feb-10 19:00 mimetype
?---------  2.0 unx      234 b-      159 defN 23-Feb-10 19:00 META-INF/container.xml
-rw-r--r--  2.0 unx  133088 b-    86365 defN 27-Feb-09 20:20 OEBPS/fonts/LiberationSans-Regular.ttf
-rw-r--r--  2.0 unx  133000 b-    82989 defN 27-Feb-09 20:20 OEBPS/fonts/LiberationSans-Bold.ttf
-rw-r--r--  2.0 unx  155304 b-    94862 defN 27-Feb-09 20:20 OEBPS/fonts/LiberationSans-Italic.ttf
-rw-r--r--  2.0 unx  128828 b-    79843 defN 27-Feb-09 20:20 OEBPS/fonts/LiberationSans-BoldItalic.ttf
?---------  2.0 unx      640 b-      212 defN 23-Feb-10 19:00 OEBPS/style.css
?---------  2.0 unx    67808 b-    23272 defN 23-Feb-10 19:00 OEBPS/content1.xhtml
?---------  2.0 unx    2270 b-    2275 defN 23-Feb-10 19:00 OEBPS/i1bc6e8a846
?---------  2.0 unx    12762 b-    12722 defN 23-Feb-10 19:00 OEBPS/iff72f7a1dc
?---------  2.0 unx      204 b-      197 defN 23-Feb-10 19:00 OEBPS/idcc729c05f
?---------  2.0 unx    8733 b-    8717 defN 23-Feb-10 19:00 OEBPS/i89bf13d36f
?---------  2.0 unx    7536 b-    7506 defN 23-Feb-10 19:00 OEBPS/ia25cd86f6e
?---------  2.0 unx    12449 b-    12021 defN 23-Feb-10 19:00 OEBPS/id89f56d748
?---------  2.0 unx      515 b-      520 defN 23-Feb-10 19:00 OEBPS/ib71d76fcdb
?---------  2.0 unx    2424 b-    2392 defN 23-Feb-10 19:00 OEBPS/i402e6c4dc3
?---------  2.0 unx    2635 b-    2563 defN 23-Feb-10 19:00 OEBPS/i3224961837
?---------  2.0 unx    1674 b-    1679 defN 23-Feb-10 19:00 OEBPS/i55bff18e33
?---------  2.0 unx    1593 b-    1598 defN 23-Feb-10 19:00 OEBPS/i4f743fef0c
?---------  2.0 unx    1927 b-    1932 defN 23-Feb-10 19:00 OEBPS/icd0ab6b850
?---------  2.0 unx      890 b-      895 defN 23-Feb-10 19:00 OEBPS/ibde4674b00
?---------  2.0 unx    1580 b-      541 defN 23-Feb-10 19:00 OEBPS/content.opf
22 files, 676114 bytes uncompressed, 423280 bytes compressed:  37.4%

where the "?---------" is indicating file permissions of 000000 octal, which does mean "No Access".

Valloric 02-23-2010 05:45 PM

Quote:

Originally Posted by pdurrant (Post 802854)
However, it seems to be a problem with the zip file - unzipping and rezipping allows the book to be opened in Sigil.

Perhaps the zip contains file permissions that Sigil's unzip is honouring?

Quote:

Originally Posted by gwynevans (Post 802959)
Probably - zipinfo gives the following

<snip>

where the "?---------" is indicating file permissions of 000000 octal, which does mean "No Access".

That's exactly what I said in my comment on the issue on the tracker.

ZipArchive, the library Sigil uses for ZIP operations is good; perhaps too good. Where other ZIP tools fail to preserve the permissions of the files stored in the ZIP file, ZipArchive doesn't. I should take a look into making it "dumber".


All times are GMT -4. The time now is 06:38 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.