New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac: Issue with mbcs with PY 2.7 #544

Closed
lewis-jeffery opened this Issue Aug 7, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@lewis-jeffery

lewis-jeffery commented Aug 7, 2016

I have converted my existing code to xlwings v0.9.1 without problem, except for:

wb = xw.Book.caller()

I get "LookupError: unknown encoding: mbcs" in all cases, including the mpl example. (Screen shot attached).

mac running 10.11.6 and Anaconda python 2.7

As an inelegant hack to get it running I have commented out a line in xlwings/main.py (fragment attached) and it works.

Appreciate your advice.

screen shot 2016-08-08 at 7 47 07 am

main.py, from line 464

def __init__(self, fullname=None, impl=None):
    if not impl:
        if fullname:
            if not PY3 and isinstance(fullname, str):

fullname = unicode(fullname, 'mbcs')

                fullname = unicode(fullname)
            fullname = fullname.lower()

@fzumstein fzumstein changed the title from Issue with mbcs on Mac to Issue with mbcs on Mac with PY 2.7 Aug 7, 2016

@fzumstein fzumstein added the bug label Aug 7, 2016

@fzumstein fzumstein added this to the v0.9.2 milestone Aug 7, 2016

@fzumstein

This comment has been minimized.

Member

fzumstein commented Aug 7, 2016

Thanks for reporting! This is another little bug that sneaked during the rewrite - will be fixed with next release

@lewis-jeffery

This comment has been minimized.

lewis-jeffery commented Aug 7, 2016

Felix,

Thanks for your quick response.

Regards,
Lewis

Lewis Jeffery
mobile: +61 401 296 105
office: +61 7 3102 4640

On 8 August 2016 at 8:14:18 AM, Felix Zumstein (notifications@github.com)
wrote:

Thanks for reporting! This is another little bug that sneaked during the
rewrite - will be fixed with next release


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#544 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT7OikdBHOrhv08toIqiWBQKEkTpgTsyks5qdli6gaJpZM4JemVM
.

@fzumstein fzumstein changed the title from Issue with mbcs on Mac with PY 2.7 to Mac: Issue with mbcs with PY 2.7 Aug 8, 2016

@fzumstein fzumstein closed this in 8db4d03 Aug 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment