Closed pmocek closed 8 years ago
I observe the same behavior if I then uninstall:
$ sudo pip uninstall khal
Uninstalling khal:
/usr/local/bin/ikhal
/usr/local/bin/khal
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/DESCRIPTION.rst
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/METADATA
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/RECORD
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/WHEEL
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/entry_points.txt
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/metadata.json
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/pbr.json
/usr/local/lib/python2.7/dist-packages/khal-0.8.2.dist-info/top_level.txt
/usr/local/lib/python2.7/dist-packages/khal/__init__.py
/usr/local/lib/python2.7/dist-packages/khal/__init__.pyc
/usr/local/lib/python2.7/dist-packages/khal/__main__.py
/usr/local/lib/python2.7/dist-packages/khal/__main__.pyc
/usr/local/lib/python2.7/dist-packages/khal/aux.py
/usr/local/lib/python2.7/dist-packages/khal/aux.pyc
/usr/local/lib/python2.7/dist-packages/khal/calendar_display.py
/usr/local/lib/python2.7/dist-packages/khal/calendar_display.pyc
/usr/local/lib/python2.7/dist-packages/khal/cli.py
/usr/local/lib/python2.7/dist-packages/khal/cli.pyc
/usr/local/lib/python2.7/dist-packages/khal/configwizard.py
/usr/local/lib/python2.7/dist-packages/khal/configwizard.pyc
/usr/local/lib/python2.7/dist-packages/khal/controllers.py
/usr/local/lib/python2.7/dist-packages/khal/controllers.pyc
/usr/local/lib/python2.7/dist-packages/khal/exceptions.py
/usr/local/lib/python2.7/dist-packages/khal/exceptions.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/__init__.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/__init__.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/aux.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/aux.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/backend.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/backend.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/event.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/event.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/exceptions.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/exceptions.pyc
/usr/local/lib/python2.7/dist-packages/khal/khalendar/khalendar.py
/usr/local/lib/python2.7/dist-packages/khal/khalendar/khalendar.pyc
/usr/local/lib/python2.7/dist-packages/khal/log.py
/usr/local/lib/python2.7/dist-packages/khal/log.pyc
/usr/local/lib/python2.7/dist-packages/khal/settings/__init__.py
/usr/local/lib/python2.7/dist-packages/khal/settings/__init__.pyc
/usr/local/lib/python2.7/dist-packages/khal/settings/exceptions.py
/usr/local/lib/python2.7/dist-packages/khal/settings/exceptions.pyc
/usr/local/lib/python2.7/dist-packages/khal/settings/khal.spec
/usr/local/lib/python2.7/dist-packages/khal/settings/settings.py
/usr/local/lib/python2.7/dist-packages/khal/settings/settings.pyc
/usr/local/lib/python2.7/dist-packages/khal/settings/utils.py
/usr/local/lib/python2.7/dist-packages/khal/settings/utils.pyc
/usr/local/lib/python2.7/dist-packages/khal/terminal.py
/usr/local/lib/python2.7/dist-packages/khal/terminal.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/__init__.py
/usr/local/lib/python2.7/dist-packages/khal/ui/__init__.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/base.py
/usr/local/lib/python2.7/dist-packages/khal/ui/base.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/calendarwidget.py
/usr/local/lib/python2.7/dist-packages/khal/ui/calendarwidget.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/colors.py
/usr/local/lib/python2.7/dist-packages/khal/ui/colors.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/startendeditor.py
/usr/local/lib/python2.7/dist-packages/khal/ui/startendeditor.pyc
/usr/local/lib/python2.7/dist-packages/khal/ui/widgets.py
/usr/local/lib/python2.7/dist-packages/khal/version.py
/usr/local/lib/python2.7/dist-packages/khal/version.pyc
Proceed (y/n)? y
Successfully uninstalled khal
And reinstall:
$ sudo pip install khal
Downloading/unpacking khal
Downloading khal-0.8.2-py2.py3-none-any.whl (92kB): 92kB downloaded
Requirement already satisfied (use --upgrade to upgrade): tzlocal>=1.0 in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): icalendar in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): pyxdg in /usr/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): pytz in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): vdirsyncer in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): urwid in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): configobj in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): click>=3.2 in /usr/local/lib/python2.7/dist-packages (from khal)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from icalendar->khal)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from configobj->khal)
Installing collected packages: khal
Compiling /tmp/pip_build_root/khal/khal/ui/widgets.py ...
File "/tmp/pip_build_root/khal/khal/ui/widgets.py", line 383
def __init__(self, *args, EditWidget=ExtendedEdit, validate=False, **kwargs):
^
SyntaxError: invalid syntax
Successfully installed khal
Cleaning up...
$ khal
Traceback (most recent call last):
File "/usr/local/bin/khal", line 7, in <module>
from khal.cli import main_khal
File "/usr/local/lib/python2.7/dist-packages/khal/cli.py", line 25, in <module>
from shutil import get_terminal_size
ImportError: cannot import name get_terminal_size
as of version 0.8 we do not support python 2 any longer. Have a look if you have pip3. Also, as I see, the wheels are still indicate python 2 support, so that should be fixed, see #468.
When I used pip as superuser to build and install khal on Ubuntu 14.04, compilation of .../khal/ui/widgets.py fails with a syntax error, but pip reports successful installation:
Immediately afterward, when I run khal, it fails with "ImportError: cannot import name get_terminal_size."