wakatime / sublime-wakatime

Sublime Text 2 & 3 plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/sublime-text
BSD 3-Clause "New" or "Revised" License
526 stars 47 forks source link

Wakatime is trying to use Python3 after I uninstalled it #88

Closed jmona789 closed 6 years ago

jmona789 commented 6 years ago

I installed python3 using brew earlier today but eventually decided to stick with python2.7 I noticed my wakatime plugin wasnt updating my daskboard so I set debug to true and checked out my sublime console and was getting [WakaTime] [DEBUG] wakatime-core exited with status: 102 I figured it might have been because I insallted python 3 so I uninstalled it with brew and now the console is saying "[WakaTime] [ERROR] [Errno 2] No such file or directory: 'python3'" How do I fix tihs so wakatime using python 2.7 instad of trying to use 3

jmona789 commented 6 years ago

UPDATE: restarted sublime but now I'm back to getting [WakaTime] [DEBUG] wakatime-core exited with status: 102 Full console output:

reloading plugin WakaTime.WakaTime
[WakaTime] [INFO] Initializing WakaTime plugin v8.1.1
[WakaTime] [DEBUG] Looking for Python at: /Users/jmona/.wakatime/python/python3
[WakaTime] [DEBUG] [Errno 2] No such file or directory: '/Users/jmona/.wakatime/python/python3'
[WakaTime] [DEBUG] Looking for Python at: /Users/jmona/.wakatime/python/pythonw
[WakaTime] [DEBUG] [Errno 2] No such file or directory: '/Users/jmona/.wakatime/python/pythonw'
[WakaTime] [DEBUG] Looking for Python at: /Users/jmona/.wakatime/python/python
[WakaTime] [DEBUG] [Errno 2] No such file or directory: '/Users/jmona/.wakatime/python/python'
[WakaTime] [DEBUG] Looking for Python at: python3
[WakaTime] [DEBUG] [Errno 2] No such file or directory: 'python3'
[WakaTime] [DEBUG] Looking for Python at: pythonw
[WakaTime] [DEBUG] Python Version Output: Python 2.7.15
[WakaTime] [DEBUG] Found Python at: pythonw
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
[WakaTime] [DEBUG] pythonw /Users/jmona/Library/Application Support/Sublime Text 3/Packages/WakaTime/packages/wakatime/cli.py --entity /Users/jmona/Development/IMC/monday-message-TIDD-19398/june4/index.html --time 1528153064.286438 --plugin sublime/3143 sublime-wakatime/8.1.1 --key XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX231e --alternate-project monday-message-TIDD-19398 --cursorpos 359 --verbose
[WakaTime] [DEBUG] wakatime-core exited with status: 102
alanhamlett commented 6 years ago

Those DEBUG logs aren't errors, just the WakaTime plugin looking for Python until it was found as pythonw. Was the plugin reporting No such file or directory: 'python3' happening after restarting Sublime Text and uninstalling Python3? Python is detected once when ST starts, so it could just be using Python3 when it wasn't available after uninstalling.

The second error was probably from downtime we experienced earlier today. Does the status bar in ST show WakaTime OK now?

jmona789 commented 6 years ago

Yes, it shows WakaTime OK now and it seems to be working. Thanks for the help