Comments (2)
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.
upstream error, closing it here
from pyenchant.
Related Issues (20)
- Pyenchant makes NovelWriter (python, Linux) crash with certain projects HOT 3
- 3.2.2: pytest is failing for RPM build with --no-isolation HOT 3
- Need to install the libenchant *-dev* package for PyEnchant to work on Ubuntu 22 and Ubuntu 18 HOT 6
- PyEnchant does not install correctly on Mac HOT 1
- Benchmark of Pyenchant HOT 1
- PyPI not up to date. HOT 3
- Module not found when loading enchant plugins on Windows 11
- macOS tests are failing on Python < 3.10
- Preparing for next release HOT 4
- PyEnchant not working on Heroku
- Not identifying misspelled words (italian)
- pyenchant not working within QGIS environment HOT 21
- Update documentation
- Personal Word Dicts no longer work with Enchant >= 2.5 HOT 6
- pyenchant fails in Python 3.12 and 3.13 on macOS 10.15 (Catalina) HOT 8
- nixos useage HOT 3
- Python does not recognize enchant HOT 1
- Request: installing language dictionaries from a packaging extra
- Improve basic tokenizer
- Loading a non-existent dictionary segfaults after multiple attempts. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyenchant.