Enabling Python

3,133 views
Skip to first unread message

Daniel Langenkämper

unread,
Jul 1, 2018, 2:49:49 AM7/1/18
to golden-cheetah-users
Hi everybody,

I tried to enable Python in GC. I installed python3.6.5 from scratch using anaconda. The binary is at /opt/anaconda/envs/py36/bin/python3.6 and works. Therefore the setting in GC is set to /opt/anaconda/envs/py36/bin. I am on Mac OSX using GC version DEV-3.5 1806. When starting from commandline I get the following output

./GoldenCheetah
QML debugging is enabled. Only use this in a safe environment.
[../src/Python/PythonEmbed.cpp:189 PythonEmbed] PYTHONHOME setting used: /opt/anaconda/envs/py36/bin/
[../src/Python/PythonEmbed.cpp:108 pythonInstalled] Running: /opt/anaconda/envs/py36/bin//python3.6
[../src/Python/PythonEmbed.cpp:132 pythonInstalled] Didn't get output: /opt/anaconda/envs/py36/bin//python3.6
[../src/Python/PythonEmbed.cpp:284 PythonEmbed] Embedding failed

Can anybody help me fix that.

Daniel

P.S. I also tried with a homebrew python 3.6 which produced the same output.

Mark Liversedge

unread,
Jul 1, 2018, 2:56:42 AM7/1/18
to golden-cheetah-users
Make sure all the dependencies are installed see:

We must have SIP v4.19 or higher.

You may also need .../py36/bin in your path.

We are looking at packaging up R and Python with GC to avoid such issues...

Mark

Daniel Langenkämper

unread,
Jul 1, 2018, 2:23:03 PM7/1/18
to golden-cheetah-users
Thanks for the comments. Unfortunately that didn't work. I still get the same error.

Dependencies are all installed:
colour                             0.1.5
lmfit                                0.9.11
numpy                            1.14.3
pandas                           0.23.0
plotly                               2.7.0
scikit-learn                      0.19.1
scipy                               1.1.0
sip                                   4.19.8
tensorflow                       1.8.0

and /opt/anaconda/envs/py36/bin is in the PATH. Do you have another idea?

Packaging everything would really help. 

Mark Liversedge

unread,
Jul 1, 2018, 2:57:04 PM7/1/18
to golden-cheetah-users
Is this a personal build ?

Daniel Langenkämper

unread,
Jul 1, 2018, 3:29:25 PM7/1/18
to golden-cheetah-users
No, I used the latest Github Release (VERSION 3.5 DEVELOPMENT BUILD JUNE 2018) from here: https://github.com/GoldenCheetah/GoldenCheetah/releases

Mark Liversedge

unread,
Jul 1, 2018, 3:44:32 PM7/1/18
to golden-cheetah-users
Only thing that looks dodgy is the double slash?
/opt/anaconda/envs/py36/bin//python3.6

Ale Martinez

unread,
Jul 1, 2018, 4:05:39 PM7/1/18
to golden-cheetah-users
Try configuring GC without the /bin part I.e. /opt/anaconda/envs/py36

Daniel Langenkämper

unread,
Jul 1, 2018, 4:18:23 PM7/1/18
to golden-cheetah-users
That was successful. Thank you very much. It would probably be good to clarify in the wiki which  path to use as Python home when GC 3.5 is released.

Manuel Oberti

unread,
Jul 2, 2018, 6:43:43 AM7/2/18
to golden-cheetah-users
I have same problem with Python......my directory is C:/Users/ObertiM/AppData/Local/Programs/Python/Python36
but each time then I start GC a messagge "PHYTON DOES NOT APPEAR TO BE INSTALLED IN THAT LOCATION" appears.

If I configure python in this location for 3-4 times all it's ok and Python works correctly

What's wrong ?

THANKS

Ale Martinez

unread,
Jul 2, 2018, 10:07:40 AM7/2/18
to golden-cheetah-users
El lunes, 2 de julio de 2018, 7:43:43 (UTC-3), Manuel Oberti escribió:
I have same problem with Python......my directory is C:/Users/ObertiM/AppData/Local/Programs/Python/Python36
but each time then I start GC a messagge "PHYTON DOES NOT APPEAR TO BE INSTALLED IN THAT LOCATION" appears.

If I configure python in this location for 3-4 times all it's ok and Python works correctly
I suspect a timeout problem in this case, probably at https://github.com/GoldenCheetah/GoldenCheetah/blob/43d264e3cb929fb0d2094a9071c4dd67891b9613/src/Python/PythonEmbed.cpp#L130, can you start GC from the command line and post the output when Python detection fails? 

Manuel Oberti

unread,
Jul 2, 2018, 10:20:31 AM7/2/18
to golden-cheetah-users
I'm sorry Ale,
can you explain me how to start GC from the command line ??

Ale Martinez

unread,
Jul 2, 2018, 11:30:14 AM7/2/18
to golden-cheetah-users

Manuel Oberti

unread,
Jul 3, 2018, 2:11:03 AM7/3/18
to golden-cheetah-users


Good morning Ale,
I start GC from a command line , but I haven't a error message.
This is first creen when I start GC....


I go to the TOOLS and reenable python . the first time I have a message , after 3-4 times then I select the right directory , all' it's ok
This is a message after the first reeneable python

Manuel Oberti

unread,
Jul 4, 2018, 5:38:38 AM7/4/18
to golden-cheetah-users
I think that I have found the solution.....

I did not set up the PYTHONPATH on enviroent variables
After setting this PATH , this morning when I open GC all work correctly

THANKS

Horacio Lopez

unread,
Jan 15, 2019, 12:11:24 PM1/15/19
to golden-cheetah-users
Hi

I´m new to GC and trying to enable Python, but have the same problem as you. How do you set the enviroment variable PYTHONPATH? I cant find it.

Best Regards

Horacio

Ale Martinez

unread,
Jan 16, 2019, 9:05:03 AM1/16/19
to golden-cheetah-users
El martes, 15 de enero de 2019, 14:11:24 (UTC-3), Horacio Lopez escribió:
Hi

I´m new to GC and trying to enable Python, but have the same problem as you.

The steps to enable Python are:

1) Use Help > About > Version to know which Python version was used in this build
2) Install a version of Python matching the major and minor from above s.t. 3.6
3) Install required (sip) and recommended modules (numpy, plotly) as explained in https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Special-Topics_Working-with-Python
4) Enable Python in preferences, if Python is not installed in a standard location or accessible via PATH in for your OS you may need to set Python Home to the installation directory.
4) Restart GC and test using a simple Python Chart.

It is not exactly plug-n-play, yet.

Nadir Baca Paunero

unread,
Mar 9, 2022, 3:49:21 PM3/9/22
to golden-cheetah-users
Hola buenas! cuando no encuentro python a traves del buscador de golden chetah a que se refiere?
Screenshot 2022-03-08 122423.png

Steve Edmonds

unread,
Mar 9, 2022, 4:06:12 PM3/9/22
to golden-che...@googlegroups.com
Hi.


On 09/03/2022 04:28, Nadir Baca Paunero wrote:
Hola buenas! cuando no encuentro python a traves del buscador de golden chetah a que se refiere?
I assume your screen shot shows Python is installed.
Are you at step 4, have you gone Tools>Options>General and checked Enable Python
If Python is installed and in your OS search path then GC should find your installed Python. If not you can add the location of Python home (where Python is installed) in the lower field.
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/cb80c213-5f64-4999-b860-9790d9e7881cn%40googlegroups.com.

Steve Edmonds

unread,
Mar 9, 2022, 4:12:25 PM3/9/22
to golden-che...@googlegroups.com
If you have to enter the python path, here are 2 ways to find out what the path is.

Open cmd and enter following command

python -c "import os, sys; print(os.path.dirname(sys.executable))"

or
https://datatofish.com/locate-python-windows/



On 09/03/2022 04:28, Nadir Baca Paunero wrote:
--

Ale Martinez

unread,
Mar 9, 2022, 4:40:59 PM3/9/22
to golden-cheetah-users
El miércoles, 9 de marzo de 2022 a la(s) 17:49:21 UTC-3, nbacap...@gmail.com escribió:
Hola buenas! cuando no encuentro python a traves del buscador de golden chetah a que se refiere?

Hola Nadir,  si estas usando la versión 3.6 de GoldenCheetah la manera mas sencilla de usar Python es dejar ese campo (Python Home) vacío, marcar el checbox para habilitar Python y reiniciar. Para más detalles https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Special-Topics_Working-with-Python#working-with-python
Reply all
Reply to author
Forward
0 new messages