Main (#1) - FreeCAD no 3D! no Thumbnails! - SOLVED (#16) - Message List

FreeCAD no 3D! no Thumbnails! - SOLVED
 unsolved

Debian 6.0

openPLM rev 801

document3D rev 801

Hello I intall Debian 6.0 on VM , and install openPLM

{

a)add python-pisa in install packages ,

b)1.1.18 no need chown www-data:www-data /var/django/openPLM/trunk/openPLM/media/navigate

}

pythonOCC - from here  https://launchpad.net/~hmeyer/+archive/3d/+build/2908811

FreeCAD plugin from here  http://wiki.openplm.org/trac/browser/branches/3D/plugins/freecad

Ok I create FreeCAD ( http://src.lgg.ru/wp-content/uploads/2012/01/Снимок-Create-a-document...-1.png )document ,

but no appears Thumbnail( http://src.lgg.ru/wp-content/uploads/2012/01/3ddoc.png) and "3D" get

 Using the URLconf defined in openPLM.urls, Django tried these URL patterns, in this order:
   1. ^pdf/object/(?P<obj_type>\w+)/(?P<obj_ref>[^/?#\t\r\v\f]+)/(?P<obj_revi>[^/?#\t\r\v\f]+)/attributes/$
   2. ^pdf/user/(?P<obj_ref>[^/]+)/attributes/$
   3. ^pdf/group/(?P<obj_ref>[^/]+)/attributes/$
   4. (?P<obj_type>\w+)/(?P<obj_ref>[^/?#\t\r\v\f]+)/(?P<obj_revi>[^/?#\t\r\v\f]+)/pdf/$
   5. ^object/FreeCAD/([^/]+)/([^/]+)/attributes/$
   6. ^admin/
   7. ^i18n/setlang/
   8. ^(?:home/)?$
   9. ^accounts/?$
  10. ^(?:accounts/)?login/
  11. ^(?:accounts/)?logout/
  12. ^object/create/$
  13. ^comments/
  14. ^import/(?P<target>csv|bom|users)/$
.....
The current URL, object/Document3D/DOC_00004/a/3D/, didn't match any of these.

And another problem is how to create a lifecycle that he did not give this(state?):  http://src.lgg.ru/wp-content/uploads/2012/01/OutOfRange.png

  • Message #43

    Hi,

    Thanks for taking time to test openPLM.

    a) and b) I've updated the how-to and will update the website today.

    You are right, the freecad plugin does not upload thumbnails, we need to fix that.

    Today, I will try to synchronize the trunk with the 3D branch and fix all bugs I can find.

    To create a lifecycle from the admin interface:

    • You must create a Lifecycle object
    • Then you must create each State objects (including its official state)
    • An you must create a LifecycleState? object per state, the rank field is used to order the states.

    A lifecycle must have at least 3 states:

    1. a draft state
    2. optional states
    3. an official state
    4. a deprecated state

    You can name them as you like.

    You can also create a lifecycle with the shell:

    $ ./manage.py shell
    In [1]: from openPLM.plmapp.models import Lifecycle
    In [2]: from openPLM.plmapp.lifecycle import LifecycleList
    In [3]: Lifecycle.from_lifecyclelist(LifecycleList("mylifecycle", "official", "draft", "state2", "state3", "official", "deprecated"))
    Out[3]: <Lifecycle: Lifecycle<mylifecycle>>
    

    Regards

    • Message #45

      Ок , step by step instructions

      root@plmsigil:/var/django/openPLM/trunk/openPLM# svn up

      .....
      U    translate.sh
      U    urls.py
      Updated to revision 812.
      

      root@plmsigil:/var/django/openPLM/trunk/openPLM# cd document3D/

      root@plmsigil:/var/django/openPLM/trunk/openPLM/document3D# svn up

      D    templates/Nouveau document~
      D    templates/Display3D.htm~
      D    templates/Display3D (copie).htm~
      D    templates/thingiview.js~
      D    templates/DisplayDecompose.htm~
      D    templates/GenerateSimple.htm~
      D    templates/3d.htm~
      D    templates/auxdeltodo.htm~
      D    templates/aux.html~
      D    templates/3d.html~
      D    templates/DisplayObjectChild3D.htm~
      Updated to revision 812.
      

      root@plmsigil:/var/django/openPLM/trunk/openPLM# ./manage.py migrate

      root@plmsigil:/var/django/openPLM/trunk/openPLM# ./manage.py rebuild_index

      root@plmsigil:/var/django/openPLM/trunk/openPLM# service celeryd restart

      celeryd-multi v2.5.0
      > Stopping nodes...
      	> w1.plmsigil: TERM -> 7722
      > Waiting for 1 node.....
      	> w1.plmsigil: OK
      > Restarting node w1.plmsigil: OK
      

      root@plmsigil:/var/django/openPLM/trunk/openPLM# service apache2 restart

      Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
       ... waiting ...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
      .
      

      3D Again

      Page not found (404)
      Request Method: 	GET
      Request URL: 	http://192.168.0.150/object/Document3D/DOC_00004/a/3D/
      Using the URLconf defined in openPLM.urls, Django tried these URL patterns, in this order:
      The current URL, object/Document3D/DOC_00004/a/3D/, didn't match any of these.
      

      I download openplm from  svn://openplm.org/openPLM

      document3D I download from http://openplm.org/svn/openPLM/branches/3D/openPLM/document3D

      add in settings.py

      INSTALLED_APPS = (
      ......
          'openPLM.document3D',
      )
      

      Do I need change openPLM/urls.py ?

    • Message #46

      My files.... (rev 828) /var/django/openPLM/trunk/openPLM/settings.py

      INSTALLED_APPS = (
          'django.contrib.auth',
          'django.contrib.contenttypes',
          'django.contrib.sessions',
          'django.contrib.sites',
          'django.contrib.admin',
          'django.contrib.comments',
          'django.contrib.humanize',
          'djcelery',
          'haystack',
          'south',
          'openPLM.plmapp',
          'openPLM.pdfgen', # enable pdf generations
          # you can add your application after this line
          'openPLM.cad',
          'openPLM.computer',
          'openPLM.cae',
          'openPLM.office',
          'openPLM.document3D',
      )
      

      /var/django/openPLM/trunk/openPLM/urls.py

      # add custom application urls
      for app in settings.INSTALLED_APPS:
          if app.startswith("openPLM"):
              try:
                  __import__("%s.urls" % app, globals(), locals(), [], -1)
                  mod_patterns = getattr(sys.modules["%s.urls" % app], "urlpatterns")
                  urlpatterns += mod_patterns
              except ImportError:
                  pass
      

      /var/django/openPLM/trunk/openPLM/document3D/urls.py

      urlpatterns = patterns('',
          (r'^object/Document3D/([^/]+)/([^/]+)/3D/$', views.display_3d),
          (r'^object/([^/]+)/([^/]+)/([^/]+)/BOM-child/$', views.display_bomb_child),
          (r'^object/([^/]+)/([^/]+)/([^/]+)/decompose/([^/]+)/$', views.display_decompose),
          (r'^ajax/decompose/$', views.ajax_decompose_form),
      )
      

      And I get Error : Using the URLconf defined in openPLM.urls, Django tried these URL patterns, in this order:

      • Message #47

        Hi,

        The 3D branch adds some modification to files in plmapp/, so, adding only the document3D directory may not work.

        We will release a new version of openPLM this Friday. This release will include all 3D stuff so it should be easier to install it.

        • Message #48

          Hi,

          I've merged the 3D branch into the trunk. So, now you do not need to retrieve the document3D folder. The "openPLM.document3D" is still disabled by default (and will certainly stay disabled since it adds an heavy dependency). You will need to add it to the INSTALLED_APPS setting.

          Now, this app also depends on numpy (apt-get install python-numpy).

          There are two features you can test:

          1. create a document3D, add a step file and show it via the "3D" tab
          2. attach a document3D with a step file to a part, go to the "bom-child" tab, and decompose the part. It should show a form with all parts described in the step file and if you validate, it will create a complete bom.

          I've not yet created a tgz since this app is quite unstable (and it's 18h40 in France).

          • Message #49

            I can't view any document, and my search query don't work(no errors , no result).

            Request Method:  	POST
            Request URL: 	http://192.168.0.150/object/create/
            Django Version: 	1.2.3
            Exception Type: 	error
            Exception Value:
            [Errno 111] Connection refused
            Exception Location: 	/usr/local/lib/python2.6/dist-packages/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/transport.py in __init__, line 85
            Python Executable: 	/usr/bin/python
            Python Version: 	2.6.6
            Python Path: 	['/usr/local/lib/python2.6/dist-packages/odfpy-0.9.4-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/pygraphviz-1.1-py2.6-linux-i686.egg', '/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/celery-2.5.0-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/ordereddict-1.1-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/python_dateutil-1.5-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/anyjson-0.3.1-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/importlib-1.0.2-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/amqplib-1.0.2-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/django_celery-2.5.0-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/django_picklefield-0.2.0-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.6-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/LEPL-5.0.1-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/var/django/openPLM/trunk/', '/var/django/openPLM/trunk/openPLM']
            

            admins page work normal

            • Message #50

              Maybe celery cannot connect to rabbitmq (amqplib is related to celery).

              You can try to restart celeryd and rabbitmq. Another possibility is that your BROKEN_ settings (in settings.py) has been overwritten by an update (via svn update).

              There are logs in /var/log/celery/ and /var/log/rabbitmq/.

              Moreover, I fixed a bug yesterday, with recent versions of celery that could block document indexing by the search engine.

              • Message #51

                setting ok , restart ok

                Celeryd log

                    return fun(*args, **kwargs)
                  File "/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg/kombu/connection.py", line 174, in connect
                    return self.connection
                  File "/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg/kombu/connection.py", line 587, in connection
                    self._connection = self._establish_connection()
                  File "/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg/kombu/connection.py", line 547, in _establish_connection
                    conn = self.transport.establish_connection()
                  File "/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg/kombu/transport/amqplib.py", line 267, in establish_connection
                    connect_timeout=conninfo.connect_timeout)
                  File "/usr/local/lib/python2.6/dist-packages/kombu-2.1.1-py2.6.egg/kombu/transport/amqplib.py", line 77, in __init__
                    super(Connection, self).__init__(*args, **kwargs)
                  File "/usr/local/lib/python2.6/dist-packages/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/connection.py", line 129, in __init__
                    self.transport = create_transport(host, connect_timeout, ssl)
                  File "/usr/local/lib/python2.6/dist-packages/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/transport.py", line 281, in create_transport
                    return TCPTransport(host, connect_timeout)
                  File "/usr/local/lib/python2.6/dist-packages/amqplib-1.0.2-py2.6.egg/amqplib/client_0_8/transport.py", line 85, in __init__
                    raise socket.error, msg
                error: [Errno 111] Connection refused
                [2012-03-14 20:47:18,343: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 2 seconds...
                [2012-03-14 20:47:20,347: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 4 seconds...
                [2012-03-14 20:47:24,355: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 6 seconds...
                [2012-03-14 20:47:30,365: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 8 seconds...
                [2012-03-14 20:47:38,374: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 10 seconds...
                [2012-03-14 20:47:48,386: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 12 seconds...
                [2012-03-14 20:48:00,401: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 14 seconds...
                [2012-03-14 20:48:14,416: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 16 seconds...
                [2012-03-14 20:48:30,435: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 18 seconds...
                [2012-03-14 20:48:48,453: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 20 seconds...
                [2012-03-14 20:49:08,475: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 22 seconds...
                [2012-03-14 20:49:30,491: ERROR/MainProcess] Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 24 seconds...
                

                Rabbitmq log

                =INFO REPORT==== 28-Feb-2012::02:00:02 ===
                closing TCP connection <0.7805.0> from 127.0.0.1:50293
                =WARNING REPORT==== 28-Feb-2012::02:00:03 ===
                exception on TCP connection <0.7333.0> from 127.0.0.1:50241
                connection_closed_abruptly
                =INFO REPORT==== 28-Feb-2012::02:00:03 ===
                closing TCP connection <0.7333.0> from 127.0.0.1:50241
                =WARNING REPORT==== 28-Feb-2012::02:00:03 ===
                exception on TCP connection <0.7340.0> from 127.0.0.1:50246
                connection_closed_abruptly
                =INFO REPORT==== 28-Feb-2012::02:00:03 ===
                closing TCP connection <0.7340.0> from 127.0.0.1:50246
                =WARNING REPORT==== 28-Feb-2012::02:00:03 ===
                exception on TCP connection <0.7798.0> from 127.0.0.1:50288
                connection_closed_abruptly
                =INFO REPORT==== 28-Feb-2012::02:00:03 ===
                closing TCP connection <0.7798.0> from 127.0.0.1:50288
                =WARNING REPORT==== 28-Feb-2012::02:00:03 ===
                exception on TCP connection <0.7326.0> from 127.0.0.1:50237
                connection_closed_abruptly
                =INFO REPORT==== 28-Feb-2012::02:00:03 ===
                closing TCP connection <0.7326.0> from 127.0.0.1:50237
                
                • Message #52

                  Can you check if rabbitmq is running ? The commands service rabbitmq-server status and rabbitmqctl status report its status.

                  Moreover, rabbitmqctl list_user_permissions openplm should output something like this:

                  Listing permissions for user "openplm" ...
                  openplm	.*	.*	.*
                  ...done.
                  

                  Thanks

                  • Message #53

                    Ok problem with rabbitmq solved

                    root@plmsigil:/var/django/openPLM/trunk/openPLM#  service rabbitmq-server status
                    Status of all running nodes...
                    Node 'rabbit@plmsigil' with Pid 6514: not_running
                    done.
                    root@plmsigil:/var/django/openPLM/trunk/openPLM#  service rabbitmq-server start
                    Starting rabbitmq-server: SUCCESS
                    rabbitmq-server.
                    root@plmsigil:/var/django/openPLM/trunk/openPLM#  service rabbitmq-server status
                    Status of all running nodes...
                    Node 'rabbit@plmsigil' with Pid 17780: running
                    done.
                    

                    BUT '3D' tab looks like this  http://src.lgg.ru/wp-content/uploads/2012/03/3ddocument.png

                    pythonOCC instaled on the virtual server machine with openPLM

                    firefox tested on WebGL demo from here [url= http://www.khronos.org/webgl/wiki/Demo_Repository]

                    • Message #54

                      Hola

                      During this last week we have corrected some bug in the 3D visualization.

                      I suggest you update openPLM and retry it. You can test WEBGL in:

                      get.webgl.org

                      The generation of the view 3D is not instantaneous , in heavy files it can take several minutes.

                      Could you send us a capture of Firefox-> Tools -> WebDeveloper? -> WebConsole??

                      Buen fin de semana!

                      • Message #55

                        Web-Console output (screen  http://src.lgg.ru/wp-content/uploads/2012/03/ErrorsFirefox.png)

                        Разрешить написание латиницей
                        [05:19:36.123] Error when analyzing the values ​​of «filter». Lost ad. @ Http://192.168.0.150/media/css/openplm/jquery-ui.css:22
                        [05:19:36.133] Unknown property «zoom». Lost ad. @ Http://192.168.0.150/media/css/openplm/jquery-ui.css:330
                        [05:19:36.150] Error when analyzing the «background». Lost ad. @ Http://192.168.0.150/media/css/openplm.css:155
                        [05:19:36.159] Error when analyzing the values ​​of «filter». Lost ad. @ Http://192.168.0.150/media/css/openplm.css:160
                        [05:19:36.170] Unknown property «zoom». Lost ad. @ Http://192.168.0.150/media/css/chosen.css:6
                        [05:19:36.173] Error when analyzing the «background». Lost ad. @ Http://192.168.0.150/media/css/chosen.css:87
                        [05:19:36.181] Unknown property «-moz-background-clip». Lost ad. @ Http://192.168.0.150/media/css/chosen.css:104
                        [05:19:36.184] Error when analyzing the values ​​of «background-image». Lost ad. @ Http://192.168.0.150/media/css/chosen.css:119
                        [05:19:36.191] Error when analyzing the values ​​of «filter». Lost ad. @ Http://192.168.0.150/media/css/chosen.css:124
                        [05:19:36.358] controls is undefined @ http://192.168.0.150/object/Document3D/DOC_00001/a/3D/:325
                        [05:19:36.509] The method getAttributeNode () is deprecated. To replace it, use the method getAttribute (). @ Http://192.168.0.150/object/Document3D/DOC_00001/a/3D/
                        [05:19:36.511] object3D is not defined @ http://192.168.0.150/object/Document3D/DOC_00001/a/3D/:230
                        [05:19:36.518] controls is undefined @ http://192.168.0.150/object/Document3D/DOC_00001/a/3D/:325
                        
                        • Message #56

                          Hola

                          To check the correct functioning we go stepwise

                          1) link get.webgl.org work in your browser

                          2) Add step file into document3D

                          3) look the file log celery : /var/log/celery/w1.log to check

                          3.1)task openPLM.document3D.models.handle_step_file start

                          [2012-03-27 17:49:41,802: INFO/MainProcess] Got task from broker: openPLM.document3D.models.handle_step_file[6e63123d-c010-4d23-bd41-5675c846b4e0]

                          3.2)task openPLM.document3D.models.handle_step_file succeeded

                          [2012-03-27 17:54:01,154: INFO/MainProcess] Task openPLM.document3D.models.handle_step_file[6e63123d-c010-4d23-bd41-5675c846b4e0] SUCCEEDED in 259.341207027s: None

                          4) Check the TAB 3D , Does it work?

                          If do not work, let's continue with the checks

                          5) run django shell

                          cd /var/django/openPLM/trunk/openPLM/

                          ./manage.py shell

                          6) Locate the file step that you have just imported between the DocumentFiles?

                          In [1]: from openPLM.document3D.models import * In [2]: DocumentFile?.objects.all()

                          Out[2]: [<DocumentFile: DocumentFile<lampadina.STEP, Document<DOC_00001/Document3D/a>>>, <DocumentFile: DocumentFile<dm1-pe-214.stp, Document<DOC_00002/Document3D/a>>>, <DocumentFile: DocumentFile<cx5p.stp, Document<DOC_00006/Document3D/a>>>, <DocumentFile: DocumentFile<Planetary Gearbox.STEP, Document<DOC_00007/Document3D/a>>>, <DocumentFile: DocumentFile<Planetary Gearbox.STEP, Document<DOC_00003/Document3D/a>>>]

                          In [5]: doc_file=DocumentFile?.objects.all()[4]

                          7) Check doc_file has asociated one ArbreFile? and GeometryFiles?

                          In [26]: ArbreFile?.objects.filter(stp=doc_file) Out[26]: [<ArbreFile: ArbreFile object>]

                          In [27]: GeometryFile?.objects.filter(stp=doc_file) Out[27]: [<GeometryFile: GeometryFile<914:Planetary Gearbox.STEP, 85>>, <GeometryFile: GeometryFile<914:Planetary Gearbox.STEP, 84>>, <GeometryFile: GeometryFile<914:Planetary Gearbox.STEP, 83>>, <GeometryFile: GeometryFile<914:Planetary Gearbox.STEP, 66>>, '...(remaining elements truncated)...']

                          8) Check the TAB 3D in your browser and select View page source

                          9) Test if the files of geometry have been exported

                          <script type="text/javascript" src="/media/js/jquery.hoverIntent.minified.js"></script>

                          <script type="text/javascript" src="/media/js/3D/three-min.js"></script>

                          <script type="text/javascript" src="/media/3D/geo/28b7f593ccd095f68f76c3084aa3e0fb-6zv5x41.geo"></script> <script type="text/javascript" src="/media/3D/geo/28b7f593ccd095f68f76c3084aa3e0fb-ygsao3y.geo"></script> <script type="text/javascript" src="/media/3D/geo/28b7f593ccd095f68f76c3084aa3e0fb-a3vakl1.geo"></script> <script type="text/javascript" src="/media/3D/geo/28b7f593ccd095f68f76c3084aa3e0fb-k2kqenc.geo"></script> <script type="text/javascript" src="/media/3D/geo/28b7f593ccd095f68f76c3084aa3e0fb-xoonz8o.geo"></script>

                          10) Click on the link of some of the files and to check if it looks alike to

                          Computation for : High Speed Case_Dfaut var _85_914 = new THREE.Geometry(); var material_for_85_914 = new THREE.MeshBasicMaterial?({opacity:0.5,shading:THREE.SmoothShading}); _85_914.vertices.push(new THREE.Vertex(new THREE.Vector3(-55.1983,219.6629,110.0000))); _85_914.vertices.push(new THREE.Vertex(new THREE.Vector3(-55.9928,218.6274,95.0000))); _85_914.vertices.push(new THREE.Vertex(new THREE.Vector3(-55.9928,218.6274,110.0000))); ..... .....

                          11)Check if the menu javascript has been generated

                          following javascript declarations should appear in the page source

                          function menu() { element = document.createElement("div"); element.id="root"; element.innerHTML ="<li > <a href='#' onClick='change_part0(\"click\")'><b onClick='change_part0(\"click\")'></b>Gear Box </a><ul><li > <a href='#' onClick='change_part1(\"click\")'><b onClick='change_part1(\"click\")'></b>Flat Washer Narrow_AM_B18.22M - Plain washer, 10 mm, narrow </a><ul></ul></li><li > "; document.getElementById("menu_").appendChild(element); } var object3D = new THREE.Object3D(); var part0=new THREE.Object3D(); var object2=new THREE.Mesh(_0_914,material_for_0_914 );

                          12) do you see the object 3D?

                          Buenas tardes!

                          • Message #57

                            3.1) [2012-03-28 09:25:29,581: INFO/MainProcess] Got task from broker: openPLM.document3D.models.handle_step_file[deca9780-4249-4a74-987d-23794c5b1ad1]

                            3.2) Error

                            [2012-03-28 09:25:34,518: ERROR/MainProcess] Task openPLM.document3D.models.handle_step_file[deca9780-4249-4a74-987d-23794c5b1ad1] raised exception: OSError(13, 'Permission denied')
                            Traceback (most recent call last):
                              File "/usr/local/lib/python2.6/dist-packages/celery-2.5.0-py2.6.egg/celery/execute/trace.py", line 153, in trace_task
                                R = retval = task(*args, **kwargs)
                              File "/var/django/openPLM/trunk/openPLM/../openPLM/document3D/models.py", line 61, in handle_step_file
                                my_step_importer.procesing_geometrys()
                              File "/var/django/openPLM/trunk/openPLM/../openPLM/document3D/STP_converter_WebGL.py", line 101, in procesing_geometrys
                                mesh_shape(shape,path.encode(),"_"+str(i)+"_"+str(self.doc_file.id))
                              File "/var/django/openPLM/trunk/openPLM/../openPLM/document3D/mesh.py", line 62, in mesh_shape
                                os.makedirs(directory)
                              File "/usr/lib/python2.6/os.py", line 150, in makedirs
                                makedirs(head, mode)
                              File "/usr/lib/python2.6/os.py", line 157, in makedirs
                                mkdir(name, mode)
                            OSError: [Errno 13] Permission denied
                            

                            Problem with access rights?

                            • Message #58

                              Hello

                              Probably you need to execute the following instructions

                              cd /var/django/openPLM/trunk/openPLM

                              mkdir media/3D/

                              chown www-data:www-data media/3D

                              you can check this tutorial  http://wiki.openplm.org/docs/admin/applications/document3D/index.html#settings-py

                              Does it work?

                              • Message #59

                                Thank you!!! Thank you very much!!!!

                                Now I can translate the interface into Russian.

                                • Message #60

                                  :)

                                  If you find a bug in 3D view please contact us.

Attachments

No attachments created.