Bug#492280: import_dxf.py: SyntaxWarning: name 'oblist' is used prior to global declaration
* Cyril Brulebois [EMAIL PROTECTED] [20080724 22:52]: /usr/share/blender/scripts/blender/import_dxf.py:3879: SyntaxWarning: name 'oblist' is used prior to global declaration global oblist Thanks, I already knew about this one (see the date of the message to the developers list), but I didn't get any answer from upstream. I could try and fix it myself, but I don't want to break anything by accident. Further revisions of this very file contain huge modifications, so I can't really try and backport a fix. If there is no safe way to fix it you could use try: ... except SyntaxWarning: pass to hide the message or to display a comment like known issue, it breaks (nothing|this and that), see Debian bug #492280 Regards, Thomas -- [EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998 Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner pgpm9dbqIxcEQ.pgp Description: PGP signature
Bug#492280: import_dxf.py: SyntaxWarning: name 'oblist' is used prior to global declaration
Package: blender Version: 2.46+dfsg-3 Severity: normal During upgrade of blender in lenny a SyntaxWarning occurs: 1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Inst libdc1394-22 (2.0.2-1 Debian:testing) Inst libftgl2 (2.1.3~rc5-2 Debian:testing) Inst libswscale0 (0.svn20080206-8 Debian:testing) Inst blender [2.45-5+b1] (2.46+dfsg-3 Debian:testing) ... Setting up libdc1394-22 (2.0.2-1) ... Setting up libftgl2 (2.1.3~rc5-2) ... Setting up libswscale0 (0.svn20080206-8) ... Setting up blender (2.46+dfsg-3) ... /usr/share/blender/scripts/blender/import_dxf.py:3879: SyntaxWarning: name 'oblist' is used prior to global declaration global oblist -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (550, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages blender depends on: ii gettext [libgettextpo0 0.17-3GNU Internationalization utilities ii libalut0 1.1.0-2 OpenAL Utility Toolkit ii libavcodec51 0.svn20080206-8 ffmpeg codec library ii libavformat52 0.svn20080206-8 ffmpeg file format library ii libavutil490.svn20080206-8 ffmpeg utility library ii libc6 2.7-10GNU C Library: Shared libraries ii libdc1394-22 2.0.2-1 high level programming interface f ii libfreetype6 2.3.7-1 FreeType 2 font engine, shared lib ii libftgl2 2.1.3~rc5-2 library to render text in OpenGL u ii libgcc11:4.3.1-2 GCC support library ii libgl1-mesa-glx [libgl 7.0.3-5 A free implementation of the OpenG ii libglu1-mesa [libglu1] 7.0.3-5 The OpenGL utility library (GLU) ii libgsm11.0.12-1 Shared libraries for GSM speech co ii libilmbase61.0.1-2+nmu1 several utility libraries from ILM ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libogg01.1.3-4 Ogg Bitstream Library ii libopenal1 1:1.3.253-5 Software implementation of the Ope ii libopenexr61.6.1-3 runtime files for the OpenEXR imag ii libpng12-0 1.2.27-1 PNG library - runtime ii libraw1394-8 1.3.0-4 library for direct access to IEEE ii libsdl1.2debian1.2.13-2 Simple DirectMedia Layer ii libstdc++6 4.3.1-2 The GNU Standard C++ Library v3 ii libswscale00.svn20080206-8 ffmpeg video scaling library ii libtheora0 1.0~beta3-1 The Theora Video Compression Codec ii libvorbis0a1.2.0.dfsg-3.1The Vorbis General Audio Compressi ii libvorbisenc2 1.2.0.dfsg-3.1The Vorbis General Audio Compressi ii libx11-6 2:1.1.4-2 X11 client-side library ii libxi6 2:1.1.3-1 X11 Input extension library ii python 2.5.2-1 An interactive high-level object-o ii python-support 0.8.4 automated rebuilding support for P ii python2.5 2.5.2-6 An interactive high-level object-o ii ttf-dejavu 2.25-1Metapackage to pull in ttf-dejavu- ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime blender recommends no packages. Versions of packages blender suggests: ii libtiff43.8.2-10 Tag Image File Format (TIFF) libra ii yafray 0.0.9+dfsg-1 a modern, xml-speaking raytracing- -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#492280: import_dxf.py: SyntaxWarning: name 'oblist' is used prior to global declaration
forwarded 492280 http://lists.blender.org/pipermail/bf-committers/2008-May/020971.html thanks Thomas Arendsen Hein [EMAIL PROTECTED] (24/07/2008): During upgrade of blender in lenny a SyntaxWarning occurs: 1 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Inst libdc1394-22 (2.0.2-1 Debian:testing) Inst libftgl2 (2.1.3~rc5-2 Debian:testing) Inst libswscale0 (0.svn20080206-8 Debian:testing) Inst blender [2.45-5+b1] (2.46+dfsg-3 Debian:testing) ... Setting up libdc1394-22 (2.0.2-1) ... Setting up libftgl2 (2.1.3~rc5-2) ... Setting up libswscale0 (0.svn20080206-8) ... Setting up blender (2.46+dfsg-3) ... /usr/share/blender/scripts/blender/import_dxf.py:3879: SyntaxWarning: name 'oblist' is used prior to global declaration global oblist Thanks, I already knew about this one (see the date of the message to the developers list), but I didn't get any answer from upstream. I could try and fix it myself, but I don't want to break anything by accident. Further revisions of this very file contain huge modifications, so I can't really try and backport a fix. Mraw, KiBi. signature.asc Description: Digital signature