Menu

sphinxbase error: /usr/local/lib/python...DNE

Help
mindthief
2010-02-13
2012-09-22
  • mindthief

    mindthief - 2010-02-13

    Hi All,
    I tried building sphinxbase on OSX Snow Leopard, and it gives the following
    error when I do 'make install' :


    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

    /usr/local/lib/python2.6/site-packages/

    This directory does not currently exist. Please create it and try again, or
    choose a different installation directory (using the -d or --install-dir
    option).

    make: *** Error 1
    make: *** Error 2
    make: *** Error 1


    Any idea what the problem may be? I do have python installed, but the path at
    /usr/local/lib/Python2.4 doesn't exist.

    Any help will be appreciated! Thanks!
    -MT

     
  • Nickolay V. Shmyrev

    **Please create it and try again, orchoose a different installation directory **

    What do you miss here? It never was less straightforward

     
  • mindthief

    mindthief - 2010-02-14

    The first time I just ran ./configure, make, and make install. This time I
    tried changing the install directory through ./configure --prefix= ... but
    again, this gives the same error. This time it looked for <install directory="">/lib/python2.6/site-packages/ as opposed to /usr/local/lib/... </install>

     
  • Nickolay V. Shmyrev

    Yes, it's expected behaviour. I don't quite get what is your problem here.

     
  • mindthief

    mindthief - 2010-02-21

    Hi,
    Sorry maybe I wasn't clear, but my problem is that it is not installing. It
    complains about the python path not existing with those error messages that I
    detailed in the first message, and then it doesn't install. I just want it to
    install so I can start playing around with language models and such cool
    things instead of beating my head against a wall because it won't install.
    Help will be appreciated, thanks!
    -MT

     
  • Nickolay V. Shmyrev

    Either configure it without python:

    ./configure --without-python

    or create this dir:

    mkdir -p /usr/local/lib/python2.6/site-packages/

     
  • mindthief

    mindthief - 2010-02-21

    I tried configuring using the --without-python flag and that worked! what does
    sphinx use python for? Will i be missing anything? Thanks for your help!

    FTR, I did try manually creating the path earlier but then I ran into this
    message:
    You are attempting to install a package to a directory that is not
    on PYTHONPATH and which Python does not read ".pth" files from. The
    installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

    /usr/local/lib/python2.6/site-packages/

    and your PYTHONPATH environment variable currently contains:

    ''

    My PYTHONPATH variable was undefined so I added the path using '# export
    PYTHONPATH=/usr/local/lib/python2.6/site-packages/'
    ...but that didn't change this error message.
    I then tried installing the latest version of python (3.1 I think), but I
    didn't make much progress with this.
    Again this is just ftr since I managed to get it installed (but if something
    strikes you as being the cause of this I'd be happy to hear it). Thanks!
    -MT

     
  • Nickolay V. Shmyrev

    what does sphinx use python for?

    pocketsphinx use python to provide python bindings to API

    Will i be missing anything?

    If you don't need bindings, you probably don't miss anything

    I added the path using '# export PYTHONPATH=/usr/local/lib/python2.6/site-
    packages/' ...but that didn't change this error message.

    You probably made small typo during this or exported path in wrong place, it
    should work normally.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.