Giter Site home page Giter Site logo

epubcheck's People

Contributors

csmithd avatar jnns avatar swquinn avatar titusz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

epubcheck's Issues

Taking too long to load the epub books

We are trying to use this epubcheck for the checking whether epub has audio or not?
But it is taking 8-10 secs for loading the book itself. This is impacting our performance.
Can you please help us with some options to load the book quickly and get the hasAudio meta info?

ImportError: cannot import name getcwd

I just tried to get the wrapper running under Linux Mint. Installation using pip appears to be successful, but then when I run the wrapper using the CLI:

epubcheck

I end up with this:

Traceback (most recent call last):
  File "/usr/local/bin/epubcheck", line 7, in <module>
    from epubcheck.cli import main
  File "/usr/local/lib/python2.7/dist-packages/epubcheck/cli.py", line 8, in <module>
    from six.moves import getcwd
ImportError: cannot import name getcwd

Which is strange because Six is already installed on my system (version: 1.5.2). I'm using Python 2.7.6.

This problem does not occur if I build/install the wrapper from its source using setup.py (sudo python setup.py install), so I think this is some sort of packaging issue?

JSONDecodeError when running (cli + library)

Traceback (most recent call last):
  File "/usr/local/bin/epubcheck", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/epubcheck/cli.py", line 88, in main
    for result in results:
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 695, in next
    raise value
  File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/lib/python3.5/dist-packages/epubcheck/checker.py", line 41, in __init__
    self.run()
  File "/usr/local/lib/python3.5/dist-packages/epubcheck/checker.py", line 58, in run
    self.result_data = json.loads(self._stdout.decode())
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

FileNotFoundError

On Windows 8.1, epubcheck can't find any files or folders (including the subfolder samples, or an epub file in the epubcheck folder).

Switch -c results in TypeError

I just tried to generate CSV output for a directory with some EPUBs. I used the following command:

epubcheck -c test.csv ./samples-test/

But this results in an TypeErrorr (output file is created, but it is empty):

TypeError: "delimiter" must be string, not bytes

Environment:

  • Python 3.8.10
  • Linux Mint 20.1 Ulyssa

Switch -x results in AttributeError

I just tried to generate XLS output for a directory with some EPUBs. I used the following command:

epubcheck -x test.xls ./samples-test/

But this results in an AttributeError (output file is created, but it is empty):

AttributeError: 'Databook' object has no attribute 'xls'

Environment:

  • Python 3.8.10
  • Linux Mint 20.1 Ulyssa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.