Hello Kevin,
thank you for your help. I tried using the virtual environment as you
suggested, but I still get the same error. I think that everything is
running with python3.3, but it doesn't allow me to install pysqlite.
thanks,
david


On Thu, Aug 6, 2015 at 1:39 AM, Kevin Brubeck Unhammer <[email protected]>
wrote:

> Wei En Ng <[email protected]>
> writes:
>
> > The syntax error is probably due to the fact that the program is
> > written in Python 2 and not 3. Try using "pip" instead of "pip3". This
> > is just a guess, I'm not sure if the bindings are written in Python 3.
>
> But APY uses Python 3.3+, and all the deps should also be in Python 3+,
> I don't think something you install using pip2 would become available to
> something using Python 3.
>
> I find this
>
> > On Tue, 4 Aug 2015 12:57 am David Martinez <[email protected]> wrote:
> >     print "Is sphinx installed? If not, try 'sudo easy_install
> >     sphinx'."
> >     ^
> >     SyntaxError: invalid syntax
>
> weird – that's an error you typically get when you try to run
> python2-code in python3 (since print used as a keyword instead of a
> function is not allowed in python3). So I don't understand why that
> would happen when installing with pip3.
>
> -----
>
> Could you try using a virtualenv? That might help ensuring the
> dependencies stay python3. Use the full path to your 3.3 version of pip3
> to install virtualenv, and use the full path to your 3.3 version of
> virtualenv when running
>
>     virtualenv --no-site-packages apyenv
>     cd apyenv
>     source bin/activate
>
>
> -Kevin
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
------------------------------------------------------------------------------
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to