Bug 2039871 - [abrt] jrnl: _display_search_results(): jrnl.py:340:_display_search_results:AttributeError: 'NoneType' object has no attribute 'export'
Summary: [abrt] jrnl: _display_search_results(): jrnl.py:340:_display_search_results:A...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jrnl
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:9d74f26ef4f727c4890575f92ec...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-12 15:38 UTC by Tiago d'Almeida
Modified: 2022-06-14 02:12 UTC (History)
1 user (show)

Fixed In Version: jrnl-2.8.4-2.fc37 jrnl-2.8.4-2.fc36 jrnl-2.8.3-5.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-05 12:31:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.72 KB, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details
File: cpuinfo (2.59 KB, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details
File: environ (1.76 KB, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details
File: mountinfo (3.20 KB, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details
File: namespaces (172 bytes, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details
File: open_fds (314 bytes, text/plain)
2022-01-12 15:38 UTC, Tiago d'Almeida
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github jrnl-org jrnl issues 1263 0 None open display_format: pretty and display_format: short lead to crash 2022-01-12 18:09:11 UTC

Description Tiago d'Almeida 2022-01-12 15:38:14 UTC
Version-Release number of selected component:
jrnl-2.8.3-1.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-4e5d19ff-4bd5-45e5-aee5-b18b97f2ad36.scope
cmdline:        /usr/bin/python3 -s /usr/bin/jrnl -to today
crash_function: _display_search_results
exception_type: AttributeError
executable:     /usr/bin/jrnl
interpreter:    python3-3.10.1-2.fc35.x86_64
kernel:         5.15.12-200.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
jrnl.py:340:_display_search_results:AttributeError: 'NoneType' object has no attribute 'export'

Traceback (most recent call last):
  File "/usr/bin/jrnl", line 8, in <module>
    sys.exit(cli())
  File "/usr/lib/python3.10/site-packages/jrnl/cli.py", line 34, in cli
    return run(args)
  File "/usr/lib/python3.10/site-packages/jrnl/jrnl.py", line 73, in run
    search_mode(**kwargs)
  File "/usr/lib/python3.10/site-packages/jrnl/jrnl.py", line 179, in search_mode
    _display_search_results(**kwargs)
  File "/usr/lib/python3.10/site-packages/jrnl/jrnl.py", line 340, in _display_search_results
    print(exporter.export(journal, args.filename))
AttributeError: 'NoneType' object has no attribute 'export'

Local variables in innermost frame:
args: Namespace(debug=False, preconfig_cmd=None, postconfig_cmd=None, filename=None, on_date=None, today_in_history=False, month=None, day=None, year=None, start_date=None, end_date='today', contains=None, strict=False, starred=False, limit=None, excluded=[], edit=False, delete=False, export=False, tags=False, short=False, config_override=[], text=[], journal_name='default')
journal: <Journal with 1 entries>
kwargs: {'config': {'colors': {'body': 'NONE', 'date': 'GREEN', 'tags': 'YELLOW', 'title': 'BLUE'}, 'default_hour': 9, 'default_minute': 0, 'display_format': 'pretty', 'editor': 'nano', 'encrypt': False, 'highlight': True, 'indent_character': '|', 'journals': {'default': '~/Projects/jrnl/journal.txt', 'story': {'journal': '~/Projects/jrnl/story.txt'}}, 'linewrap': 80, 'tagsymbols': '#', 'template': False, 'timeformat': '%a, %d %b %Y %H:%M:%S', 'version': 'v2.8.3', 'journal': '~/Projects/jrnl/journal.txt'}, 'old_entries': [<Entry 'Este texto é um teste' on 2022-01-10 19:02>]}
exporter: None

Comment 1 Tiago d'Almeida 2022-01-12 15:38:17 UTC
Created attachment 1850399 [details]
File: backtrace

Comment 2 Tiago d'Almeida 2022-01-12 15:38:18 UTC
Created attachment 1850400 [details]
File: cpuinfo

Comment 3 Tiago d'Almeida 2022-01-12 15:38:19 UTC
Created attachment 1850401 [details]
File: environ

Comment 4 Tiago d'Almeida 2022-01-12 15:38:21 UTC
Created attachment 1850402 [details]
File: mountinfo

Comment 5 Tiago d'Almeida 2022-01-12 15:38:22 UTC
Created attachment 1850403 [details]
File: namespaces

Comment 6 Tiago d'Almeida 2022-01-12 15:38:24 UTC
Created attachment 1850404 [details]
File: open_fds

Comment 7 Ben Beasley 2022-01-12 18:08:48 UTC
Can you please check upstream bug https://github.com/jrnl-org/jrnl/issues/1263 and confirm whether or not this is the same issue?

In particular, consider re-running the command with --debug, i.e.:

> jrnl -to today --debug

and checking whether your configuration contains

> 'display_format': 'short'

or

> 'display_format': 'pretty'

Comment 8 Tiago d'Almeida 2022-01-12 18:56:12 UTC
Yes, you're correct. I've put the display_format with 'pretty' or 'fancy', but because of this bug, I delete it.
I'll link this issue to github, if the files haven't any confidencial issues ...

Comment 9 Ben Beasley 2022-01-12 19:05:35 UTC
Sounds good! Thanks for checking. I’ll reference this issue in a package update when upstream reports the problem is fixed.

Comment 10 Tiago d'Almeida 2022-01-15 20:01:45 UTC
@code Can you remove the private tag from this issue, to be acessible to Github users?

Comment 11 Ben Beasley 2022-01-15 20:05:19 UTC
(In reply to Tiago d'Almeida from comment #10)
> @code Can you remove the private tag from this issue, to
> be acessible to Github users?

Since you’re the original submitter and you agree it should be public, I’ll be happy to do so.

Comment 12 Tiago d'Almeida 2022-01-15 20:25:56 UTC
Thanks!

Comment 13 Ben Beasley 2022-06-05 12:25:25 UTC
Upstream has fixed this in PR https://github.com/jrnl-org/jrnl/pull/1495. I have backported this as a patch and am updating the Fedora packages with the bugfix.

Comment 14 Fedora Update System 2022-06-05 12:30:17 UTC
FEDORA-2022-2a1a4a5313 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-2a1a4a5313

Comment 15 Fedora Update System 2022-06-05 12:31:42 UTC
FEDORA-2022-2a1a4a5313 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2022-06-05 12:34:57 UTC
FEDORA-2022-da979d68b6 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-da979d68b6

Comment 17 Fedora Update System 2022-06-05 12:52:46 UTC
FEDORA-2022-11a485efff has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-11a485efff

Comment 18 Fedora Update System 2022-06-06 02:40:34 UTC
FEDORA-2022-da979d68b6 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-da979d68b6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-da979d68b6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2022-06-06 02:45:32 UTC
FEDORA-2022-11a485efff has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-11a485efff`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-11a485efff

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Tiago d'Almeida 2022-06-06 15:12:20 UTC
With my testing, I guess this issue is resolved. Thanks for all your effort!

Comment 21 Ben Beasley 2022-06-06 21:48:01 UTC
Thanks for your testing, and for the detailed bug report and interaction with upstream. I’m glad the fix is working for you!

Comment 22 Fedora Update System 2022-06-14 01:38:46 UTC
FEDORA-2022-da979d68b6 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2022-06-14 02:12:35 UTC
FEDORA-2022-11a485efff has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.