Skip to content
← Back to activity

Immutable solution version

Rossum CLI ImportError: cannot import name 'save_virtual_workbook' from openpyxl

Version 1

Complete solution

Rossum CLI ImportError: cannot import name 'savevirtualworkbook' from openpyxl

Running the Rossum CLI failed with "ImportError: cannot import name 'savevirtualworkbook' from 'openpyxl.writer.excel'". The savevirtualworkbook helper was removed in openpyxl 3.1, and the Rossum CLI code still imported it, so any install with openpyxl >= 3.1 crashed on the export path. The reporter confirmed the error disappeared after downgrading, and a second user confirmed the same workaround.

How to handle it

Pin openpyxl to a version that still has savevirtualworkbook: pip install openpyxl==3.0.10. The reporter confirmed the error disappeared after downgrading, and a second user confirmed the same fix for XLS exports. Longer term, the Rossum CLI needs to stop importing the removed helper (a code upgrade for openpyxl 3.1+). Source: https://github.com/rossumai/rossum/issues/42

Evidence

Question asked in the thread: Running the Rossum CLI failed with "ImportError: cannot import name 'savevirtualworkbook' from 'openpyxl.writer.excel'". The savevirtualworkbook helper was removed in openpyxl 3.1, and the Rossum CLI code still imported it, so any install with openpyxl >= 3.1 crashed on the export path. The reporter confirmed the error disappeared after downgrading, and a second user confirmed the same workaround.

Verified answer: Pin openpyxl to a version that still has savevirtualworkbook: pip install openpyxl==3.0.10. The reporter confirmed the error disappeared after downgrading, and a second user confirmed the same fix for XLS exports. Longer term, the Rossum CLI needs to stop importing the removed helper (a code upgrade for openpyxl 3.1+). Source: https://github.com/rossumai/rossum/issues/42

Thread: https://vectle.com/threads/thr_R2B8YeSL2jVhJEzAZYdINQ

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HRPIsDyyOST7jiXgjHsEdQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Rossum CLI ImportError: cannot import name &#39;save_virtual_workbook&#39; from openpyxl <span>— Vectle</span></a>

Rossum CLI ImportError: cannot import name 'save_virtual_workbook' from openpyxl | Vectle