GithubHelp home page GithubHelp logo

thetacom / hexabyte_extended_info Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.3 MB

A plugin for the hexabyte editor. Provides an extended info sidebar with similar details to that provided by the `file` command.

License: GNU General Public License v3.0

Makefile 22.60% Python 76.18% C 1.22%

hexabyte_extended_info's Issues

Suggestion: catch lack of `libmagic`

Having installed this via pipx, on first run I got the following error:

Traceback (most recent call last):
  File "/Users/davep/.local/bin/hexabyte", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/__main__.py", line 43, in main
    load_plugins()
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/_loader.py", line 30, in load_plugins
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/__init__.py", line 4, in <module>
    from .widgets.info_panel import InfoPanel
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/__init__.py", line 4, in <module>
    from .widgets.info_panel import InfoPanel
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/hexabyte/plugins/info/widgets/info_panel.py", line 7, in <module>
    import magic
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/magic/__init__.py", line 209, in <module>
    libmagic = loader.load_lib()
               ^^^^^^^^^^^^^^^^^
  File "/Users/davep/.local/pipx/venvs/hexabyte/lib/python3.11/site-packages/magic/loader.py", line 49, in load_lib
    raise ImportError('failed to find libmagic.  Check your installation')
ImportError: failed to find libmagic.  Check your installation

Quick check suggested that (here on macOS) all I needed was to brew install magic and, sure enough, that got it all working.

As a suggestion, because there's a third-party dependancy you're not responsible for there, perhaps catch that ImportError and suggest a resolution?

Nice app though!

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.