Giter Site home page Giter Site logo

Comments (2)

pazz avatar pazz commented on August 28, 2024

It seems you have run into a dependency issue I was unaware of as I'm on a recent ubuntu with python 2.7.
http://docs.python.org/library/subprocess.html claim subprocess.check_output has been added in v2.7.
please update this module.
Also, could you check if this can be done via apt-get on your sys? We should update the INSTALL file
and maybe also the setup.py to set v>=2.7 as a dependency

from alot.

0x64746b avatar 0x64746b commented on August 28, 2024

subprocess.check_output has been added in v2.7.
please update this module.
Also, could you check if this can be done via apt-get on your sys?

Well, subprocess lives in python-minimal:

$ apt-file search subprocess.py | grep 2.7
python2.7-minimal: /usr/lib/python2.7/subprocess.py

So you'll obviously need python 2.7 for that:

# aptitude install python2.7-minimal
The following NEW packages will be installed:
  python2.7{a} python2.7-minimal 

To run alot without seriously bending your PYTHONPATH (where does notmuch.py live?), you'll have to re-install the dependencies with 2.7 (since they live in a subdir depending on the python interpreter version):

# ll /usr/local/lib/python2.6/dist-packages/
total 32K
drwxr-sr-x 2 root staff 4.0K 2011-08-17 23:38 alot/
-rw-r--r-- 1 root staff  416 2011-08-17 23:38 alot-0.1.egg-info
-rw-r--r-- 1 root staff  220 2011-08-17 23:48 easy-install.pth
drwxr-sr-x 2 root staff 4.0K 2011-08-17 23:44 notmuch/
-rw-r--r-- 1 root staff 2.4K 2011-08-17 23:44 notmuch-0.6.egg-info
drwxr-sr-x 5 root staff 4.0K 2010-03-22 21:41 pytrainer/
-rw-r--r-- 1 root staff  277 2010-03-22 21:41 pytrainer-1.7.1.egg-info
drwxr-sr-x 4 root staff 4.0K 2011-08-17 23:48 urwid-1.0.0-py2.6-linux-i686.egg/
[alot|notmuch/bindings/python|urwid]$ sudo python2.7 setup.py install

To install urwid, though, you will need python2.7's headers:

urwid# python2.7 setup.py install
    [...]
source/str_util.c:25: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
# aptitude install python2.7-dev
The following NEW packages will be installed:
  libpython2.7{a} python2.7-dev 

We should update the INSTALL file
and maybe also the setup.py to set v>=2.7 as a dependency

so, yes, you'll probably want something like this.
But: python2.7 fixes that issue for me.

from alot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.