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

ValueError: invalid literal for int() with base 10: 'v1' #45

Closed
BRTPOB opened this issue Sep 5, 2020 · 0 comments · Fixed by #51
Closed

ValueError: invalid literal for int() with base 10: 'v1' #45

BRTPOB opened this issue Sep 5, 2020 · 0 comments · Fixed by #51
Milestone

Comments

@BRTPOB
Copy link

BRTPOB commented Sep 5, 2020

2020-09-05 07:07:09 codex.librarian.importer[22] INFO Created comic The Amazing Spider-Man #93
2020-09-05 07:07:09 codex.librarian.importer[22] INFO Created comic The Amazing Spider-Man #563
2020-09-05 07:07:10 codex.librarian.importer[22] ERROR 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 321, in import_metadata
credits = self.get_credits()
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 210, in get_credits
LOG.info(f"Created credit {credit.role.name}: {credit.person.name}")
AttributeError: 'NoneType' object has no attribute 'name'
2020-09-05 07:07:10 codex.librarian.importer[22] ERROR 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 321, in import_metadata
credits = self.get_credits()
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 210, in get_credits
LOG.info(f"Created credit {credit.role.name}: {credit.person.name}")
AttributeError: 'NoneType' object has no attribute 'name'
2020-09-05 07:07:10 codex.librarian.importer[22] ERROR 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 321, in import_metadata
credits = self.get_credits()
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 210, in get_credits
LOG.info(f"Created credit {credit.role.name}: {credit.person.name}")
AttributeError: 'NoneType' object has no attribute 'name'
2020-09-05 07:07:11 codex.librarian.librariand[22] ERROR invalid literal for int() with base 10: 'v1'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/codex/librarian/librariand.py", line 128, in librarian
import_comic(task.library_id, task.src_path)
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 363, in import_comic
importer = Importer(library_id, path)
File "/usr/local/lib/python3.8/site-packages/codex/librarian/importer.py", line 114, in init
self.car = ComicArchive(path)
File "/usr/local/lib/python3.8/site-packages/comicbox/comic_archive.py", line 57, in init
self._parse_metadata()
File "/usr/local/lib/python3.8/site-packages/comicbox/comic_archive.py", line 138, in _parse_metadata
cix_md, comet_md = self._parse_metadata_entries()
File "/usr/local/lib/python3.8/site-packages/comicbox/comic_archive.py", line 107, in _parse_metadata_entries
parser = xml_parser_cls(string=data)
File "/usr/local/lib/python3.8/site-packages/comicbox/metadata/comic_base.py", line 60, in init
self.from_string(string)
File "/usr/local/lib/python3.8/site-packages/comicbox/metadata/comic_xml.py", line 42, in from_string
self._from_xml(tree)
File "/usr/local/lib/python3.8/site-packages/comicbox/metadata/comicinfoxml.py", line 131, in _from_xml
self._from_xml_tags(root)
File "/usr/local/lib/python3.8/site-packages/comicbox/metadata/comicinfoxml.py", line 104, in _from_xml_tags
val = int(val)
ValueError: invalid literal for int() with base 10: 'v1'

@ajslater ajslater added this to the v0.5.9 milestone Sep 6, 2020
@ajslater ajslater linked a pull request Sep 6, 2020 that will close 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

Successfully merging a pull request may close this issue.

2 participants