HarveyHunt / i3situation

A replacement for i3status written in Python 3 with support for huge customisability through plugins.
GNU General Public License v3.0
34 stars 5 forks source link

Error after updating to Python 3.4 #3

Closed DrJPepper closed 10 years ago

DrJPepper commented 10 years ago

I am running Arch Linux with the testing repositories enabled, and after an Syu which brought with it Python 3.4, i3situation is throwing the following errors:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 444, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 632, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (i3situation 0.9.1 (/usr/lib/python3.4/site-packages/i3situation-0.9.1-py3.3.egg), Requirement.parse('i3situation==1.0.2'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/i3situation", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2749, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 446, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 459, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 620, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 855, in best_match
    for dist in self[req.key]:
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 826, in __getitem__
    _sort_dists(dists)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2612, in _sort_dists
    tmp.sort()
TypeError: unorderable types: str() < NoneType()
HarveyHunt commented 10 years ago

The first error seems to be due to a mismatch between i3situation versions. It is probably best to remove i3situation from site-packages, as well as removing the file from /usr/bin. Trying installing i3situation after doing that.

DrJPepper commented 10 years ago

Thank you very much for the prompt response! After uninstalling and reinstall everything python related, as well as deleting residual .pyc's, i3situation is working just as before.

HarveyHunt commented 10 years ago

Brilliant news, let me know if you have any suggestions for stuff you would like me to add or change. I have loads of time over the next few days and want to add some more things to this project.

I am thinking of allowing users to specify shell commands that they want to be run when a plugin's text is clicked with a certain button.

e.g. left_click = dzen2......

DrJPepper commented 10 years ago

That would be a useful feature. I could see using it to manually initiate my off-site backup script. Thanks so much for all the work you have put into i3situation, by the way; I much prefer it to the inbuilt info bar.

HarveyHunt commented 10 years ago

I will push some changes for that tonight then.

Thank you, it means a lot to know that people are using it. I haven't committed code in a while (as you can probably see) because I didn't think that many people were using it. I am also starting to move from i3 as I am writing my own wm, I will be sure to keep working on i3situation though if people are actually using it. :)