jlegewie / py2to3 Goto Github PK
View Code? Open in Web Editor NEWSublime Text 3 Plugin: Translate Python 2 to 3
Sublime Text 3 Plugin: Translate Python 2 to 3
I can't run your package in Sublime Text 3.
My Sasha3.py
file:
print "Кристина Легендарна!"
I reproduce the problem in a version of Sublime Text without plugins and user settings.
I install Sublime Py2To3 → I restart Sublime Text → I open Sasha3.py
→ Ctrl+Shift+P (⌘⇧p for Mac) → Python2To3: Translate Python 2 To 3
.
If I run 2to3 in terminal, file successful convert for me.
D:\Киролайна\Тестовые файлы>2to3 -w Sasha3.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored Sasha3.py
--- Sasha3.py (original)
+++ Sasha3.py (refactored)
@@ -1 +1 @@
-print "Кристина Легендарна!"
+print("Кристина Легендарна!")
RefactoringTool: Files that were modified:
RefactoringTool: Sasha3.py
command: py2to3
Traceback (most recent call last):
File "./python3.3/subprocess.py", line 1104, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Sublime Text 3 x64\sublime_plugin.py", line 818, in run_
return self.run(edit)
File "D:\Sublime Text 3 x64\Data\Packages\Py2to3\Py2to3.py", line 19, in run
p = subprocess.Popen(['2to3', '-w', path], stdout=PIPE, stderr=PIPE)
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1110, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
Python:
3.6.1
Package:
I use the latest stable version of this package for Sublime Text 3
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.