Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: coercing to Unicode: need string or buffer, #2

Closed
buriy opened this issue Oct 13, 2015 · 3 comments
Closed

TypeError: coercing to Unicode: need string or buffer, #2

buriy opened this issue Oct 13, 2015 · 3 comments
Labels

Comments

@buriy
Copy link

buriy commented Oct 13, 2015

$ pigar
Traceback (most recent call last):
File "/usr/local/bin/pigar", line 7, in
from pigar.main import main
File "/usr/local/lib/python2.7/dist-packages/pigar/main.py", line 17, in
_installed_pkgs = get_installed_pkgs_detail()
File "/usr/local/lib/python2.7/dist-packages/pigar/reqs.py", line 187, in get_installed_pkgs_detail
for file in os.listdir(search_path):
TypeError: coercing to Unicode: need string or buffer, NoneType found

My sys.path is the following:
['', '/usr/local/lib/python2.7/dist-packages/Internet_in_a_Box-0.5.10-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/repoze.lru-0.6-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/backports.lzma-0.0.3-py2.7-linux-x86_64.egg',
...,
'/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
"""

@damnever
Copy link
Owner

Try this:

pip install git+https://github.com/Damnever/pigar.git@issues2 --upgrade

By the way, what platform?

@damnever damnever added the bug label Oct 13, 2015
@buriy
Copy link
Author

buriy commented Oct 13, 2015

Ubuntu LTS 14.04

@buriy
Copy link
Author

buriy commented Oct 13, 2015

This bug is fixed. I'll add other ones tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants