GithubHelp home page GithubHelp logo

py2to3's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

py2to3's Issues

[Bug] FileNotFoundError: [WinError 2] The system cannot find the file specified

1. Summary

I can't run your package in Sublime Text 3.

2. Settings

My Sasha3.py file:

print "Кристина Легендарна!"

3. Steps to reproduce

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.pyCtrl+Shift+P (⌘⇧p for Mac) → Python2To3: Translate Python 2 To 3.

4. Expected behavior

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

5. Actual behavior

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

6. Environment

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.