only support Python2, need download FreeCAD with Python2. all the default download is Python3.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
only support Python2, need download FreeCAD with Python2. all the default download is Python3.
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
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
Hi,
problem with 'time.clock() ' should be solved.