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

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

Open
laischaves opened this issue Nov 13, 2021 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@laischaves
Copy link

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 laischaves added the bug Something isn't working label Nov 13, 2021
@gorrioncillo
Copy link

gorrioncillo commented Dec 3, 2021

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

@notjl
Copy link

notjl commented Jan 31, 2022

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

@notjl
Copy link

notjl commented Jan 31, 2022

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

@d0c-s4vage d0c-s4vage added this to the v3.0 milestone Oct 1, 2022
@d0c-s4vage
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants