Giter VIP home page Giter VIP logo

Comments (2)

rfk avatar rfk commented on September 23, 2024

On 03/08/11 18:39, brulion wrote:

Hi,

I have installed pyenchant-1.6.5.win32.exe under python 2.6 on win xp.

The code below raises assertion error:

import enchant
enchant.get_enchant_version()
'1.6.0'
d = enchant.Dict("de_DE")
d.suggest("ssa")

** (Python.exe:1320): CRITICAL **: enchant_is_title_case: assertion `word && *word' failed

** (Python.exe:1320): CRITICAL **: enchant_is_all_caps: assertion `word && *word' failed
['SAS', '']

It looks like your enchant personal word list contains a blank line, or
some other malformed line that's being interpreted as the empty string.
In turn, this empty string is triggering the assertion errors inside
the enchant library.

The PWL file will be named "de.dic" or "de_DE.dic" and will be located
somewhere in your user directory. Unfortunately I don't recall the
exact path to the file under windows.

Is there anything I can do to workaround this?

If you remove blank lines from the PWL file it should fix the issue.

I will look into reporting this upstream as a bug, since it really
should just ignore blank lines in the file.

BTW: Why if I have installed pyenchant-1.6.5 get_enchant_version() returns '1.6.0' ?

That's the version of the underlying enchant library, i.e. the C library
to which pyenchant interfaces. On my machine I have:

>>> import enchant
>>> enchant.__version__
'1.6.6'
>>> enchant.get_enchant_version()
'1.6.0'
>>>

Cheers,

Ryan

Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
[email protected] | http://www.rfk.id.au/ramblings/gpg/ for details

from pyenchant.

rfk avatar rfk commented on September 23, 2024

upstream error, closing it here

from pyenchant.

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.