mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] python sympy module


Chronological Thread 
  • From: Miguel de Benito Delgado <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] python sympy module
  • Date: Thu, 3 Jul 2014 09:27:22 +0200

Hi,

 you have to change that line of the copy of tm_python that texmacs is reading upon startup. Its location will depend on your configuration. Most probably /usr/local/something or maybe  ~/.TeXmacs/plugins/python. Unless you use your copy of the sources as your TEXMACS_PATH, the tm_python file won't be the one in wherever/texmacs-sources/src/plugins.

Best,

--
Miguel de  Benito.


On Mon, Jun 30, 2014 at 2:29 PM, marc lalaude-labayle <address@hidden> wrote:
Hi Miguel,

i have a tm_python file in the /src folder.

So, i change the first line to /usr/python3 for example and then compile ? Or did i misunderstand something ?

Best regards,

Marc


2014-06-30 12:36 GMT+02:00 Miguel de Benito Delgado <address@hidden>:

Salut Julien, 

  you can try changing the first line of plugins/python/tm_python, which reads

#!/usr/bin/env python

to the python interpreter you want to use.

Best,

--
Miguel de  Benito.


On Sun, Jun 29, 2014 at 1:07 PM, Julien Frontisi <address@hidden> wrote:
Hi again,
the previous attempts were made on my desktop with mac os 10.9.
on my laptop with mac os 10.7, the python plugin shows python version number 2.7.1
which is the python installed by Apple in /System. I don't think I can change this python nor add any new module to it.
How can I force the python plugin in texmacs to use the /Library one, as the terminal does ?
And how can I make it use the new modules ?
Thanks
Julien


Le 29 juin 2014 à 10:43, Julien Frontisi <address@hidden> a écrit :

Hi,
I'm using the python plugin in mac os texmacs app but cannot import sympy module.
Some other modules like numpy, for example, work fine but importing sympy just gives :

> Traceback (most recent call last):
> ImportError: No module named sympy

On the other hand, using python on the terminal (without texmacs) works fine.

Maybe texmacs plugin uses a different python installation from the one the terminal is using.
The latter is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
and there is another one in /System/Library/Frameworks/
but I don't know how to check which one texmacs is using.

Has anyone got sympy module working in python plugin ?
Thanks
Julien






  • Re: [TeXmacs] python sympy module, Miguel de Benito Delgado, 07/03/2014

Archive powered by MHonArc 2.6.19.

Top of page