Problem installing pyenchant on mac OS for python 3.4

237 views
Skip to first unread message

Naveed Afzal

unread,
Dec 31, 2015, 6:33:05 PM12/31/15
to pyenchant users

I am trying to install pyenchant on mac OS X Yosemite version 10.10.5 on python 3.4 but I keep getting this error:

>>> import enchant
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/enchant/__init__.py", line 92, in <module>
    from enchant import _enchant as _e
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/enchant/_enchant.py", line 121, in <module>
    prefix_dir.contents = c_char_p(e_dir)
TypeError: bytes or integer address expected instead of str instance

I will really appreciate your help in solving this issue.
Thanks in advance.



Ryan Kelly

unread,
Jan 1, 2016, 4:07:40 AM1/1/16
to pyencha...@googlegroups.com
I believe this is fixed in the latest code on github, by this commit:


https://github.com/rfk/pyenchant/commit/8cbd61416b18f7c224b98a1f6d91bb5ea48d6d71

Unfortunately I haven't found the time to make a new release with this
fix, and I may not for at least the next couple of days. But if you're
willing to try the code from github this might help solve the issue.


Cheers,

Ryan

Naveed Afzal

unread,
Jan 4, 2016, 3:39:28 PM1/4/16
to pyenchant users
Thanks Ryan for pointing me in the right direction. Now everything seems to be working fine.
Reply all
Reply to author
Forward
0 new messages