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

i3situation crashes upon run #13

Closed wei2912 closed 10 years ago

wei2912 commented 10 years ago

I get the following output:

wei2912@localhost ~/.c/i3situation> i3situation
{"click_events": true, "version": 1}
[

I'm not certain what else to put here.

HarveyHunt commented 10 years ago

Can you please tell me the version of i3situation that you're using?

It would be helpful if you could paste your config and i3situation's log as well.

wei2912 commented 10 years ago

Straight from repository. The config:

[general]
interval = 1
logging_level = ERROR
log_file = ~/.config/i3situation/log.txt

[worldnews]
plugin = reddit
username = wei2912
password = ********

mode = subreddit
subreddits = worldnews
format = title

[time]
plugin = date_time
time_zone = Singapore

and the log:

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - Traceback (most recent call last):

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/bin/i3situation", line 9, in <module>

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - load_entry_point('i3situation==1.0.5', 'console_scripts', 'i3situation')()

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg/i3situation/main.py", line 7, in main

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - s = status.Status()

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg/i3situation/core/status.py", line 60, in __init__

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - self._plugin_path, self.config.plugin)

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg/i3situation/core/plugin_manager.py", line 122, in __init__

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - self.plugins = self.refresh_files()

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg/i3situation/core/plugin_manager.py", line 196, in refresh_files

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - plugin = self._load_compiled(f)

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -   File "/usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg/i3situation/core/plugin_manager.py", line 155, in _load_compiled

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write -     
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - compiled_file = glob.glob(os.path.join(compiled_directory, (name + '.*')))[0]

[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - IndexError
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - : 
[10/11/2014 11:03:17 PM] - ERROR - status.py - MainThread - write - list index out of range
HarveyHunt commented 10 years ago

That's weird, i3situation should be running with python 3. Which package did you get it from?

wei2912 commented 10 years ago

@HarveyHunt Turns out I installed it with pip-python27.

wei2912@localhost ~> sudo pip uninstall i3situation
[sudo] password for wei2912: 
Uninstalling i3situation:
  /usr/bin/i3situation
  /usr/lib/python2.7/site-packages/i3situation-1.0.5-py2.7.egg
Proceed (y/n)? y
  Successfully uninstalled i3situation

Unfortunately, it failed to install the python 3 version:

wei2912@localhost ~> sudo pip-python3 install i3situation
Downloading/unpacking i3situation
  Downloading i3situation-1.0.3.tar.gz
  Running setup.py egg_info for package i3situation
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-build-root/i3situation/setup.py", line 20, in <module>
        long_description=read('README.md'),
      File "/tmp/pip-build-root/i3situation/setup.py", line 8, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-root/i3situation/README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/tmp/pip-build-root/i3situation/setup.py", line 20, in <module>

    long_description=read('README.md'),

  File "/tmp/pip-build-root/i3situation/setup.py", line 8, in read

    return open(os.path.join(os.path.dirname(__file__), fname)).read()

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-root/i3situation/README.md'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/i3situation
Storing complete log in /root/.pip/pip.log
HarveyHunt commented 10 years ago

Ah, I forgot to update the pypi package (it is two releases out of date). I'll update it now. :-)

HarveyHunt commented 10 years ago

All done

wei2912 commented 10 years ago

It's working now, thanks!