Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interactive mode not working #298

Open
grobalt opened this issue May 9, 2021 · 14 comments
Open

interactive mode not working #298

grobalt opened this issue May 9, 2021 · 14 comments

Comments

@grobalt
Copy link

grobalt commented May 9, 2021

Plotmanager itself is running, startet 16 jobs and i can see them with status
But with interactive this happens:

(venv) patrick@epyc:~/chia-blockchain$ plotman interactive
Traceback (most recent call last):
  File "/home/patrick/chia-blockchain/venv/bin/plotman", line 8, in <module>
    sys.exit(main())
  File "/home/patrick/chia-blockchain/venv/lib/python3.8/site-packages/plotman/plotman.py", line 171, in main
    interactive.run_interactive()
  File "/home/patrick/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/patrick/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 267, in curses_main
    header_win.addnstr(' (remote)', linecap)
_curses.error: addnwstr() returned ERR
(venv) patrick@epyc:~/chia-blockchain$ 
@spirifoxy

This comment has been minimized.

@thomann061
Copy link

This happens when the window is not large enough to display plotman interactive. Expand the window.

@emersonnevesjr
Copy link

This happens when the window is not large enough to display plotman interactive. Expand the window.

was having this same problem and you are right, just expand the window and it works.

@agustinmono
Copy link

i have it on full screen but i have the same problem , any idea?

@jameswood

This comment has been minimized.

@jameswood

This comment has been minimized.

@Monstarules
Copy link

The following fixes do not work everywhere:

  • Changing the stty size
  • Ignoring stty size
  • Expanding the window
  • Adding a secondary temp directory

This is an actual bug, the proper solution lies within fixing the plotman code itself.

@mcybz
Copy link

mcybz commented May 12, 2021

@Monstarules I wonder if the terminal program and OS you using maes a difference. Everyone getting errors are you using Putty on Windows?

@jameswood
Copy link

jameswood commented May 12, 2021

@Monstarules I wonder if the terminal program and OS you using maes a difference. Everyone getting errors are you using Putty on Windows?

I'm using Terminal on a Mac.

I think it's important to note than when the Terminal window is too small, I get a different (and very useful!) error:

Traceback (most recent call last):
  File "/home/james/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 334, 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/james/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 255, in curses_main
    header_win.addnstr('  archive=', linecap, curses.A_BOLD)
_curses.error: addnwstr() returned ERR

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/james/chia-blockchain/venv/bin/plotman", line 8, in <module>
    sys.exit(main())
  File "/home/james/chia-blockchain/venv/lib/python3.8/site-packages/plotman/plotman.py", line 173, in main
    interactive.run_interactive()
  File "/home/james/chia-blockchain/venv/lib/python3.8/site-packages/plotman/interactive.py", line 336, in run_interactive
    raise TerminalTooSmallError(
plotman.interactive.TerminalTooSmallError: Your terminal may be too small, try making it bigger.

When the terminal really is too small, the error is: Your terminal may be too small, try making it bigger, not 'tuple' object has no attribute 'known'

@altendky
Copy link
Collaborator

@spirifoxy, sounds like an unrelated issue. If it is still present on the development branch now then please file another issue.

Other than here, I have not heard of curses errors that were not resolved by increasing the terminal size. Of course, that doesn't mean they don't exist. I'm working on switching away from curses to something a bit more pleasant that will hopefully make this all a bit more graceful.

For the replies saying they are having the same problem regardless of terminal size, which problem? There were two unrelated tracebacks. If you aren't having the first traceback then please file a separate ticket or get help in the plotman channel on keybase. Do try with latest development so you have all the recent (including this evening) fixes.

@jameswood
Copy link

For the replies saying they are having the same problem regardless of terminal size, which problem?

Oh no — I was having the second, unrelated problem. Sorry about that! Posting while tired I'm afraid. Excited to try the latest build right now!

@agustinmono
Copy link

@spirifoxy, sounds like an unrelated issue. If it is still present on the development branch now then please file another issue.

Other than here, I have not heard of curses errors that were not resolved by increasing the terminal size. Of course, that doesn't mean they don't exist. I'm working on switching away from curses to something a bit more pleasant that will hopefully make this all a bit more graceful.

For the replies saying they are having the same problem regardless of terminal size, which problem? There were two unrelated tracebacks. If you aren't having the first traceback then please file a separate ticket or get help in the plotman channel on keybase. Do try with latest development so you have all the recent (including this evening) fixes.

Im still having this problem, i really dont know how to solve it // plotman 0.2 // plotman is plotting fine, but cant use interactive mode

image

@altendky
Copy link
Collaborator

@jameswood it happens, there's a lot to keep track of. :]

@agustinmono that is not this problem. Note how the exception you get is unrelated to the exception reported in the original post for this issue. Try using the development branch and see if it is fixed or wait for me to get v0.3 released and install that.

All, I'm going to hide the tuple traceback post in hopes we can keep this issue on the original topic.

@cujo0072
Copy link

cujo0072 commented Jun 6, 2021

I changed my term font size from 16 down to 12. That allowed it to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants