Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no item named 'META-INF\\\\container.xml #162

Closed
tgeik opened this issue Jul 24, 2018 · 19 comments
Closed

There is no item named 'META-INF\\\\container.xml #162

tgeik opened this issue Jul 24, 2018 · 19 comments

Comments

@tgeik
Copy link

tgeik commented Jul 24, 2018

Python 3.5.1 32bit.
Cannot read epub files with epub.read_epub. Even if the epub is created using the example in documentations, I still get: "There is no item named 'META-INF\\container.xml" in the archive"

@aerkalov
Copy link
Owner

Hi! Can you maybe provide the EPUB file so I could test it? Are you maybe using Windows?

@tgeik
Copy link
Author

tgeik commented Jul 24, 2018

Yes, I'm using windows.
Sample.zip

@aerkalov
Copy link
Owner

Yeah, the problem is that ebooklib uses certain function calls like os.path.normpath to normalise the path but on the Windows machine it also changes directory separator used when working with ZipFile. ZipFile expects it to be "/" but normpath changes it to "\". I don't have a Windows machine (I just installed it in the VirtualBox but I don't have Visual Studio to compile the lxml) of my own but will change it on a branch and let you test it :)

@aerkalov
Copy link
Owner

aerkalov commented Aug 7, 2018

Sorry this took way too long but this should be fixed now and the changes are in master branch. You can test it now. I tried it only on Windows with samples 01 (to create EPUB) and 06 (to parse existing EPUB).

@tgeik
Copy link
Author

tgeik commented Aug 18, 2018

Sorry it took me a while to test and reply. It works fine so far. Thanks for the quick response.

@aerkalov
Copy link
Owner

Great! Will close this one for now.

@jstruyf
Copy link

jstruyf commented Sep 3, 2018

I have the same error, everything works OK on OSX, but not in Window7 32bit (Have not tried windows 64bit yet). How can I get that new version? I run ebooklib version 0.17. Thanks

@jstruyf
Copy link

jstruyf commented Sep 3, 2018

First time I changed a site-package myself in Python. Went into the python 3 environmental path in my Windows 7 PC, found site-packages directory, copy/past your updated util.py and epub.py , to replace the previous version. Bang and it works.
Great stuff and thank you very much. ebooklib module is great.

@aerkalov
Copy link
Owner

aerkalov commented Sep 3, 2018

Install latest version from GitHub until we do the release:

pip install -e git+git://github.com/aerkalov/ebooklib.git#egg=EbookLib

@jstruyf
Copy link

jstruyf commented Sep 3, 2018 via email

@axtrace
Copy link

axtrace commented Sep 8, 2018

Great! I have the same problem and pip install ebooklib did not install the latest version. I tried what you've said and it helps! Thank you!
pip install -e git+git://github.com/aerkalov/ebooklib.git#egg=EbookLib

@padmalcom
Copy link

Just a kind reminder that the git version is still not in the public repostory referenced by pip.

@aerkalov
Copy link
Owner

aerkalov commented Jan 2, 2019

@padmalcom What do you mean? Can you explain more.

@padmalcom
Copy link

@aerkalov Hi Aleksandar, I mean that I still have to install ebooklib from git. When I install via pip and pypi I keep getting the error described above on windows.

@aerkalov
Copy link
Owner

aerkalov commented Jan 3, 2019

@padmalcom Must have been some error when I was uploading package. I just released never version 0.17.1 which should fix your problem.

@Quemoy
Copy link

Quemoy commented Apr 12, 2023

Hello, I ran into the same issue. It seems that if you install ebooklib via conda-forge (https://anaconda.org/conda-forge/ebooklib), it still grabs version 0.17. I apologize in advance, as I do not know how package on conda-forge is maintained.
I know I can get it from PyPI but would it be possible to have the newer version also incorporated on conda-forge, or is there somebody else I should talk to?

@aerkalov
Copy link
Owner

@Quemoy I have no experience with conda-forge but looking at it this would be the feedstock for the ebooklib and those Contributors would be the one who would know what to do - https://github.com/conda-forge/ebooklib-feedstock

Looking at the project I would assume it is required to update the version number and change the sha256 - https://github.com/conda-forge/ebooklib-feedstock/blob/main/recipe/meta.yaml

Not really sure how this all works but looking at the docs if you feel adventurous you might be able to update it also - https://conda-forge.org/#update_recipe

@thorgexyz
Copy link

I am receiving this error on v.018 with the following ebook

Error:
KeyError: "There is no item named 'META-INF/container.xml' in the archive"

@LordFransie
Copy link

I am also seeing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants