-
Notifications
You must be signed in to change notification settings - Fork 87
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
Exception while processing file: main_generator.py [global name 'math' is not defined] #373
Comments
@Qbort I cannot test right now, but would you mind to try with FC0.18.4 or FC0.19 to see if you get the same error? |
@easyw i just installed FreeCad 0.18.4 (last stable release) and indeed it works perfectly! Well done for all the hard work on this. Issue #315 does mention that Python 2 is now dead, so my conclusion is that this script doesn't actually need to support early versions. Can I suggest to add a note on README.MD to say that the script is only supported in FreeCad 0.18 or greater (Python 3 support)? Also there are quite a few other documentation files that might need updating - I can submit a PR if you are okay with it? |
- 4UCON_17809 - Tested FC 0.17 & FC 0.18 - BGA_packages - Tested FC 0.17 & FC 0.18 - QFN_packages - Tested FC 0.17 & FC 0.18. Fixes issue easyw#373 Note: In FreeCad 0.17 the "Report View" shows the warning "File format not supported: DFN-6-1EP_1.2x1.2mm_P0.4mm_EP0.3x0.94mm ", but it still generates the 3D model Other fixes / cleanup: - Removed ribbon.py duplicate in cadquery/FCAD_script_generator/4UCON_17809/cq_models/ribbon.py - Defined reload_lib() in cq_cad_tools.py - More functionality to check_requirements() for cleaner code *Created open_CQ_Example() - this is required to be called before close_CQ_Example(), otherwise an exception is raised *Added tests open_CQ_Example() and close_CQ_Example() into check_requirements(). *Removed references of close_CQ_Example() in the files from modules 4UCON_17809, BGA_packages and QFN_packages, since this is covered by check_requirements().
fixed by pull request #374 |
I'm very new to this script so this might be a non-issue and just me being stupid...
I am on Windows 10, FreeCAD version 0.17 and cadquery_module installed from within FreeCAD.
I have opened command prompt and navigated to cadquery\FCAD_script_generator\QFN_packages and run below two commands:
When FreeCAD opens I get below error message in the FreeCAD console:
Is this some bug or is my configuration incorrect?
The text was updated successfully, but these errors were encountered: