import sys
print(sys.path)
print(GC.athlete())
Hi Rb thank you for your immediate answering.I really apreciated.
I tried your script in the idle the message at print(GC.athlete())the response script is: "name 'GC' is not defined"My answer at your question are:1) I have installed 3.6




We recommend using `pip' to install and manage python modules and expect the pip module to have been installed. We highly recommend installing this following modules since they are assumed to be available when developing charts:
GoldenCheetah Integration (required)
pip install sip==4.19.8)python --version (this should return 3.6.4 else the wrong python version is on your path)curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
python -m pip instal sip==4.19.8
python -m pip install numpy
python -m pip install pandas
python -m pip install scipypython -m pip install scikit-learnpython -m pip install tensorflow
python -m pip install lmfit
python -m pip install colour
python -m pip install plotly
Python embedding is likely the most powerful and flexible GoldenCheetah's extension, but that flexibility comes with a price; to use it you need to know or be willing to learn about Python. Even to use Python charts developed by others, the minimum is to be able to install Python and manage Python packages using the standard Python package manager (PIP).
Simpler alternatives are available, s.t. in decreasing order of complexity: R Charts, Metrics Trends Charts and User Data/Custom Metrics with formulas and configurable standard charts.
![]()
Best Regards
Alex
python3 --version (this should return 3.6.4 else the wrong python version is on your path)curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install sip==4.19.8
python3 -m pip install numpy
python3 -m pip install pandas
python3 -m pip install scipypython3 -m pip install scikit-learnpython3 -m pip install tensorflow
python3 -m pip install lmfit
python3 -m pip install colour
python3 -m pip install plotly
python3 -m pip show pip
---
Metadata-Version: 2.0
Name: pip
Version: 7.1.2
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email:
License: MIT
Location: /home/user/.local/lib/python3.6.4/site-packages
Requires:
/home/user/.local/lib/python3.6.4/site-packagesor/home/user/.local/lib/python3.6.4/or
??? (where the python executable is) ???
![]()

python3
import sys
sys.path
export PYTHONPATH="/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages"
The path you need to configure Python in GoldenCheetah can be obtained running the Python interpreter and executing the following commands:
import sys
sys.exec_prefix
After you configure Python in GoldenCheetah, restart GoldenCheetah and check Python is recognized in Help > About > Versions.
Hi Ale,Might it be something for next release to embed an python virtual env. as an starting point. Default configured (with the minimal packages) by the install of GC.I don't know if it's complex todo with the different distro's (Windows/Linux/Mac/../..)
Golden Cheetah - Step by Step Instructions for installing Python on Windows 10 setups
These are the steps I followed to get Python setup and running on my GC Windows 10 setup. I am using the latest release version of GoldenCheetah_v3.5-RC2X_64bitWindows.exe on my Windows 10 desktop computer.
1. 1. Update
to the latest release of Golden Cheetah, v3.5-RC2X if you haven’t already. It can be found here:
https://github.com/GoldenCheetah/GoldenCheetah/releases/tag/V3.5-RC2X
2. 2. Test
and run GC v3.5-RC2X to make sure it is working properly prior to installing
Python.
3. 3. Please remove any prior installations of
Python that you may have already installed.
These can be found and removed by going in the “Windows” “Settings” “Apps
& features” and scrolling down to “Python” and anything related such as “Python
Launcher”.
4. 4. Python
3.6.4 has been determined to be stable with the latest GC version, so this is
the version you will need to download. Install Python 3.6.4 which can be found
here:
https://www.python.org/downloads/release/python-364/
I used the Windows x86-64 executable installer and chose
the default installation, not customize install. I did check the “Add Python 3.6.4 to Path”
box, and left the check in the “Install launcher for all users” box.
When the installation finished, there was a “Setup was successful” screen.
5. 5. Next
I followed the instructions given by RB exactly to install the additional
modules that Python needs to access and process data and make graphs, charts
and tables within GC. I did each line
one at a time and made sure each one finished successfully before moving on to
the next.
6. 6. Open
a Windows “Command Prompt console” by typing “Command Prompt” in the search box
next to the Windows Start button in the lower left of your screen. Click on “Command Prompt” that appears in the
search results and console will open.
python --version (this should return 3.6.4 else the wrong python version is on your path)
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
pythonget-pip.py
python -m pip install sip==4.19.8
python -m pip install numpy python -m pip install pandas
python -m pip install scipy
python -m pip install scikit-learn
python -m pip install tensorflow
python -m pip install lmfit
python -m pip install colour
python -m pip install plotly
7. 7. Open Golden Cheetah and go to “Tools” “Options” and check the “Enable
Python” box.
8. 8. Enter the directory path of your Python installation in the “Python Home” box also on the “Tools” “Options” page. Mine was “C:/Users/USER/AppData/Local/Programs/Python/Python36” but yours will likely be different.
a. Open a Windows Command Prompt as done above.
i. Enter “python”
ii. Enter “import sys”
iii. Enter “sys.path”
iv. You should now see all the directory paths for the Python installation, DLLs, libraries and site packages that were installed. Copy one of those from “C: to \\Python36” and paste into the Python Home box.
v. Save the settings to close the “Options”
menu.
9. 9. Close
Golden Cheetah and then reopen it. It
should now recognize the Python installation.
Check this by going to the “Help” “About Golden Cheetah” “Version” menu. Next to Python, you should see 3.6.4. This should be a successful installation.
10. 10. Test by going into the “Activities” section and using the “Hamburger” menu on the top right, choose “Download Chart” and then select a chart that has (Py) in the title and Python chart in the description. I also tested by adding a Python chart from the “Trends” section and both worked properly.
I attached a Microsoft Word file as well where the formatting looks better. I hope this helps you and others to get Python up and running.

<pre style="font-size:28px;line-height:36px;background-color:rgb(248,249,250);border-width:initial;border-style:none;padding-top:2px;padding-right:0.14em;padding-bottom:2px;font-family:inherit;overflow:hidden;width:283px;white-space:pre-wrap" dir=
==4.19.8)Hi Ale,I have found that part of the problem is that there is slight variations on the installation process on the different platforms... GC doesn't do a gr8 job of explaining this... you can see it on this msg-flow... Marco has a problem with his mac version of GC (judging from his screenshots), and many people graciously offered help citing their experience on the Windows-os... well its slightly different.. the file systems are totally different. Perhaps it would be useful to point out these differences, by offering exact examples for the 3 supported platforms (though linux and OSX should be similar).
It should also be pointed out that being operational in Terminal App and Unix cuts the learning curve in half.
--
_______________________________________________
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/43e74ff4-2bc0-4c4b-bd44-dc8932448e0d%40googlegroups.com.
--
_______________________________________________
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/d4dd994f-d256-418a-b0b9-6b2e81dec98d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.
--
_______________________________________________
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/3baba45c-25f9-455c-abcf-40181a1194a1%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.
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/3baba45c-25f9-455c-abcf-40181a1194a1%40googlegroups.com.
--
_______________________________________________
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/5a33b180-76a1-4eb6-869d-40c6cbef657c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-users+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/3baba45c-25f9-455c-abcf-40181a1194a1%40googlegroups.com.
--
_______________________________________________
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-users+unsub...@googlegroups.com.