/backends/website/docs/sources/0.3/freecad/installation.md

https://github.com/boltsparts/BOLTS · Markdown · 85 lines · 57 code · 28 blank · 0 comment · 0 complexity · 06876568736d76256cbe457bf873a0be MD5 · raw file

  1. ---
  2. title: Installing BOLTS for FreeCAD
  3. audience: user
  4. ---
  5. ### Download a BOLTS for FreeCAD release
  6. You can find the most recent BOLTS for FreeCAD release at the [Downloads Page]({{ url(main.downloads) }}).
  7. There are different archive types available, if you are unsure, which to choose use the zip.
  8. ### Extract it to your macro folder
  9. You can look up the location of the macro folder in the preferences: Choose
  10. Edit->Preferences, in the dialog select the macro tab. The macro path is listed
  11. there. On linux the macro folder is usually located at `~/.FreeCAD`.
  12. When you are done the macro folder should contain a subfolder called BOLTS and
  13. a file called start_bolts.FCMacro
  14. The installation is now complete.
  15. ### Try it
  16. Start FreeCAD and choose <code>Macros</code> from the <code>Macro</code> menu.
  17. In the dialog that pops up select <code>start_bolts.FCMacro</code> and click on
  18. execute.
  19. ### Troubleshooting
  20. If you get an error that says something like:
  21. No module named yaml
  22. then this is because the yaml library for python is not installed. If you are
  23. using Linux, then you can usually get it using your package manager. If you are
  24. on windows you can get an installer [here](http://pyyaml.org/wiki/PyYAML); you
  25. have to install YAML for the version of Python (first two digits) that is
  26. bundled with FreeCAD. You can find out which version that is from the first
  27. line of the python console in FreeCAD. If it is not opened, you can make it
  28. visible by checking it in the Menu View under point Views.
  29. If you get an error that says something like:
  30. No module named importlib
  31. then you are using a older version of python where the importlib library is not
  32. included. You can get it [here](https://pypi.python.org/pypi/importlib/1.0.2).
  33. For importlib no convenient installer is available for windows. Instructions on
  34. how to install a python module without an installer can be found
  35. [here](http://docs.python.org/2/install/index.html). Again you should use the
  36. version for the python version bundled with FreeCAD.
  37. If you get a message that says
  38. uic import failed. Make sure that the pyside tools are installed
  39. or an error message that says
  40. ImportError: No module named pysideuic
  41. then there is a part of the PySide Qt bindings missing. For Debian and Ubuntu
  42. this is contained in the package pyside-tools.
  43. ### Windows
  44. On Windows it is sometimes necessary to copy the python dependencies to
  45. <path to FreeCAD installation>\bin\Lib\site-packages
  46. so that they are picked up by the python version shipped with FreeCAD. See also
  47. [this
  48. thread](http://forum.freecadweb.org/viewtopic.php?f=8&t=4549&start=240#p80010)
  49. in the FreeCAD forums.
  50. If you get different errors, than please try the latest development snapshot.
  51. If it still does not work, please report that problem, and help me figure it
  52. out. The simplest way to do so is to use the comments below, but there is a
  53. number of of other places where you can report problems, a list can be found
  54. [on the contribute page]({{ url(main.contribute) }}).
  55. ### Next steps
  56. If you want, you can [set up a toolbar button]({{ doc(freecad,toolbar) }}), or
  57. you can read [how to use BOLTS for FreeCAD]({{ doc(freecad,usage) }}).