Skip to content
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

Unable to save fitting reports #2675

Closed
jules-marcone opened this issue Nov 21, 2023 · 2 comments
Closed

Unable to save fitting reports #2675

jules-marcone opened this issue Nov 21, 2023 · 2 comments

Comments

@jules-marcone
Copy link

Describe the bug
After fitting some experimental data and trying to do a report (with the built-in report function), attempting to send the report (either with the regular "save" function or trying to print to a pdf file), it just returns an error.

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'Report Results'
  2. Click on 'Save'
  3. Enter any name and save in any folder.
  4. See error : Traceback (most recent call last): File "sas\qtgui\Utilities\Reports\ReportDialog.py", line 118, in onSave File "sas\qtgui\Utilities\Reports\ReportDialog.py", line 143, in save_pdf File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\pisa.py", line 26, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\document.py", line 25, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\context.py", line 33, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\parser.py", line 44, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\tables.py", line 21, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "xhtml2pdf\tags.py", line 26, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "reportlab\graphics\charts\textlabels.py", line 20, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "reportlab\graphics\utils.py", line 260, in File "reportlab\graphics\utils.py", line 63, in makeTextPathsCode File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "freetype_init.py", line 24, in File "", line 1176, in _find_and_load File "", line 1147, in find_and_load_unlocked File "", line 690, in load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "freetype\raw.py", line 201, in File "ctypes_init.py", line 389, in getattr File "ctypes_init.py", line 394, in getitem AttributeError: function 'FTC_CMapCache_Lookup' not found

Alternatively:

  1. Click on "Report results"
  2. Click "Print"
  3. Select "Print to PDF"
  4. Save anywhere with any name
  5. Error: Print report failed with: 'PySide6.QtGui.QTextDocument' object has no attribute 'print'

Expected behavior
For the report to be saved in pdf format

SasView version (please complete the following information):

  • Version: alpha-6.0.0

Operating system (please complete the following information):

  • OS: Windows 10
@krzywon
Copy link
Contributor

krzywon commented Nov 21, 2023

Thanks for the report, @jules-marcone.

@rozyczko, this looks related to the PyQt -> PySide transition. Can you take a look?

@lucas-wilkins
Copy link
Contributor

The print issue seems to be a pyside thing, the other thing looks to do with XML2PDF/reportlab, probably a version issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants