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

RunPython: multiple arguments not work on mac Excel #905

Closed
steveycchen opened this Issue Jun 25, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@steveycchen

steveycchen commented Jun 25, 2018

Hi,
I am trying to pass 2 more arguments to RunPython from mac Excel but not working. After executed the scripts, It simply has no writing results on Excel sheet and no error warning show up.

The same code does the work on windows Excel. Please help!

VBA code:

RunPython ("import hello; hello.world('arg1' , 'arg2')")

hello.py

def world(write_sht, base_url):
    wb = xw.Book.caller()
    wb.sheets[0].range('A1').value = 'Hello World!'
    wb.sheets[0].range('A2').value = 'This is write_sht: ' + str(write_sht)
    wb.sheets[0].range('A3').value = 'This is base_url:  ' + str(base_url)

Thank you.
Steve

@fzumstein fzumstein added the bug label Nov 5, 2018

@fzumstein

This comment has been minimized.

Member

fzumstein commented Nov 5, 2018

It's a bug in the applescript helper file: https://github.com/ZoomerAnalytics/xlwings/blob/master/xlwings/xlwings.applescript#L5 that happens when you use multiple arguments

@fzumstein fzumstein added this to the 0.14.1 milestone Nov 5, 2018

@fzumstein fzumstein closed this in a6f56d4 Nov 8, 2018

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