Code Monkey home page Code Monkey logo

Comments (1)

pafonta avatar pafonta commented on June 1, 2024

Attempting to create a new annotation of type 'position' gives the following stack trace.

It might reveal the origin of the bug: Ghostscript is not found.

wand.exceptions.DelegateError: FailedToExecuteCommand `'gs'

Traceback (most recent call last):
  File "/Users/fonta/repos/neurocurator/neurocurator/areaSelector.py", line 33, in run
    with Image(filename=self.parent.fileName, resolution=self.parent.resolution) as pdf:
  File "/Users/fonta/conda/envs/pc3.4/lib/python3.4/site-packages/wand/image.py", line 2744, in __init__
    self.read(filename=filename, resolution=resolution)
  File "/Users/fonta/conda/envs/pc3.4/lib/python3.4/site-packages/wand/image.py", line 2822, in read
    self.raise_exception()
  File "/Users/fonta/conda/envs/pc3.4/lib/python3.4/site-packages/wand/resource.py", line 222, in raise_exception
    raise e
wand.exceptions.DelegateError: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pamcmyk32' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r150x150' -dUseCIEColor  '-sOutputFile=/var/folders/fk/53tx0z910vq3r01tx4_9mzb1t8mgbm/T/magick-12277QLzCtgdwfqza%d' '-f/var/folders/fk/53tx0z910vq3r01tx4_9mzb1t8mgbm/T/magick-122777DdLmPzr3HDx' '-f/var/folders/fk/53tx0z910vq3r01tx4_9mzb1t8mgbm/T/magick-12277RMA8bWAMCzN6'' (1) @ error/pdf.c/InvokePDFDelegate/292

Traceback (most recent call last):
  File "/Users/fonta/repos/neurocurator/neurocurator/areaSelector.py", line 82, in pdfRendered
    self.selectDlg = PDFAreaSelectorDlg(self)
  File "/Users/fonta/repos/neurocurator/neurocurator/areaSelector.py", line 172, in __init__
    self.loadImage()
  File "/Users/fonta/repos/neurocurator/neurocurator/areaSelector.py", line 191, in loadImage
    image = QtGui.QImage.fromData(self.parent.pages[self.parent.currentPageInd],"PNG");
IndexError: list index out of range

from neurocurator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.