Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Aug 2024 19:40:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280697] editors/fileobj fails to start due to a curses error
Message-ID:  <bug-280697-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280697

            Bug ID: 280697
           Summary: editors/fileobj fails to start due to a curses error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: np@FreeBSD.org

I'm not able to run fileobj on a recent 14.1-STABLE system.

$ uname -a
FreeBSD dwarf 14.1-STABLE FreeBSD 14.1-STABLE #17
stable/14-n268102-6b1f530935c: Fri Jul 12 09:41:20 PDT 2024=20=20=20=20
root@dwarf:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
$ pkg info -I fileobj
fileobj-0.8.6_1                Portable hex editor with vi like interface
$ fileobj
Traceback (most recent call last):
  File "/usr/local/bin/fileobj", line 29, in <module>
    import fileobj.core
  File "/usr/local/lib/python3.11/site-packages/fileobj/core.py", line 30, =
in
<module>
    from . import allocator
  File "/usr/local/lib/python3.11/site-packages/fileobj/allocator.py", line=
 24,
in <module>
    from . import fileobj
  File "/usr/local/lib/python3.11/site-packages/fileobj/fileobj.py", line 3=
4,
in <module>
    from . import screen
  File "/usr/local/lib/python3.11/site-packages/fileobj/screen.py", line 33=
, in
<module>
    from . import ncurses as _screen
  File "/usr/local/lib/python3.11/site-packages/fileobj/ncurses.py", line 2=
9,
in <module>
    from . import kbd
  File "/usr/local/lib/python3.11/site-packages/fileobj/kbd.py", line 47, in
<module>
    _KEY_RESIZE    =3D curses.KEY_RESIZE
                     ^^^^^^^^^^^^^^^^^
AttributeError: module 'curses' has no attribute 'KEY_RESIZE'. Did you mean:
'KEY_RESUME'?

It looks like the curses in the python port is missing the KEY_RESIZE
attribute.  Other KEY_ attributes are available though.

$ pkg info -Ix ^python
python-3.11_3,2                "meta-port" for the default version of Python
interpreter
python3-3_4                    Meta-port for the Python interpreter 3.x
python311-3.11.9_1             Interpreted object-oriented programming lang=
uage
$ python
Python 3.11.9 (main, Jul  9 2024, 16:57:46) [Clang 18.1.5
(https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15 on freeb=
sd14
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
>>> curses.KEY_RESIZE
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'curses' has no attribute 'KEY_RESIZE'. Did you mean:
'KEY_RESUME'?
>>> curses.KEY_F1
265
>>>

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer informed via mail

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280697-7788>