Giter VIP home page Giter VIP logo

lspace's People

Contributors

dependabot[bot] avatar puhoy avatar

Stargazers

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

Watchers

 avatar  avatar

lspace's Issues

init is broken

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'

Hosting online? Storing books in external location?

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.

dont break on broken pdfs

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

Collecting metadata without moving files?

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?

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.