Bug 161482

Summary: non-root users get unicode error on os.access
Product: [Fedora] Fedora Reporter: Andrea Santilli <sacntct>
Component: pythonAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-23 11:23:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrea Santilli 2005-06-23 17:28:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
This is what I get while running os.access as non-root user:
Traceback (most recent call last):
  File "/usr/bin/gnomeboyadvance", line 5, in ?
    gba = GnomeBoyAdvance()
  File "/usr/lib/python2.4/site-packages/gnomeboyadvance/GnomeBoyAdvance.py", line 54, in __init__
    self.mySettings = Settings.Settings()
  File "/usr/lib/python2.4/site-packages/gnomeboyadvance/Settings.py", line 24, in __init__
    if not self.__checkBinary(): self.tryFindBinary()
  File "/usr/lib/python2.4/site-packages/gnomeboyadvance/Settings.py", line 32, in __checkBinary
    return os.access(bin, os.X_OK )
TypeError: coercing to Unicode: need string or buffer, NoneType found


This seems to be an old bug as reported in http://mail.python.org/pipermail/python-dev/2005-March/051906.html

Version-Release number of selected component (if applicable):
2.4.1-2

How reproducible:
Always

Steps to Reproduce:
1. run a program containing os.access as non-root user.
  

Actual Results:  I got an unicode error

Additional info:

Comment 1 Mihai Ibanescu 2005-09-30 18:09:46 UTC
I cannot seem to reproduce this, do you have an example?