in pyme.core.Data fail new_from_fd function
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyme (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 10.04.1 LTS
Release: 10.04
python-pyme:
Instalados: 0.8.1+clean-3
Candidato: 0.8.1+clean-3
Tabla de versión:
*** 0.8.1+clean-3 0
500 http://
100 /var/lib/
My code:
fd=open(
cipher = core.Data(file=fd)
Error:
File "gpg.py", line 9, in <module>
cipher = core.Data(file=fd)
File "/usr/lib/
self.
File "/usr/lib/
errorcheck(
NameError: global name 'gpgme_
If i modify the line 370 with errorcheck(
Traceback (most recent call last):
File "gpg.py", line 9, in <module>
cipher = core.Data(file=fd)
File "/usr/lib/
self.
File "/usr/lib/
errorcheck(
File "/usr/lib/
return _pygpgme.
TypeError: in method 'gpgme_
Proposed patch:
--- core.py 2009-11-10 15:06:18.000000000 +0100
+++ /tmp/core.py 2010-11-11 14:23:22.947568330 +0100
@@ -363,11 +363,7 @@
call and the mode attribute."""
tmp = pygpgme.
- fp = pygpgme.
- if fp == None:
- raise ValueError, "Failed to open file from %s arg %s" % \
- (str(type(file)), str(file))
- errorcheck(
+ errorcheck(
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software at http:// sourceforge. net/projects/ pyme/