#14414: runsnake command broken
-------------------------------------+-------------------------------------
       Reporter:  nbruin             |        Owner:  tbd
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  performance        |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Frédéric Chapoton  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/ticket/14414                |  f2654aea5ade94a5f43d87dc3b83906c57054545
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Old description:

> #11287 introduced a `runsnake` command that tries to execute `runsnake`
> using the system python. However, it does so without `sage-native-
> execute` and without clearing `PYTHONHOME` and `PYTHONPATH`, so it has
> very little chance of ever working. It already comes a little closer by
> doing
> {{{#!diff
> -   os.system("/usr/bin/python -E `which runsnake` %s &"%tmpfile)
> +   os.system("unset PYTHONHOME; unset PYTHONPATH; sage-native-execute
> runsnake %s &"%tmpfile)
> }}}
> in `sage/misc/dev_tools.py` (that makes the command `runsnake` work on my
> computer).
>
> You can't really expect the system python to work properly when the
> environment variables point to libraries for other python installs. See
> also #9386, #10286.

New description:

 #11287 introduced a `runsnake` command that tries to execute `runsnake`
 using the system python. However, it does so without `sage-native-execute`
 and without clearing `PYTHONHOME` and `PYTHONPATH`, so it has very little
 chance of ever working. It already comes a little closer by doing
 {{{#!diff
 -   os.system("/usr/bin/python -E `which runsnake` %s &"%tmpfile)
 +   os.system("unset PYTHONHOME; unset PYTHONPATH; sage-native-execute
 runsnake %s &"%tmpfile)
 }}}
 in `sage/misc/dev_tools.py` (that makes the command `runsnake` work on my
 computer).

 You can't really expect the system python to work properly when the
 environment variables point to libraries for other python installs. See
 also #9386, #10286, #17735.

--

Comment (by tmonteil):

 See also #17735 that was primarily about docs, checks and preparsing for
 `runsnake()`, but discuss similar issues.

--
Ticket URL: <http://trac.sagemath.org/ticket/14414#comment:30>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to