noraeisner / LATTE

Lightcurve Analysis Tool for Transiting Exoplanet
GNU Lesser General Public License v3.0
39 stars 10 forks source link

LATTE does not run in some Anaconda-based environment #7

Open orionlee opened 4 years ago

orionlee commented 4 years ago

LATTE does not work in my environment, Anaconda-based python distribution on Windows.

Specifically, some LATTE codes expect python executable is installed as python3. But in the Anaconda-based distribution I used, the executable is simply python.

E.g., generating tesspoint failed because it was expecting python3 is there: https://github.com/noraeisner/LATTE/blob/f5423bcd0bcb7f26f593576c27dbea95db879201/LATTE/LATTEutils.py#L2371


Workaround: One could workaround it by copying the python executable as python3.

noraeisner commented 4 years ago

Hi, yes unfortunately the code has only been tested on MAC and Linux operating systems. The new release of LATTE, however, does not include that line of code which seems to cause the problem, so I hope that it will soon also work on Windows (unfortunately I don't have access to a Windows operating system so I can't check this).

orionlee commented 4 years ago

I'll let you know after the new release is available on pypi, or just the codes on github.

orionlee commented 4 years ago
  1. I verified the problem no longer occurred on Windows with LATTE-dev branch
  2. I browsed the code searching for python3, it could still potentially be a problem for optional planet modeling code.

https://github.com/noraeisner/LATTE/blob/5eea005668f67b1e98e554c557119508c8e92805/LATTE/LATTEbrew.py#L361

It's probably not a priority yet, as it's not clear if the modeling logic pyaneti is supported on Windows.