0

I have a script in Python copying values from one spreadsheet to another. It runs well with RunPython When I try using RunFrozenPython it is giving this exception xlwings thinks the caller is not excel, what can I do so it thinks the caller is Excel like when I use the RunPython command successfully.

xlwings thinks the caller is not excel, what can I do so it thinks the caller is Excel? just how RunPython does successfully.

Before I get the exception , I do get a warning , here is the snapshot. The script waits until I click OK and then errors out as shown above.

Here is the warning message, the location shown does not exist on my machine -

enter image description here

Nick
  • 31
  • 11

1 Answers1

0

I got the error resolved by using wb = Workbook("path to file")

instead of using wb = Workbook.caller()

This way the excel is not referenced by the caller but by its absolute path.

I could still use help resolving the warning :)

Nick
  • 31
  • 11
  • That's not what you should be doing as this will break as soon as you move your spreadsheet or rename it. Posting a minimal code sample that will reproduce the error will help. I have never looked at freezing with PyInstaller though, only with cx_Freeze, so maybe that's part of the issue. – Felix Zumstein Sep 16 '15 at 12:03