Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: HOWTO: Install Graphite One on Ubuntu

  1. #1
    Join Date
    Nov 2004
    Beans
    34

    HOWTO: Install Graphite One on Ubuntu

    I have been looking for a good CAD program that I can use in Linux around the house. GraphiteOne seems to satisfy this niche quite well. However it was troublesome to install. I figured that some people might benefit from a How to as most of the information to install on Ubuntu is in French. (Google translation leaves much to be desired) Below is a compiled information that I found along with my own implementations on how to install GraphiteOne (yes, in English).

    A warning: This process utilizes rpms; install at your own risk. I am not responsible for any damage caused by this guide. That being said, I will try to help out as much as I can but I am new to Linux.

    Step 1:
    Download Graphite One libraries and 3D modeling packages from http://www.graphiteone-cad.com/en/index.htm. (you can optionally download the KDE integration package if you have Kubuntu installed)
    Step 2:
    Install alien from the repositories:
    Code:
    sudo apt-get install alien
    Select yes when it asks to install all packages
    Step 3:
    Use alien to convert the rpms into debs:
    Code:
    sudo alien -c -d graphiteone-3d-design-1.3-1-free.rpm
    Code:
    sudo alien -c -d graphiteone-libs-1.3-1-suse93.rpm
    Optionally:
    Code:
    sudo alien -c -d graphiteone-kde-1.3-1-suse93.rpm
    Step 4:
    Install the packages using dpkg in the following order:
    Code:
    sudo dpkg -i graphiteone-libs_1.3-2_i386.deb
    Code:
    sudo dpkg -i graphiteone-3d-design_1.3-2_i386.deb
    Optionally:
    Code:
    sudo dpkg -i graphiteone-kde-1.3-2_i386.deb
    Step 5:
    You need to change the permissions on the files in the lib directory to be writable. First change directories:
    Code:
    cd /opt/GraphiteOne/lib
    then change permissions:
    Code:
    sudo chmod +w *
    Step 6:
    You need to edit two files to change the encoding. Make the following line:
    Code:
    # coding=utf-8
    the first line of the two files opened with the following commands:
    Code:
    sudo gedit graphiteoneutils.py
    Code:
    sudo gedit graphiteonedxfreader.py
    make sure to save the files, then exit gedit.
    Step 7:
    Create a launcher for the program that will show up under graphics in the main menu. To do this utilize the following commands:
    Code:
    sudo gedit /usr/share/applications/GraphiteOne.desktop
    Once that is open copy the following into the new file:
    Code:
    [Desktop Entry]
    Version=1.3
    Encoding=UTF-8
    Type=Application
    Name=Graphite One
    Comment=Model 3D objects
    Exec=bash /opt/GraphiteOne/bin/graphiteone --ogl=yes
    Icon=/opt/GraphiteOne/data/hi48-app-graphiteone.png
    Categories=Graphics;3DGraphics;CAD;
    Save the file and exit gedit. You should now have a launcher under the Graphics section of the Applications menu.
    You are now done. Enjoy.

    -xethm55

    P.S. This is my first HOWTO any feedback would be appreciated.

    Sources:
    http://forum.ubuntu-fr.org/viewtopic.php?pid=989439
    http://doc.ubuntu-fr.org/graphiteone
    http://www.linuxgraphic.org/forums/viewtopic.php?t=2669

  2. #2
    Join Date
    May 2007
    Location
    Melbourne, Australia
    Beans
    55
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Install Graphite One on Ubuntu

    Hi xethm55,

    I followed your HOWTO but i seem to have an API mismatch. Here is the terminal output:

    Code:
    jack@Star-Ship-Omega:~$ bash /opt/GraphiteOne/bin/graphiteone --ogl=yes
    /opt/GraphiteOne/lib/HPY.py:2: RuntimeWarning: Python C API version mismatch for module HPYc: This Python has API version 1013, module HPYc has version 1012.
      import HPYc
    /opt/GraphiteOne/lib/qt.py:46: RuntimeWarning: Python C API version mismatch for module libsip: This Python has API version 1013, module libsip has version 1012.
      import libsip
    /opt/GraphiteOne/lib/qt.py:46: RuntimeWarning: Python C API version mismatch for module libsip: This Python has API version 1013, module libsip has version 1012.
      import libsip
    /opt/GraphiteOne/lib/qt.py:50: RuntimeWarning: Python C API version mismatch for module libqtc: This Python has API version 1013, module libqtc has version 1012.
      import libqtc
    /opt/GraphiteOne/lib/qt.py:50: RuntimeWarning: Python C API version mismatch for module libqtc: This Python has API version 1013, module libqtc has version 1012.
      import libqtc
    /opt/GraphiteOne/lib/qtxml.py:38: RuntimeWarning: Python C API version mismatch for module libqtxmlc: This Python has API version 1013, module libqtxmlc has version 1012.
      import libqtxmlc
    X Error: BadDevice, invalid or uninitialized input device 169
      Major opcode:  147
      Minor opcode:  3
      Resource id:  0x0
    Failed to open device
    X Error: BadDevice, invalid or uninitialized input device 169
      Major opcode:  147
      Minor opcode:  3
      Resource id:  0x0
    Failed to open device
    /opt/GraphiteOne/lib/oc.py:6: RuntimeWarning: Python C API version mismatch for module libocc: This Python has API version 1013, module libocc has version 1012.
      import libocc
    GOneStatusBar : running without parametric design extension
    GOnePersistentElement : running without parametric design extension
    Traceback (most recent call last):
      File "/opt/GraphiteOne/lib/graphiteone.py", line 15, in <module>
        from graphiteoneapplication import GOneApplication
      File "/opt/GraphiteOne/lib/graphiteoneapplication.py", line 25, in <module>
        from graphiteoneframe import *
      File "/opt/GraphiteOne/lib/graphiteoneframe.py", line 21, in <module>
        from graphiteonemenudata import *
      File "/opt/GraphiteOne/lib/graphiteonemenudata.py", line 15, in <module>
        from graphiteonemenuwidget import *
      File "/opt/GraphiteOne/lib/graphiteonemenuwidget.py", line 16, in <module>
        from graphiteoneparteditor import *
      File "/opt/GraphiteOne/lib/graphiteoneparteditor.py", line 15, in <module>
        from graphiteonepartelement import GOnePartElement
      File "/opt/GraphiteOne/lib/graphiteonepartelement.py", line 22, in <module>
        from graphiteonepartshadowelement import GOnePartShadowElement
      File "/opt/GraphiteOne/lib/graphiteonepartshadowelement.py", line 18, in <module>
        from graphiteonetciohandler import GOneTCIOElementHandler
      File "/opt/GraphiteOne/lib/graphiteonetciohandler.py", line 25, in <module>
        from graphiteoneworkingplane import GOneWorkingPlane
      File "/opt/GraphiteOne/lib/graphiteoneworkingplane.py", line 19, in <module>
        from graphiteoneutils import TC_TrsfToHoopsMatrix
      File "/opt/GraphiteOne/lib/graphiteoneutils.py", line 2
        """
        ^
    IndentationError: unexpected indent
    jack@Star-Ship-Omega:~$
    Any idea how to fix this?

    Thanks

  3. #3
    Join Date
    Feb 2005
    Location
    Israel
    Beans
    8

    Re: HOWTO: Install Graphite One on Ubuntu

    Thanks for the tutorial but I am having similar problems with
    some sort of incompatability with python.

    David

  4. #4
    Join Date
    Oct 2007
    Beans
    16
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install Graphite One on Ubuntu

    i'm having a problem:

    vincen-zoo@vincenzoo:/opt/GraphiteOne/lib$ graphiteone --ogl=yes
    /usr/bin/graphiteone: 19: function: not found
    usage : graphiteone [options]
    Options:
    --ogl=[yes|no] Enable/Disable OpenGL display driver (default is no).
    --fsaa-mode=[0..5] Enable FSAA mode for nVidia graphic cards (experimental!).
    --python=[python executable] The python executable to use (default is python).
    --paths=[path:...] More entries for PYTHONPATH.

    can i do something?

  5. #5
    Join Date
    Jul 2006
    Location
    Brisbane, Australia
    Beans
    48

    Question Re: HOWTO: Install Graphite One on Ubuntu

    Thanks for the guide xethm55. Mine is returning a error regarding the coding

    Code:
    SyntaxError: Non-ASCII character '\xf8' in file /opt/GraphiteOne/lib/graphiteoneutils.py on line 802, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
    I just inserted the coding line after the import statements, im thinking that may be wrong. Were did you insert this line?



    Hayesio - Python is picky about indenting

    Code:
    File "/opt/GraphiteOne/lib/graphiteoneutils.py", line 2
        """
        ^
    IndentationError: unexpected indent
    Open that file and check there is no indents.

    Thanks
    SlingShot
    Last edited by Slingshot; November 9th, 2007 at 02:01 PM.

  6. #6
    Join Date
    Nov 2004
    Beans
    34

    Re: HOWTO: Install Graphite One on Ubuntu

    First of all I would like to appologize about taking so long.

    Hayesio: please post your graphiteoneutils.py file. It seems that there is some problem with that file.

    dwende: What is the output of running
    Code:
    bash /opt/GraphiteOne/bin/graphiteone --ogl=yes
    from the terminal

    vincenzoo: what happens if you omit the --ogl=yes part? I remember running into this, however I cannot remember what the solution was. I am trying to recreate this problem, I will let you know if I find a solution

    Slingshot: The encoding line has to be the first line of the file with no indentations at all

  7. #7
    Join Date
    Jul 2006
    Location
    Brisbane, Australia
    Beans
    48

    Re: HOWTO: Install Graphite One on Ubuntu

    Hi xethm55

    Still returning the same error. Im no python programmer, but isnt # used for comments in python?

    Code:
    File "/opt/GraphiteOne/lib/graphiteoneutils.py", line 802
    SyntaxError: Non-ASCII character '\xf8' in file /opt/GraphiteOne/lib/graphiteoneutils.py on line 802, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
    What version of Ubuntu are you running? Im running Gutsy. This is the line in question with the for loop

    Code:
    def TC_TextReplaceMetaChars(text):
    	for metachars in [('%%c','ø'),('%%p','%c'%177),('%%d','%c'%176)]:
    		text = text.replace(metachars[0],metachars[1])
    	return text
    I found this site http://zeirus.wordpress.com/2007/07/...-gutsy-gibbon/ using google translator I think he suggest using this.

    Code:
    coding # = utf-8
    that returns

    Code:
    john@forsaken:/opt/GraphiteOne/bin$ bash ./graphiteone --ogl=yes
    Traceback (most recent call last):
      File "/opt/GraphiteOne/lib/graphiteone.py", line 15, in <module>
        from graphiteoneapplication import GOneApplication
      File "/opt/GraphiteOne/lib/graphiteoneapplication.py", line 1, in <module>
        coding # = utf-8
    NameError: name 'coding' is not defined
    Traceback (most recent call last):
      File "/opt/GraphiteOne/lib/graphiteonesplashscreen.py", line 16, in <module>
        from qt import Qt
      File "/opt/GraphiteOne/lib/qt.py", line 1, in <module>
        coding # = utf-8
    NameError: name 'coding' is not defined
    EDIT Nevermind. I re-installed the .deb packages and added the coding line as you suggested and like magic it worked. now just got to get my Solidworks focused brain around GraphiteOne. Many thanks xethm55
    Last edited by Slingshot; November 14th, 2007 at 03:38 PM. Reason: Fixed

  8. #8
    Join Date
    Oct 2007
    Beans
    8

    Re: HOWTO: Install Graphite One on Ubuntu

    I just got GraphiteOne running. It only took about 6 hours
    I found a couple of files that had bad characters in them "non-ascii text"
    Both were zero's.

    First in graphiteoneutils.py
    if you run graphiteone from a terminal it will tell you the line with the problem it's between 800-900 can't remeber exactly which one.
    from a terminal
    sudo -s
    nautilus
    find graphiteoneutils.py and change the permissions to read-write
    gedit graphiteutils.py change the bad zero and save the file.

    I found the same problem in graphiteonedxfreader.py
    follow the procedure above and change the character.

    After this the program launched.

    I hope this helps!
    Paul

  9. #9
    Join Date
    Oct 2007
    Beans
    8

    Re: HOWTO: Install Graphite One on Ubuntu

    I forgot one additional change I needed to make.

    In usr/bin/
    Open graphiteone and remove the "#" in the first line of the file.
    When you open the file the first line looks like this
    #! /bin/sh
    It should be as follows
    ! /bin/sh

    BTW - I have thrown all different types of values at the variables below and haven't noticed any change.
    ogl="yes"
    fsaa_mode="0"
    params=""
    python="python"
    mybase=/opt/GraphiteOne
    paths=""
    Last edited by superchargingmachine; December 16th, 2007 at 03:21 PM.

  10. #10
    Join Date
    Aug 2007
    Beans
    67

    Re: HOWTO: Install Graphite One on Ubuntu

    Thanks for this how-to. Would you mind if I posted this ( with a few modifications ) on fedora's forums. I will of course give you the credit.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •