Giter Club home page Giter Club logo

Comments (5)

matclab avatar matclab commented on May 28, 2024 1

from afew.

larsks avatar larsks commented on May 28, 2024

This was closed by #75,

from afew.

matclab avatar matclab commented on May 28, 2024

Same problem with version 1.3.0 here:

INFO:root:Importing user filter 'snooze.py'
Traceback (most recent call last):
  File "/usr/sbin/afew", line 11, in <module>
    load_entry_point('afew==1.3.0', 'console_scripts', 'afew')()
  File "/usr/lib/python3.6/site-packages/afew/commands.py", line 135, in main
    __import__(file_name[:-3], level=0)
  File "/home/clabaut/.config/afew/snooze.py", line 1, in <module>
    from afew.Filter import Filter, register_filter
ModuleNotFoundError: No module named 'afew.Filter'

from afew.

matclab avatar matclab commented on May 28, 2024

Doing:

from afew.filters.BaseFilter  import Filter                                     
from afew.FilterRegistry import register_filter 

solves the problem.

@flokli Should the doc be updated ? Or is there a missing export of those symbols
?

from afew.

flokli avatar flokli commented on May 28, 2024

@matclab imports are currently a bit funky at least, requiring a lot of changes.

I'd say, updating docs to the current state for now would be the most sensible thing to do. Can you file a PR?

from afew.

Related Issues (20)

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.