Comments (6)
Thanks for reporting this. Py3.3 tests are all passing on my machine as of de3fad5, please re-open if this is still an issue.
from pyenchant.
Now (ec6795e) there are 4 failures with each version of Python (2.6, 2.7, 3.1, 3.2, 3.3, 3.4).
$ PYTHONPATH="$(pwd)" python3.4 setup.py test
running test
running egg_info
writing top-level names to pyenchant.egg-info/top_level.txt
writing dependency_links to pyenchant.egg-info/dependency_links.txt
writing eager_resources to pyenchant.egg-info/eager_resources.txt
writing pyenchant.egg-info/PKG-INFO
reading manifest file 'pyenchant.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'docs/'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'tools/pyenchant-bdist-win32-sources'
no previously-included directories found matching 'tools/pyenchant-bdist-osx-sources'
writing manifest file 'pyenchant.egg-info/SOURCES.txt'
running build_ext
test_UnicodeInstallPath (enchant.tests.TestInstallEnv)
Test installation in a path containing unicode chars. ... Traceback (most recent call last):
File "/tmp/tmpdi9kvwt_/test_åäö_ing/enchant/__init__.py", line 924, in <module>
res = enchant.tests.runtestsuite()
File "/tmp/tmpdi9kvwt_/test_åäö_ing/enchant/tests.py", line 613, in runtestsuite
return unittest.TextTestRunner(verbosity=0).run(buildtestsuite(recurse=recurse))
File "/usr/lib64/python3.4/unittest/runner.py", line 168, in run
test(result)
File "/usr/lib64/python3.4/unittest/suite.py", line 87, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/suite.py", line 125, in run
test(result)
File "/usr/lib64/python3.4/unittest/suite.py", line 87, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/suite.py", line 125, in run
test(result)
File "/usr/lib64/python3.4/unittest/case.py", line 625, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/case.py", line 585, in run
self._feedErrorsToResult(result, outcome.errors)
File "/usr/lib64/python3.4/unittest/case.py", line 516, in _feedErrorsToResult
result.addFailure(test, exc_info)
File "/usr/lib64/python3.4/unittest/runner.py", line 75, in addFailure
super(TextTestResult, self).addFailure(test, err)
File "/usr/lib64/python3.4/unittest/result.py", line 17, in inner
return method(self, *args, **kw)
File "/usr/lib64/python3.4/unittest/result.py", line 121, in addFailure
self.failures.append((test, self._exc_info_to_string(err, test)))
File "/usr/lib64/python3.4/unittest/result.py", line 181, in _exc_info_to_string
msgLines = traceback.format_exception(exctype, value, tb, length)
File "/usr/lib64/python3.4/traceback.py", line 181, in format_exception
return list(_format_exception_iter(etype, value, tb, limit, chain))
File "/usr/lib64/python3.4/traceback.py", line 153, in _format_exception_iter
yield from _format_list_iter(_extract_tb_iter(tb, limit=limit))
File "/usr/lib64/python3.4/traceback.py", line 18, in _format_list_iter
for filename, lineno, name, line in extracted_list:
File "/usr/lib64/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
line = linecache.getline(filename, lineno, f.f_globals)
File "/usr/lib64/python3.4/linecache.py", line 15, in getline
lines = getlines(filename, module_globals)
File "/usr/lib64/python3.4/linecache.py", line 41, in getlines
return updatecache(filename, module_globals)
File "/usr/lib64/python3.4/linecache.py", line 126, in updatecache
with tokenize.open(fullname) as fp:
AttributeError: 'module' object has no attribute 'open'
FAIL
test_basic (enchant.tests.TestInstallEnv)
Test proper functioning of TestInstallEnv suite. ... Traceback (most recent call last):
File "/tmp/tmpc33809rj/build/enchant/__init__.py", line 924, in <module>
res = enchant.tests.runtestsuite()
File "/tmp/tmpc33809rj/build/enchant/tests.py", line 613, in runtestsuite
return unittest.TextTestRunner(verbosity=0).run(buildtestsuite(recurse=recurse))
File "/usr/lib64/python3.4/unittest/runner.py", line 168, in run
test(result)
File "/usr/lib64/python3.4/unittest/suite.py", line 87, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/suite.py", line 125, in run
test(result)
File "/usr/lib64/python3.4/unittest/suite.py", line 87, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/suite.py", line 125, in run
test(result)
File "/usr/lib64/python3.4/unittest/case.py", line 625, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.4/unittest/case.py", line 585, in run
self._feedErrorsToResult(result, outcome.errors)
File "/usr/lib64/python3.4/unittest/case.py", line 516, in _feedErrorsToResult
result.addFailure(test, exc_info)
File "/usr/lib64/python3.4/unittest/runner.py", line 75, in addFailure
super(TextTestResult, self).addFailure(test, err)
File "/usr/lib64/python3.4/unittest/result.py", line 17, in inner
return method(self, *args, **kw)
File "/usr/lib64/python3.4/unittest/result.py", line 121, in addFailure
self.failures.append((test, self._exc_info_to_string(err, test)))
File "/usr/lib64/python3.4/unittest/result.py", line 181, in _exc_info_to_string
msgLines = traceback.format_exception(exctype, value, tb, length)
File "/usr/lib64/python3.4/traceback.py", line 181, in format_exception
return list(_format_exception_iter(etype, value, tb, limit, chain))
File "/usr/lib64/python3.4/traceback.py", line 153, in _format_exception_iter
yield from _format_list_iter(_extract_tb_iter(tb, limit=limit))
File "/usr/lib64/python3.4/traceback.py", line 18, in _format_list_iter
for filename, lineno, name, line in extracted_list:
File "/usr/lib64/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
line = linecache.getline(filename, lineno, f.f_globals)
File "/usr/lib64/python3.4/linecache.py", line 15, in getline
lines = getlines(filename, module_globals)
File "/usr/lib64/python3.4/linecache.py", line 41, in getlines
return updatecache(filename, module_globals)
File "/usr/lib64/python3.4/linecache.py", line 126, in updatecache
with tokenize.open(fullname) as fp:
AttributeError: 'module' object has no attribute 'open'
FAIL
test_py2exe (enchant.tests.TestPy2exe)
Test pyenchant running inside a py2exe executable. ... ok
test_GetSetParam (enchant.tests.TestBroker) ... ok
test_HasENUS (enchant.tests.TestBroker)
Test that the en_US language is available. ... ok
test_LangsAreAvail (enchant.tests.TestBroker)
Test whether all advertised languages are in fact available. ... FAIL
test_ProvOrdering (enchant.tests.TestBroker)
Test that provider ordering works correctly. ... warning: line 274: incompatible stripping characters and condition
warning: line 275: incompatible stripping characters and condition
warning: line 599: incompatible stripping characters and condition
warning: line 901: incompatible stripping characters and condition
warning: line 1309: incompatible stripping characters and condition
warning: line 1310: incompatible stripping characters and condition
warning: line 1311: incompatible stripping characters and condition
warning: line 1759: incompatible stripping characters and condition
warning: line 1760: incompatible stripping characters and condition
warning: line 1761: incompatible stripping characters and condition
warning: line 2119: incompatible stripping characters and condition
warning: line 274: incompatible stripping characters and condition
warning: line 275: incompatible stripping characters and condition
warning: line 599: incompatible stripping characters and condition
warning: line 901: incompatible stripping characters and condition
warning: line 1309: incompatible stripping characters and condition
warning: line 1310: incompatible stripping characters and condition
warning: line 1311: incompatible stripping characters and condition
warning: line 1759: incompatible stripping characters and condition
warning: line 1760: incompatible stripping characters and condition
warning: line 1761: incompatible stripping characters and condition
warning: line 2119: incompatible stripping characters and condition
warning: line 274: incompatible stripping characters and condition
warning: line 275: incompatible stripping characters and condition
warning: line 599: incompatible stripping characters and condition
warning: line 901: incompatible stripping characters and condition
warning: line 1309: incompatible stripping characters and condition
warning: line 1310: incompatible stripping characters and condition
warning: line 1311: incompatible stripping characters and condition
warning: line 1759: incompatible stripping characters and condition
warning: line 1760: incompatible stripping characters and condition
warning: line 1761: incompatible stripping characters and condition
warning: line 2119: incompatible stripping characters and condition
ok
test_ProvsAreAvail (enchant.tests.TestBroker)
Test whether all advertised providers are in fact available. ... FAIL
test_UnicodeTag (enchant.tests.TestBroker)
Test that unicode language tags are accepted ... ok
test_AddRemove (enchant.tests.TestDict)
Test adding/removing from default user dictionary. ... ok
test_DefaultLang (enchant.tests.TestDict)
Test behaviour of default language selection. ... ok
test_HasENUS (enchant.tests.TestDict)
Test that the en_US language is available through default broker. ... ok
test_broker (enchant.tests.TestDict)
Test that the dict's broker is set correctly. ... ok
test_check (enchant.tests.TestDict)
Test that check() works on some common words. ... ok
test_pickling (enchant.tests.TestDict)
Test that pickling doensn't corrupt internal state. ... ok
test_session (enchant.tests.TestDict)
Test that adding words to the session works as required. ... ok
test_suggest (enchant.tests.TestDict)
Test that suggest() gets simple suggestions right. ... ok
test_suggestHang1 (enchant.tests.TestDict)
Test whether suggest() hangs on some inputs (Bug #1404196) ... ok
test_tag (enchant.tests.TestDict)
Test that the dict's tag is set correctly. ... ok
test_unicode1 (enchant.tests.TestDict)
Test checking/suggesting for unicode strings ... ok
test_DWPWL (enchant.tests.TestPWL)
Test functionality of DictWithPWL. ... ok
test_DWPWL_empty (enchant.tests.TestPWL)
Test functionality of DictWithPWL using transient dicts. ... ok
test_PyPWL (enchant.tests.TestPWL)
Test our pure-python PWL implementation. ... ok
test_UnicodeCharsInPath (enchant.tests.TestPWL)
Test that unicode chars in PWL paths are accepted. ... ok
test_UnicodeFN (enchant.tests.TestPWL)
Test that unicode PWL filenames are accepted. ... ok
test_add (enchant.tests.TestPWL)
Test that adding words to a PWL works correctly. ... ok
test_check (enchant.tests.TestPWL)
Test that basic checking works for PWLs. ... ok
test_suggestions (enchant.tests.TestPWL)
Test getting suggestions from a PWL. ... ok
test_trim_suggestions (enchant.tests.TestUtils) ... /tmp/pyenchant/enchant/tests.py:416: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(trim_suggestions(word,suggs,40),["god","good","bad+"])
ok
test_docstrings (enchant.tests.TestDocStrings)
Test that all our docstrings are error-free. ... ok
test_basic (enchant.checker.tests.TestChecker)
Test a basic run of the SpellChecker class. ... ok
test_bug2785373 (enchant.checker.tests.TestChecker)
Testcases for bug #2785373. ... ok
test_chararray (enchant.checker.tests.TestChecker)
Test SpellChecker with a character array as input. ... ok
test_chunkers (enchant.checker.tests.TestChecker)
Test SpellChecker with the 'chunkers' argument. ... ok
test_chunkers_and_filters (enchant.checker.tests.TestChecker)
Test SpellChecker with the 'chunkers' and 'filters' arguments. ... ok
test_default_language (enchant.checker.tests.TestChecker) ... ok
test_filters (enchant.checker.tests.TestChecker)
Test SpellChecker with the 'filters' argument. ... ok
test_pwl (enchant.checker.tests.TestChecker)
Test checker loop with PWL. ... ok
test_replace_with_empty_string (enchant.checker.tests.TestChecker)
Testcase for replacing with an empty string (bug #10) ... /tmp/pyenchant/enchant/checker/tests.py:246: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(chkr.get_text(),". I .")
ok
test_replace_with_shorter_string (enchant.checker.tests.TestChecker)
Testcase for replacing with a shorter string (bug #10) ... ok
test_unicode (enchant.checker.tests.TestChecker)
Test SpellChecker with a unicode string. ... ok
test_basic_tokenize (enchant.tokenize.tests.TestTokenization)
Simple regression test for basic white-space tokenization. ... ok
test_tokenize_strip (enchant.tokenize.tests.TestTokenization)
Test special-char-stripping edge-cases in basic_tokenize. ... ok
test_wrap_tokenizer (enchant.tokenize.tests.TestTokenization)
Test wrapping of one tokenizer with another. ... ok
test_bug1591450 (enchant.tokenize.tests.TestTokenizeEN)
Check for tokenization regressions identified in bug #1591450. ... ok
test_bug2785373 (enchant.tokenize.tests.TestTokenizeEN)
Testcases for bug #2785373 ... ok
test_finnish_text (enchant.tokenize.tests.TestTokenizeEN)
Test tokenizing some Finnish text. ... ok
test_tokenize_en (enchant.tokenize.tests.TestTokenizeEN)
Simple regression test for English tokenization. ... ok
test_unicodeBasic (enchant.tokenize.tests.TestTokenizeEN)
Test tokenization of a basic unicode string. ... ok
test_unicodeCombining (enchant.tokenize.tests.TestTokenizeEN)
Test tokenization with unicode combining symbols. ... ok
test_utf8_bytes (enchant.tokenize.tests.TestTokenizeEN)
Test tokenization of UTF8-encoded bytes (bug #2500184). ... ok
test_utf8_bytes_at_end (enchant.tokenize.tests.TestTokenizeEN)
Test tokenization of UTF8-encoded bytes at end of word. ... ok
test_utf8_bytes_in_an_array (enchant.tokenize.tests.TestTokenizeEN)
Test tokenization of UTF8-encoded bytes stored in an array. ... ok
test_CombinedFilter (enchant.tokenize.tests.TestFilters)
Test several filters combined ... ok
test_EmailFilter (enchant.tokenize.tests.TestFilters)
Test filtering of email addresses ... ok
test_URLFilter (enchant.tokenize.tests.TestFilters)
Test filtering of URLs ... ok
test_WikiWordFilter (enchant.tokenize.tests.TestFilters)
Test filtering of WikiWords ... ok
======================================================================
FAIL: test_UnicodeInstallPath (enchant.tests.TestInstallEnv)
Test installation in a path containing unicode chars.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pyenchant/enchant/tests.py", line 550, in test_UnicodeInstallPath
self.runtests()
File "/tmp/pyenchant/enchant/tests.py", line 538, in runtests
self.assertEqual(res,0)
AssertionError: 1 != 0
======================================================================
FAIL: test_basic (enchant.tests.TestInstallEnv)
Test proper functioning of TestInstallEnv suite.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pyenchant/enchant/tests.py", line 543, in test_basic
self.runtests()
File "/tmp/pyenchant/enchant/tests.py", line 538, in runtests
self.assertEqual(res,0)
AssertionError: 1 != 0
======================================================================
FAIL: test_LangsAreAvail (enchant.tests.TestBroker)
Test whether all advertised languages are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pyenchant/enchant/tests.py", line 86, in test_LangsAreAvail
assert False, "language '"+lang+"' advertised but non-existent"
AssertionError: language 'ru_RU_yo' advertised but non-existent
======================================================================
FAIL: test_ProvsAreAvail (enchant.tests.TestBroker)
Test whether all advertised providers are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pyenchant/enchant/tests.py", line 91, in test_ProvsAreAvail
self.assertTrue(self.broker.dict_exists(lang))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 57 tests in 20.297s
FAILED (failures=4)
from pyenchant.
I have no permission to re-open this issue.
from pyenchant.
I can't reproduce this, but assume it's at least partially caused by #36.
from pyenchant.
Also this warning: line 275: incompatible stripping characters and condition
seems to come from within the myspell provider, maybe an invalid dictionary file or one from a different version of myspell?
from pyenchant.
Thanks for reaching out. Unfortunately I am no longer actively maintaining this project, so I'm going to move it into archive mode:
https://rfk.id.au/blog/entry/archiving-open-source-projects/
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.