Line from 2 dots

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Line from 2 dots

Post by demaxfa »

How to draw with freeCAD I chosee (View-Workbench-Draft) (New) and i cannot draw one line from 2 dots My os Is Linux Debian wheezy and i instaled free cad from repository it is 0.12 version revison 5382.

Darko
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Line from 2 dots

Post by yorik »

But the line tool works? No error message?
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Post by demaxfa »

Running the Python command 'Draft_Line' failed:
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/Draft/draftTools.py", line 1277, in Activated
Creator.Activated(self,name)
File "/usr/lib/freecad/Mod/Draft/draftTools.py", line 1218, in Activated
rot = self.view.getCameraNode().getField("orientation").getValue()

No SWIG wrapped library loaded
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Line from 2 dots

Post by yorik »

Hm that was fixed a long time ago normally... Have you installed the python-pivy package?
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Line from 2 dots

Post by wmayer »

This happens if you built the sources yourself, haven't installed SWIG and the SWIG-wrapped library wasn't built with SWIG 1.3.25,1.3.33, 1.3.36, 1.3.38 or 1.3.40.

So, to fix this you must install SWIG, make sure that the SWIG-wrapped library was built with the same version (which is normally the case) and then rebuild FreeCAD.
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Post by demaxfa »

Well I didn't compiled it from source and i have pyton-pivy installed before freecad. Like I mentioned before I instaled from Wheezy repository and i instaled swig 2 times first and i reinstalled it and after every installation i run free cad and all ways same message. And after second installation I reboot but nothing?????
Darko
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Post by demaxfa »

To add For example I can make a cube and on that cube face draw something but in 3d space i can not make neither line nor dots nor circle all ways same message
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Line from 2 dots

Post by wmayer »

Ah, sorry I didn't read the initial posting. So, can you find out which SWIG version is the default on your system? And for the python-pivy package can you find out by which SWIG it was wrapped? If you open e.g. the file soqt.py you'll find at the top this information.
demaxfa
Posts: 9
Joined: Sun Feb 26, 2012 7:01 pm

Re: Line from 2 dots

Post by demaxfa »

SWIG is 2.0.4-5
This is in /usr/lib/pymodules/python2.6/pivy/gui

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.


"""
The soqt module is a wrapper for the SoQt library. The module will try
to import the sip module which is used for PyQt. If found the involved
wrapped Qt structures are converted to ones suitable for PyQt,
otherwise it will fall back to regular SWIG structures.
"""

This is in /usr/lib/pymodules/python2.7/pivy/gui

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.


"""
The soqt module is a wrapper for the SoQt library. The module will try
to import the sip module which is used for PyQt. If found the involved
wrapped Qt structures are converted to ones suitable for PyQt,
otherwise it will fall back to regular SWIG structures.
"""
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Line from 2 dots

Post by wmayer »

OK, thanks. I'll check if I can fix this. It is probably a bug in FreeCAD which doesn't work with Swig 2.x
Post Reply