Menu

#62 Invalid syntax (PCBtoolbar.py line 186)

All
open
nobody
None
2020-11-14
2019-07-24
Anonymous
No

I USE FreeCAD0.18 for windows system and latest PCB file. the work bench got issues when open it.
any one know how to solve it ?

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2019-07-24

    only support Python2, need download FreeCAD with Python2. all the default download is Python3.

     
  • Anonymous

    Anonymous - 2019-11-29

    Just go to the main repository https://github.com/marmni/FreeCAD-PCB and checkout the branch 'FC_0.18' from there. The master branch works with python2, but this new branch works with python3 and FreeCAD 0.18.4

     
  • Anonymous

    Anonymous - 2020-11-10

    This one is pretty easy to fix. There is a depreciated function call in the sqlalchemy library that isn't compatible with Python 3.

    "The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior."

    Changing all the "time_func = time.clock" to "time_func = time.perf_counter" in all the files within the "C:\Program Files\FreeCAD\Mod\PCB\sqlalchemy\" subdirectory or the equivelent in your user directory worked for me.

    reference:
    https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8

     
    • Mariusz

      Mariusz - 2020-11-14

      Hi,
      problem with 'time.clock() ' should be solved.

       

Anonymous
Anonymous

Add attachments
Cancel