Giter Site home page Giter Site logo

Comments (4)

altendky avatar altendky commented on August 16, 2024

I haven't worked with curses, so maybe this doesn't apply. With Qt you have lots of callbacks for handling events. For every one of them I wanted an error handler that would pop up a dialog with (otherwise) uncaught exceptions. Rather than strewing that handling into every callback I used sys.excepthook to provide a universal handler. Anyways, it may not work here, it may cause other troubles, so... just mentioning. (presumably I won't do this as I shift towards structured concurrency what with moving towards QTrio)

from plotman.

egtalbot avatar egtalbot commented on August 16, 2024

I'll just add more data here. I ran into this when running in Terminal Window in Ubuntu and switching off the plotting machine in my HDMI switcher, plotman crashes when a plot ends (sorry for the lack of line breaks, this is how it pasted):

Traceback (most recent call last): File "/home/satan/programs/chia-blockchain/venv/bin/plotman", line 8, in <module> sys.exit(main()) File "/home/satan/programs/chia-blockchain/venv/lib/python3.8/site-packages/plotman/plotman.py", line 132, in main interactive.run_interactive() File "/home/satan/programs/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 360, in run_interactive curses.wrapper(curses_main) File "/usr/lib/python3.8/curses/__init__.py", line 105, in wrapper return func(stdscr, *args, **kwds) File "/home/satan/programs/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 278, in curses_main jobs_win.addstr(0, 0, reporting.status_report(jobs, n_cols, jobs_h, _curses.error: addwstr() returned ERR

from plotman.

g4m3r0 avatar g4m3r0 commented on August 16, 2024

I do get the same error running plotman interactive if the size of the console window is to small:

(venv) ubuntu@ubuntu-PowerEdge-T310:~/git/chia-blockchain$ plotman interactive
Traceback (most recent call last):
File "/home/ubuntu/git/chia-blockchain/venv/bin/plotman", line 8, in
sys.exit(main())
File "/home/ubuntu/git/chia-blockchain/venv/lib/python3.8/site-packages/plotman/plotman.py", line 171, in main
interactive.run_interactive()
File "/home/ubuntu/git/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 353, in run_interactive
curses.wrapper(curses_main)
File "/usr/lib/python3.8/curses/init.py", line 105, in wrapper
return func(stdscr, *args, **kwds)
File "/home/ubuntu/git/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 271, in curses_main
jobs_win.addstr(0, 0, reporting.status_report(jobs, n_cols, jobs_h,
_curses.error: addwstr() returned ERR

from plotman.

Klaudioz avatar Klaudioz commented on August 16, 2024

I just maximized the terminal, run it again and it worked.

from plotman.

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.