puhoy / lspace Goto Github PK
View Code? Open in Web Editor NEWa cli ebook manager
License: GNU Affero General Public License v3.0
a cli ebook manager
License: GNU Affero General Public License v3.0
lspace init
Traceback (most recent call last):
File "/home/jan/.local/bin/lspace", line 10, in
sys.exit(cli_group())
File "/usr/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/jan/.local/lib/python3.7/site-packages/flask/cli.py", line 412, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/jan/.local/lib/python3.7/site-packages/lspace/cli/init_command.py", line 13, in init
app_dir = app.config['APP_DIR']
AttributeError: module 'lspace.app' has no attribute 'config'
First off, I just want to say thank you to the developer for creating this project. I have spent quite some time looking for something that could replace COPS, and I was starting to think I would have to start from scratch and figure out how to build my own. I was quite happy to find this project because Python is the language I was thinking of learning for this hobby project of mine, and I don't have to start from scratch either!
Now, on to my actual "issues." Is it possible to (1) host this project on an online web server to view your books from anywhere (GitHub, Heroku, Netlify), and (2) how would we access the files from an external location?
P.S. I hope that sometime in the future these issues can be resolved and that I can contribute to this project.
maybe try https://greenkeeper.io/
Traceback (most recent call last):
File "/home/meatpuppet/.local/bin/lspace", line 10, in <module>
sys.exit(cli_group())
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/flask/cli.py", line 419, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/cli/import_command/__init__.py", line 14, in import_command
import_wizard(path, skip_library_check, move)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/cli/import_command/_import.py", line 75, in import_wizard
return import_file_wizard(path, skip_library_check, move)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/cli/import_command/_import.py", line 98, in import_file_wizard
isbns_with_metadata = file_type_object.fetch_results()
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/file_types/_base.py", line 95, in fetch_results
for result in f():
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/file_types/_base.py", line 58, in find_isbn_in_text
isbns = self.get_isbns_from_text()
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/file_types/_base.py", line 122, in get_isbns_from_text
pages = self.get_text()
File "/home/meatpuppet/.local/lib/python3.7/site-packages/lspace/file_types/pdf.py", line 25, in get_text
extracted_text = page.extractText()
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/pdf.py", line 2595, in extractText
content = ContentStream(content, self.pdf)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/pdf.py", line 2673, in __init__
stream = BytesIO(b_(stream.getData()))
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/generic.py", line 841, in getData
decoded._data = filters.decodeStreamData(self)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/filters.py", line 346, in decodeStreamData
data = FlateDecode.decode(data, stream.get("/DecodeParms"))
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/filters.py", line 111, in decode
data = decompress(data)
File "/home/meatpuppet/.local/lib/python3.7/site-packages/PyPDF2/filters.py", line 49, in decompress
return zlib.decompress(data)
zlib.error: Error -5 while decompressing data: incomplete or truncated stream
see https://opds.io/
as mentioned in #21
"PyPDF2.utils.PdfReadError: file has not been decrypted"
maybe import based on filename / manual search?
This looks like an awesome tool but I haven't tried it because I don't want it to move or rename any files. Is there currently an easy way to turn that part off?
like adding new books (is that even possible via api?), search, download?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.