Giter VIP home page Giter VIP logo

Comments (7)

iMerica avatar iMerica commented on September 18, 2024

Looks like the dependency was removed from the requirements.txt, but the software still depends on it here

from django-tinymce4-lite.

iMerica avatar iMerica commented on September 18, 2024

I was able to temporarily get around this issue by setting the following in my Django settings:

TINYMCE_SPELLCHECKER = False

from django-tinymce4-lite.

romanvm avatar romanvm commented on September 18, 2024

I cannot reproduce your error. TINYMCE_SPELLCHECKER option defaults to False, that is, without this option in project's settings.py enchant module won't be imported. That is why it is not listed as a dependency - the package does not depend on it by default.

from django-tinymce4-lite.

iMerica avatar iMerica commented on September 18, 2024

You have described the bug. The software currently supports a flag called TINYMCE_SPELLCHECKER , but it has an implicit dependency on a third party library. The implicit dependency is the bug itself.

Django Tinymce also has this issue, but they handle the exception with a helpful error.

I'm happy to submit a PR to fix. Two options off the top of my head:

  • Add the dependency to requirements.txt and update docs (best option).
  • Do what Django Tinymce does and catch this exception (better that current).

Context:

from django-tinymce4-lite.

romanvm avatar romanvm commented on September 18, 2024

There is no bug. By default the spellchecker is disabled and you won't get any error. The documentation explicitly states that you need to install pyenchant for the spellchecker to work. If a user does not reads the documentation, it is their problem.

The dependency on pyenchant was removed to address the situation when a user does not use spellchecker or when pyencnant/enchant libraries are not available/broken on their system, like in #1.

from django-tinymce4-lite.

iMerica avatar iMerica commented on September 18, 2024

Thanks

from django-tinymce4-lite.

romanvm avatar romanvm commented on September 18, 2024

Although I agree that more explicit error message will be helpful. I will add it in the next release.

from django-tinymce4-lite.

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.