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

Postby demaxfa » Sun Feb 26, 2012 7:05 pm

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
Site Admin
Posts: 11978
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Line from 2 dots

Postby yorik » Sun Feb 26, 2012 11:05 pm

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

Re: Line from 2 dots

Postby demaxfa » Tue Feb 28, 2012 4:12 pm

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
Site Admin
Posts: 11978
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Line from 2 dots

Postby yorik » Tue Feb 28, 2012 4:21 pm

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

Re: Line from 2 dots

Postby wmayer » Tue Feb 28, 2012 4:38 pm

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

Postby demaxfa » Tue Feb 28, 2012 6:29 pm

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

Postby demaxfa » Tue Feb 28, 2012 6:31 pm

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
Site Admin
Posts: 16091
Joined: Thu Feb 19, 2009 10:32 am

Re: Line from 2 dots

Postby wmayer » Tue Feb 28, 2012 6:47 pm

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

Postby demaxfa » Wed Feb 29, 2012 5:51 pm

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
Site Admin
Posts: 16091
Joined: Thu Feb 19, 2009 10:32 am

Re: Line from 2 dots

Postby wmayer » Wed Feb 29, 2012 6:27 pm

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