Comments (8)
Some of the scripts aren't yet compatible with Python 3.
See https://github.com/easyw/kicad-3d-models-in-freecad/pull/292/files for a typical fix.
from kicad-3d-models-in-freecad.
@chschlue Do you know if any of the folder is already fixed for Python 3? It would be helpful if i would be able to run at least one script of this repository to get a better understanding of what's going on in the scripts.
Is it possible to run these scripts on Visual Studio Code to have the ability of debugging?
from kicad-3d-models-in-freecad.
@chschlue I just cloned a repository from https://github.com/acisternino/kicad-3d-models-in-freecad, branch dip-parts-update-to-py3. Acisternino has updated the scripts in DIP_Parts to Python 3. Now the scripts are running without any error. Thank's for your support.
When starting to write scripts for this repository is it important to be downwards compatible to Python 2?
from kicad-3d-models-in-freecad.
That's for @easyw to decide.
from kicad-3d-models-in-freecad.
@MountyRox
if possible I would like to keep py2 and py3 compatibility... some of recent scripts are already compatible py2&3
from kicad-3d-models-in-freecad.
@easyw: This raises issues about the procedure to do this. From my limited knowledge i can run Python scripts importing the CadQuery and FreeCAD lib only within FreeCAD and not for example in Visual Studio. And i have no influence which Python version is used by FreeCAD, haven't i?
Remark:
I found a helpful post how to use VS to debug scripts running in FreeCAD:
(https://forum.freecadweb.org/viewtopic.php?t=28901#:~:text=In%20the%20debug%20menu%20in,you%20would%20normally%20execute%20it.
But for me this does not solve the above mentioned problem.
from kicad-3d-models-in-freecad.
- you can print python error messages in FC Report Panel... this helped me a lot during the debugging without the need of VS ...
- the python version is the one bundled with FC (particularly on Win)
since FC 0.18, python is 3+; FC 0.17 and lower are py2
from kicad-3d-models-in-freecad.
@easyw
Thanks a lot!
from kicad-3d-models-in-freecad.
Related Issues (20)
- python2 should die HOT 1
- Hard-coded paths in python scripts HOT 1
- Using the scripts with CADquery 1.2.0 and FreeCAD 0.18.3 HOT 3
- Using the scripts with CADquery 1.2.0 and FreeCAD 0.18.4 HOT 26
- Best way to add a new 3D model? HOT 5
- Support JST SMD connectors and SH Series
- SM resistors HOT 1
- BRepSweep_Translation error with epad line HOT 4
- DFN generator fails in FreeCAD 0.19 HOT 1
- Exception while processing file: main_generator.py [global name 'math' is not defined] HOT 3
- Buzzer_Beeper generator: Black screen in FC 0.18 HOT 2
- metric fuses HOT 5
- move more stuff inside _tools ? HOT 1
- Add option for origin offset to scripts
- bugfix HOT 1
- Resistor_THT script can omit lead bends HOT 7
- Feedback concerning an often faced KiCad StepUp issue HOT 1
- Need PinSocket_1x08_2.54mm_Stacking for shields
- ./main_generator.py [No module named '_tools']
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kicad-3d-models-in-freecad.