Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53803

Re: how to trouble shoot - RuntimeError: Open Failed

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Open': 0.05; 'developer.': 0.07; 'skip:" 60': 0.07; 'tkinter': 0.07; 'callback': 0.09; 'failed:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'api': 0.11; 'jan': 0.12; '55,': 0.16; 'filename,': 0.16; 'lambda:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'error': 0.23; 'possibly': 0.26; 'skip:" 40': 0.26; 'skip:v 30': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'converting': 0.30; 'code': 0.31; '"",': 0.31; 'img': 0.31; 'file': 0.32; 'open': 0.33; 'up.': 0.33; '(most': 0.33; 'not.': 0.33; 'there': 0.35; 'skip:" 50': 0.36; 'should': 0.36; 'skip:o 20': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'remove': 0.60; 'full': 0.61; 'received:173': 0.61; 'first': 0.61; 'information': 0.63; 'such': 0.63; 'here': 0.66; 'received:fios.verizon.net': 0.84; 'tossing': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: how to trouble shoot - RuntimeError: Open Failed
Date Fri, 06 Sep 2013 14:49:57 -0400
References <8e84343f-1eff-4ed4-bfa7-aaf5755b5114@googlegroups.com> <b8ub8oFelgnU1@mid.individual.net> <3d5be177-cda2-4612-9117-a2ed9a448f6d@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
In-Reply-To <3d5be177-cda2-4612-9117-a2ed9a448f6d@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.132.1378493422.5461.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378493422 news.xs4all.nl 15925 [2001:888:2000:d::a6]:37505
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53803

Show key headers only | View raw


On 9/6/2013 1:05 PM, stas poritskiy wrote:
> The code in development is mine, and i am using the API provided by a main developer.
>
> At the moment, i am not using any try/except functionality.
>
> here is the full Exception output:
> [CODE]
> Exception in Tkinter callback
> Traceback (most recent call last):
>    File "C:\Python27\32bit\lib\lib-tk\Tkinter.py", line 1470, in __call__
>      return self.func(*args)
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\gui.py", line 59, in <lambda>
>      cmd1 = lambda: vntProcessor.colData(folders.path, folders.subFolders)
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\vntProcessor.py", line 184, in colData
>      setVars()
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\vntProcessor.py", line 79, in __call__
>      self.batchFiles()
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\vntProcessor.py", line 55, in batchFiles
>      self.vntConnect.createVNTobjects(self.vntObjMgroup.keyList, self.vntLtoF.keyValList, self.vntObjFile.keyList, myPath)
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\vntProcessor.py", line 113, in createVNTobjects
>      self.createImage(groupName, layerName, fileName, imagePath, self.vntGroups)
>    File "E:\sporitskiy\HON\Project\scene7\s7operator\vntProcessor.py", line 137, in createImage
>      img = open_image(imageFile)
>    File "<string>", line 2, in open_image
>    File "C:\Python27\32bit\lib\site-packages\s7vampy\arg_validator.py", line 213, in __call__
>      return func(*args, **keywords)
>    File "C:\Python27\32bit\lib\site-packages\s7vampy\image.py", line 181, in open_image
>      return Image(_S7VAM_IMAGE.Open(filename))
> RuntimeError: Open Failed: 'C:/Users/sporitskiy/Desktop/Practice/HIWM2MSB/hiwm2mpa_upholstery_esq_leather_ro_12_0001.tif'

We were confused because the failed open should be an IOError. If Image 
is indeed converting such to RuntimeError, it should not. It should just 
let the original error bubble up. It is possibly tossing information in 
the process. The first thing I would do is to look at the code around 
that line in image.py and remove the exception replacement if there is one.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to trouble shoot - RuntimeError: Open Failed stas poritskiy <stascrash@gmail.com> - 2013-09-06 08:00 -0700
  Re: how to trouble shoot - RuntimeError: Open Failed Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-06 15:27 +0000
  Re: how to trouble shoot - RuntimeError: Open Failed Neil Cerutti <neilc@norwich.edu> - 2013-09-06 15:39 +0000
    Re: how to trouble shoot - RuntimeError: Open Failed stas poritskiy <stascrash@gmail.com> - 2013-09-06 10:05 -0700
      Re: how to trouble shoot - RuntimeError: Open Failed Terry Reedy <tjreedy@udel.edu> - 2013-09-06 14:49 -0400
        Re: how to trouble shoot - RuntimeError: Open Failed stas poritskiy <stascrash@gmail.com> - 2013-09-06 12:28 -0700

csiph-web