MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil error - Cannot read file / Permission denied (https://www.mobileread.com/forums/showthread.php?t=69487)

dgraygrayco 01-12-2010 05:45 PM

Sigil error - Cannot read file / Permission denied
 
When I try to open certain (non-DRM) ePub files that I have downloaded, Sigil gives me the following error:

Cannot read file
/Users/[username]/.Sigil/scratchpad/.[alphanumeric string]/META-INF/container.xml:
Permission denied.

If I open the same ePub in Stanza and just do a Save As as another ePub file, then open that document in Sigil, I do not get the error.

Anyone have experience with this?

Sigil 0.1.8

MacOS X 10.5.8

Valloric 01-12-2010 07:13 PM

Quote:

Originally Posted by dgraygrayco (Post 737876)
If I open the same ePub in Stanza and just do a Save As as another ePub file, then open that document in Sigil, I do not get the error.

Than that is clearly a problem with the original epub file. After you saved it to a different file, Sigil can open it.

The original epub probably has some weird permissions set on the files inside.

dgraygrayco 01-13-2010 12:38 PM

Quote:

Originally Posted by Valloric (Post 738007)
Than that is clearly a problem with the original epub file. After you saved it to a different file, Sigil can open it.

The original epub probably has some weird permissions set on the files inside.

Makes sense. But why do I not have a problem opening those epub files in other apps, such as PDFXML Inspector?

dynabook 01-13-2010 04:17 PM

I have seen something like this. Valloric, do you require your content folder to be named "OEBPS" or can content.xml point to a differently named folder?
--MH

Valloric 01-13-2010 06:15 PM

Quote:

Originally Posted by dgraygrayco (Post 738868)
Makes sense. But why do I not have a problem opening those epub files in other apps, such as PDFXML Inspector?

I couldn't tell you. Sigil extracts the epub files to a path similar to the one you listed, and then opens the extracted files. The ZipArchive library that Sigil uses for extraction respects the file permissions set on the files in the epub archive. Maybe the other applications don't, I don't know.

But where did you get those epub files and do other epub files work correctly on your system? Try opening this one.

Quote:

Originally Posted by dynabook (Post 739234)
I have seen something like this. Valloric, do you require your content folder to be named "OEBPS" or can content.xml point to a differently named folder?
--MH

There is no requirement for the OEBPS folder in the epubs that Sigil can open. Sigil follows the epub specification: it reads content.xml, finds the OPF and loads the content files listed in its manifest.


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

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