Corrupted Python installation should not be used by plugin
See original GitHub issueError from idea.log
file:
2019-04-16 10:31:25,193 [entQueue-0] INFO - WakaTime - Initializing WakaTime plugin v9.3.2 (https://wakatime.com/)
2019-04-16 10:31:25,197 [entQueue-0] DEBUG - WakaTime - Logging level set to DEBUG
2019-04-16 10:31:25,325 [entQueue-0] DEBUG - WakaTime - com.sun.jna.platform.win32.Win32Exception: The system cannot find the file specified.
2019-04-16 10:31:25,330 [entQueue-0] DEBUG - WakaTime - com.sun.jna.platform.win32.Win32Exception: The system cannot find the file specified.
2019-04-16 10:31:25,334 [entQueue-0] DEBUG - WakaTime - pythonw --version
2019-04-16 10:31:25,540 [entQueue-0] DEBUG - WakaTime - Python 3.7.0
2019-04-16 10:31:25,540 [entQueue-0] DEBUG - WakaTime - Found python binary: pythonw
2019-04-16 10:31:34,142 [d thread 1] DEBUG - WakaTime - wakatime cli version check output: "Fatal Python error: initfsencoding: unable to load the file system codec File "C:\Python27\Lib\encodings\__init__.py", line 123 raise CodecRegistryError,\ ^SyntaxError: invalid syntaxCurrent thread 0x00005728 (most recent call first):"
2019-04-16 10:31:34,142 [d thread 1] DEBUG - WakaTime - wakatime cli version check exit code: -1073740791
2019-04-16 10:31:34,142 [d thread 1] INFO - WakaTime - Upgrading wakatime-cli ...
2019-04-16 10:31:47,761 [d thread 1] INFO - WakaTime - Finished upgrading wakatime-cli.
2019-04-16 10:31:47,761 [d thread 1] DEBUG - WakaTime - CLI location: C:\Users\PCUSER\AppData\Roaming\WakaTime\wakatime-master\wakatime\cli.py
2019-04-16 10:33:07,327 [entQueue-0] INFO - WakaTime - Finished initializing WakaTime plugin
2019-04-16 10:33:25,543 [2-thread-1] DEBUG - WakaTime - Executing CLI: [pythonw, C:\Users\PCUSER\AppData\Roaming\WakaTime\wakatime-master\wakatime\cli.py, --entity, C:/Users/PCUSER/AndroidStudioProjects/project1/app/src/main/java/com/example/Main.java, --time, 1555400001.6330, --language, JAVA, --plugin, AndroidStudio/3.3.2 AndroidStudio-wakatime/9.3.2]
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - Fatal Python error: initfsencoding: unable to load the file system codec
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - File "C:\Python27\Lib\encodings\__init__.py", line 123
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - raise CodecRegistryError,\
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - ^
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - SyntaxError: invalid syntax
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime -
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - Current thread 0x00000ae4 (most recent call first):
2019-04-16 10:33:28,373 [2-thread-1] DEBUG - WakaTime - Command finished with return value: -1073740791
The plugin shouldn’t be considered initialized until the version of wakatime-cli can be read. In this case, the pythonw wakatime-cli --version
command failed so the WakaTime plugin assumed wakatime-cli was missing and re-downloaded it.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
unable to install python extension · Issue #133443 - GitHub
Issue Type: Bug attempt to install -- it says, no download it -- i always have to do that -- i do, and...
Read more >How to fix "python installation is corrupted"? - Ask Ubuntu
I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade and encountered the following problem: Can...
Read more >Chocolatey corrupted my Python installation - Reddit
Afterward, I tried using Python but the installation was corrupted. The files are there, but some features are missing or not working right....
Read more >How to to manually recover the a PIP corrupted installation?
I found a path forcing through an update with a wheel package with the following command: python pip-18.1-py2.py3-none-any.whl/pip install --no- ...
Read more >QuickMap Services plugin for QGIS corrupted
I probably need to use QuickMapServices plugin but when I try to install it I receive thi error message: Plugin corrupted. I use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alanhamlett i uninstalled Python2 and i can see wakatime reports on my dashboard again! but when i check the plugin status i still see there is new version available and when i check the plugin in Android Studio i can’t see any update avaialable yet(my wakatime version is 9.3.2 ). but the plugin is working again thats the good news!
Fixed in v11.0.0 using standalone wakatime-cli that doesn’t require system Python to be installed nor working.