lookatme icon indicating copy to clipboard operation
lookatme copied to clipboard

NameError: name 'fcntl' is not defined & AttributeError: 'NoneType' object has no attribute 'curr_slide'

Open laischaves opened this issue 3 years ago • 4 comments

Error message

Traceback (most recent call last):
  File "C:\Python310\lib\site-packages\lookatme\_main_.py", line 139, in main
    pres.run()
  File "C:\Python310\lib\site-packages\lookatme\pres.py", line 141, in run
    self.tui = lookatme.tui.create_tui(self, start_slide=start_slide)
  File "C:\Python310\lib\site-packages\lookatme\tui.py", line 364, in create_tui
    tui = MarkdownTui(pres, start_slide)
  File "C:\Python310\lib\site-packages\lookatme\tui.py", line 205, in _init_
    screen = urwid.raw_display.Screen()
  File "C:\Python310\lib\site-packages\urwid\raw_display.py", line 92, in _init_
    fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
NameError: name 'fcntl' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python310\Scripts\lookatme-script.py", line 33, in <module>
    sys.exit(load_entry_point('lookatme==2.3.2', 'console_scripts', 'lookatme')())
  File "C:\Python310\lib\site-packages\click\core.py", line 829, in _call_
    return self.main(*args, **kwargs)
  File "C:\Python310\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "C:\Python310\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python310\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "C:\Python310\lib\site-packages\lookatme\_main_.py", line 141, in main
    number = pres.tui.curr_slide.number + 1
AttributeError: 'NoneType' object has no attribute 'curr_slide'

To Reproduce

> lookatme .\pres.md

Screenshots image

Environment:

  • OS: Win 10
  • Version: 2.3.2

laischaves avatar Nov 13 '21 11:11 laischaves

I have the same problem. Same OS and version. Any news on this?

gorrioncillo avatar Dec 03 '21 11:12 gorrioncillo

Same problem. Same OS. I tried using several python versions 3.7-3.10, to no avail.

notjl avatar Jan 31 '22 14:01 notjl

I browse through the packages mentioned in the error. It seems lookatme is GNU/Linux strictly since urwid uses a module called fcntl.

notjl avatar Jan 31 '22 14:01 notjl

Hmm, you're right about the fcntl problem... let's keep this issue open and see what can be done.

d0c-s4vage avatar Dec 20 '22 14:12 d0c-s4vage