ValueError: can't have unbuffered text I/O during debug

Bug #1681125 reported by themusicgod1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mnemosyne (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ mnemosyne --debug=/tmp/DEBUG

results in:

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 229, in <module>
    debug_file=options.debug_file)
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", line 176, in initialise
    self.component_manager.debug_file = open(debug_file, "w", 0)
 ValueError: can't have unbuffered text I/O

Ubuntu: 17.04 Zesty

mnemosyne:
  Installed: 2.4-0.1
  Candidate: 2.4-0.1
  Version table:
 *** 2.4-0.1 500
        500 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu zesty/universe i386 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: mnemosyne (not installed)
ProcVersionSignature: Ubuntu 4.8.0-45.48-generic 4.8.17
Uname: Linux 4.8.0-45-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Apr 8 13:21:39 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (1003 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
SourcePackage: mnemosyne
UpgradeStatus: Upgraded to yakkety on 2016-10-16 (174 days ago)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
Revision history for this message
Peter Bienstman (peter-bienstman) wrote :

The fix is to get rid of the ,0) argument in that line 176. I've committed that fix to the development trunk and it will be in 2.5.

Changed in mnemosyne (Ubuntu):
status: New → Fix Committed
tags: added: bionic
Changed in mnemosyne (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.