Skip to content

V1.2.1 Broken import #316

Closed
Closed
@yeyeto2788

Description

@yeyeto2788

Hey guys! I just found out that there is a broken import on module with latest version (1.2.1) I tried latest version of a software using the library and it seems to be related to the library itself as installing older version (1.1.0) fixes the issue.

OS: Ubuntu 20.04
Python: 3.8.10

Error:

ModuleNotFoundError: No module named 'reportlab.graphics.transform'

Traceback:

yeyeto2788@juan-thinkbook:~$ flatcam
Traceback (most recent call last):
  File "/home/yeyeto2788/flatcam/FlatCAM.py", line 6, in <module>
    from app_Main import App
  File "/home/yeyeto2788/flatcam/app_Main.py", line 32, in <module>
    from svglib.svglib import svg2rlg
  File "/home/yeyeto2788/.local/lib/python3.8/site-packages/svglib/svglib.py", line 36, in <module>
    from reportlab.graphics.transform import mmult
ModuleNotFoundError: No module named 'reportlab.graphics.transform'

If more info is needed just ping me.
Best.

Activity

github-actions

github-actions commented on Feb 4, 2022

@github-actions

Thank you for raising your first issue! Your help to improve svglib is much appreciated!

claudep

claudep commented on Feb 4, 2022

@claudep
Collaborator

Thanks for the report. Yes, this import is new, and it appears reportlab.graphics.transform only exists since reportlab 3.5.61 (mmult was in reportlab.graphics.shape before), so a conditional import should be done here. You may upgrade your reportlab installation meanwhile.

yeyeto2788

yeyeto2788 commented on Feb 4, 2022

@yeyeto2788
Author

Thanks for the heads up and for the quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @claudep@yeyeto2788

      Issue actions

        V1.2.1 Broken import · Issue #316 · deeplook/svglib