Skip to content
← Back to activity

Public problem

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

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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