GithubHelp home page GithubHelp logo

Comments (4)

cdalitz avatar cdalitz commented on August 12, 2024

Thanks for reporting this. Can you please provide a small script that causes this error?

from gamera-4.

FriedrichFroebel avatar FriedrichFroebel commented on August 12, 2024

This is part of the GUI and therefore probably hard to put into a script:

Traceback (most recent call last):
  File "/home/jsbien/.local/lib/python3.9/site-packages/gamera/gui/classifier_display.py", line 1455, in _OnSaveSelectedAsImages
    self._OnSaveAsImages(list)
  File "/home/jsbien/.local/lib/python3.9/site-packages/gamera/gui/classifier_display.py", line 1468, in _OnSaveAsImages
    glyphs.sort(lambda g1,g2: cmp(g1.get_main_id().lower(),g2.get_main_id().lower()))
TypeError: sort() takes no positional arguments

This could be fixed by replacing

glyphs.sort(lambda g1,g2: cmp(g1.get_main_id().lower(),g2.get_main_id().lower()))
with

         glyphs.sort(key=lambda g: g.get_main_id().lower())

from gamera-4.

cdalitz avatar cdalitz commented on August 12, 2024

Thanks to @FriedrichFroebel for the quick fix, which I have uploaded to github.
@jsbien, can you please check whether this solves your problem?

from gamera-4.

jsbien avatar jsbien commented on August 12, 2024

Yes, it works now. Thank you very much!

from gamera-4.

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.