Bug 161482 - non-root users get unicode error on os.access
non-root users get unicode error on os.access
Product: Fedora
Classification: Fedora
Component: python (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Mihai Ibanescu
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2005-06-23 13:28 EDT by Andrea Santilli
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-03-23 06:23:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrea Santilli 2005-06-23 13:28:50 EDT
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):

How reproducible:

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 14:09:46 EDT
I cannot seem to reproduce this, do you have an example?

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