zooba / reportabug

A Python tool for collecting information when reporting bugs.
MIT License
11 stars 3 forks source link

Check collected data on Linux #10

Open zooba opened 5 years ago

zooba commented 5 years ago

The current collected data has been verified on Windows.

It would be good to verify that on a few Linux distros that it is present, useful, and there are not obvious other items that have been omitted.

eamanu commented 5 years ago

On Debian I have the next result after use reportabug with pytest

ReportABug Summary

Generated 2019-02-04 21:41:43.201742 with arguments ['pytest']

Module info

pytest

__file__ = '/home/$USER/virtualenvs/reportabug/lib/python3.5/site-packages/pytest.py'
__version__ = '4.2.0'

sys

argv = ['pytest']
executable = '/home/$USER/virtualenvs/reportabug/bin/python'
implementation = {'cache_tag': "'cpython-35'", 'name': "'cpython'", '_multiarch': "'x86_64-linux-gnu'", 'hexversion': '50660336'}
path = [
    '/home/$USER/virtualenvs/reportabug/bin',
    '/home/$USER/virtualenvs/reportabug/lib/python35.zip',
    '/home/$USER/virtualenvs/reportabug/lib/python3.5',
    '/home/$USER/virtualenvs/reportabug/lib/python3.5/plat-x86_64-linux-gnu',
    '/home/$USER/virtualenvs/reportabug/lib/python3.5/lib-dynload',
    '/usr/lib/python3.5',
    '/usr/lib/python3.5/plat-x86_64-linux-gnu',
    '/home/$USER/virtualenvs/reportabug/lib/python3.5/site-packages',
    '/home/$USER/virtualenvs/reportabug/lib/python3.5/site-packages/reportabug-0.1-py3.5.egg',
]
platform = 'linux'
prefix = '/home/$USER/virtualenvs/reportabug'

platform

architecture = '64bit'
build = 'default'
build_date = 'Sep 27 2018 17:25:39'
machine = 'x86_64'
os = 'posix'
platform = 'Linux-4.9.0-8-amd64-x86_64-with-debian-9.7'
version = '3.5.3'

Environment

PATH = '/home/$USER/virtualenvs/reportabug/bin'
       '/usr/local/bin'
       '/usr/bin'
       '/bin'
       '/usr/local/games'
       '/usr/games'
cwd = '/home/$USER/dev/reportabug'

Censored words

Key Info
$HOST md5=7b05df49c4630c830c0e2706e39170c2, Unicode=Ll Lu
$USER md5=d5be0a1db6db5add05c7e252707da345, Unicode=Ll
eamanu commented 5 years ago

On Environment section the variable PYTHONIOENCODING does not exist. Maybe a problem with Linux?

I little question, the Platform Linux-4.9.0-8-amd64-x86_64-with-debian-9.7 x86_64 info is repeated on platform section, this is for some reason?

zooba commented 5 years ago

On Environment section the variable PYTHONIOENCODING does not exist. Maybe a problem with Linux?

No, that's a problem with my example. Normally it isn't set, but I set it for the example.

That said, we probably do want to collect the actual encoding values. I'll create a new issue for those.

I little question, the Platform Linux-4.9.0-8-amd64-x86_64-with-debian-9.7 x86_64 info is repeated on platform section, this is for some reason?

You mean the "x86_64" part? Not every platform string (the first part) includes the machine string (the second part). But we can do an in test and only add it on the end if it's not in there?