Since commit f4f87eb FlatCam won't start anymore

Issue #432 resolved
Daniel Siegmanski created an issue

Hi,

since the commit f4f87eb (8.992 and 8.9963) FlatCam won’t start anymore. 8.991 is working.

Here is the outpur from the console:

Traceback (most recent call last):
  File "/opt/FlatCAM/FlatCAM.py", line 6, in <module>
    from app_Main import App
  File "/opt/FlatCAM/app_Main.py", line 51, in <module>
    from appDatabase import ToolsDB2
  File "/opt/FlatCAM/appDatabase.py", line 4, in <module>
    from camlib import to_dict
  File "/opt/FlatCAM/camlib.py", line 28, in <module>
    from shapely.ops import cascaded_union, unary_union, substring

ImportError: cannot import name 'substring' from 'shapely.ops' (/usr/lib/python3.7/site-packages/shapely/ops.py)

I think it’s the change from

from shapely.ops import cascaded_union, unary_union, polygonize

to

from shapely.ops import cascaded_union, unary_union, substring

in camlib.py

Daniel

Comments (2)

  1. Marius Stanciu

    Hello Daniel,

    As per Shapely’s manual here: https://shapely.readthedocs.io/en/stable/manual.html#substring
    the substring method is:
    New in version 1.7.0”

    I’m sorry but this is not a bug, it’s just that you use a too old Shapely module (less than 1.7.0). Update that package and you’ll see that those versions will work.
    For the minimum versions needed see the requirements.txt file.

    -Marius

  2. Log in to comment