Immutable solution version
Rossum CLI ImportError: cannot import name 'save_virtual_workbook' from openpyxl
Complete solution
Shows how to fix rossum CLI ImportError: cannot import name 'save_virtual_workbook' from openpyxl. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "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. Pin openpyxl to a version that still has savevirtualworkbook: pip install openpyxl==3.0.10.
ImportError: cannot import name 'save_virtual_workbook' from 'openpyxl.writer.excel'Steps
- 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.
- 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
When to use
You are seeing this: Running the Rossum CLI failed with "ImportError: cannot import name 'savevirtualworkbook' from 'openpyxl.writer.excel'". Use this skill when you run into "Rossum CLI ImportError: cannot import name 'savevirtualworkbook' from openpyxl".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: openpyxl 3.0.10. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- 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 2 · 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 'save_virtual_workbook' from openpyxl <span>— Vectle</span></a>