Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not work on Ubuntu 12.04 #12

Open
JokerQyou opened this issue Jun 28, 2014 · 6 comments
Open

Could not work on Ubuntu 12.04 #12

JokerQyou opened this issue Jun 28, 2014 · 6 comments

Comments

@JokerQyou
Copy link

Hi I'm using Ubuntu 12.04 64bit, with Sublime Text 2 version 2.0.2 (build 2221) installed.
I installed InputHelper with Package Control.
Each time I press Ctrl + Shift + Z, nothing happens, when I press Ctrl + ` to view the console, the following error was printed:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./inputhelper.py", line 21, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 13] 权限不够

I've read all the issues under this repo, and found no solution so far.

This information might also help: when I run python linux_text_input_gui.py in lib folder, the input box does appear, and after pressing Enter, the content is also printed in the terminal.

@JokerQyou
Copy link
Author

Hi xgenvn!
I've found a way to solve this problem: change line 19 of the file inputhelper.py.

Before:

args = [location]

After:

args = ['python2', location]

I'd like to open a pull request for this, but I can't do it now. If you see this, please fix this problem and close this issuse, thanks.

@xgenvn
Copy link
Owner

xgenvn commented Jun 28, 2014

Please chmod the files under lib to 775 or 777.
On Jun 28, 2014 5:07 PM, "Joker Qyou" [email protected] wrote:

Hi I'm using Ubuntu 12.04 64bit, with Sublime Text 2 version 2.0.2 (build
2221) installed.
Each time I press Ctrl + Shift + Z, nothing happens, when I press Ctrl + `
to view the console, the following error was printed:

Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./inputhelper.py", line 21, in run
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 1139, in _execute_childOSError: [Errno 13] 权限不够

I've read all the issues under this repo, and found no solution sofar.

This information might also help: when I run python
linux_text_input_gui.py in lib folder, the input box does appear, and
after pressing Enter, the content is also printed in the terminal.


Reply to this email directly or view it on GitHub
#12.

@JokerQyou
Copy link
Author

@xgenvn Yeah, that would work too.
But why not use full arg list for subprocess? You could not expect every end-user to chmod that file after installing this package.

@xgenvn
Copy link
Owner

xgenvn commented Jun 29, 2014

@JokerQyou I think we should not use the full arg list for subprocess, because it'll depend on python environment of end user. It would be python2, or python3, or anything else, it'll be complicated then. I supposed most of people using this plugin through typing _git clone , so I have to cut off most of the important code (but also complex) to process the package uncompressing and chmod, the unicode print and grab the output, most of all is the compatibility between sublime 2 and 3.
I'll update and test all the cases when I have time. And thank you to your report. Hope this plugin help you out. And if you want something coming next, try out _Atom Text Editor
by Github.

@JokerQyou
Copy link
Author

@xgenvn Wow, I did not notice that. This plugin is very useful for those who don't want to change their input method. Thanks for your patience.

@geekwho-eth
Copy link

@xgenvn it works on ubuntu 14.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants