Git Product home page Git Product logo

python-tools's People

Contributors

allenhsu avatar go2sh avatar michaelaquilina avatar yamada-wacul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-tools's Issues

Select symbol

There is currently the option to select a string line/block but this can be theoretically extended to select entire blocks.

"python-tools was unable to find your machine's python executable" on Windows

in addition to python-tools, linter-pep8 and linter-flake8 seems not to find their executable path either. However, I am pretty sure I have set python path in Windows %PATH%, I can find it use python
in both Powershell and Command Prompt. I am using Miniconda2 32-bit python, and I can find Python registry information under " \HKLM\SOFTWARE\Wow6432Node\Python ". Why Atom can not find it

Detailed changelog

Dear author,

I have seen two update from your pythin-tools i use but the changelog still is empty, so i have no idea of what is changed.

Regards

I have installed python but python-tools was unable to find....

In my machine, which is windows7 64bit, I have reinstalled a pluggin named Wakatime, (because the plugin didn't work normally).but I don't know why when I launch Atom, the error always shows up:

python-tools was unable to find your machine's python executable.

Please try set the path in package settings and then restart atom.

If the issue persists please post an issue on https://github.com/michaelaquilina/python-tools/issues/new
Error: spawn python ENOENT

I have checked the following points listed in https://atom.io/packages/python-tools, and made sure of that nothing goes wrong:

  • Make sure python is installed on your machine (jedi is used internally which runs off python)
  • Make sure your python executable is added to your PATH environment variable

So what should I do?
Excuse of my little English.
Best Regards.

Bug

I could not install this package in my Windows 10 system. I am a Python programmer and using Atom IDE to develop projects. But problem is I could not install this package properly. After installation, I get the error message which says:

exit with code 1, signal null

But I have no idea how this error popped up. BTW, it works in Linux systems without any problems.

Is this a bug in windows 10?

python-tools overwrites process-wide PATH variable

Around python-tools.coffee line 73, python-tools writes to process.env.PATH using the paths found and guessed for the python executable. This prevents other plugins from spawning child processes using the system's environmental PATH variable. I recommend that python-tools avoid assigning anything to process.env.PATH to promote compatibility with other plugins.

See also kriscross07/atom-gpp-compiler#14

Unable to configure path for cygwin

  • Windows/cygwin
$ whereis python
python: /usr/bin/python /usr/bin/python2.7-config /usr/lib/python2.7 /usr/include/python2.7 /cygdrive/c/dev/diffuse/py                                                                                           thon26.dll /usr/share/man/man1/python.1.gz

$ whereis python2.7.exe
python2.7: /usr/bin/python2.7.exe /usr/lib/python2.7 /usr/include/python2.7 /usr/share/man/man1/python2.7.1.gz

So there is no "python directory" and there is no "python.exe" binary

List Overrides If Pass

In a lot of our code we use an override procedure. We declare a function definition in a base file, and any inheritor must define this function in order for it to be used.

Sample
Parent
def f(self): pass
Child
def f(self): self.doStuff()

Would it be possible, if the function only contains "pass", to search for inheritors?

exit with code 1, signal null

I'm not sure how to get at additional information which will help diagnose the issue.

Happy to provide additional info if you can point me to how to get at it. I can reproduce this consistently.

Per-project virtualenv

In readme written «Goes along really nicely with the autocomplete-python package to provide a full Python IDE experience in Atom.» But autocomplete-python support per-project virtualenv settings in format:

$PROJECT/.env/lib/python2.7/site-packages;

Where $PROJECT is placeholder for project's folder path. Seems like python-tools not used this settings and not support same format in own settings (only full qualified path, but it's not useful when you have ~50 projects with own virtualenvs). So «Go to definition» not work me at all :(

Select All String does nothing

I'm using Atom 1.4.3, and the latest version of python-tools (installed this morning through apm), but when I try to run the Select All String command (either via the keyboard shortcut, or through the command palette), nothing happens.

I've checked the console in the Developer Tools, but nothing shows up there either.

Do you have any ideas how I can debug this more?

Select all string does not work

I tried via command-palette, keybinding and right-click on the mouse, none of them selected the string around the caret/cursor.
I also tried if it was meant to only work when at least one character is selected, but that did not help either.

Versions:
atom: 1.5.3
python-tools 0.6.7

"Atom-beautify" plug and "python-tools" plug-in conflict

On windows systems, "Atom-beautify" plug and "python-tools" plug-in conflict, if
Configuring the "path to python directory", although the "python-tools" can be used normally, but "atom-beautify" error will be prompted to find autopep8.
Then disable the "python-tools" plug after, "atom-beautify" plug-in and can be used normally.

Selecting multiline strings

Selecting a multi-line string that is created using parentheses and implicit string concatenation only selects a portion of the string.

Example multi-line string:

s = ('this is a string '
'that spans multiple '
'lines.')
# equivalent to s = 'this is a string that spans multiple lines.'

but when using ctrl+alt+e to select the string, it only selects a portion, i.e. only 'this is a string '. Perhaps this behavior is what is desired, but I want to make sure it's intentional and not accidental.

Windows 8.1

python-tools experienced an unexpected exit

Atom 1.5.0, Windows 7.

Seeing this issue when I have the package installed upon atom launch. I'm happy to provide additional debug data but I don't know where to find it. I've searched what I believe to be the relevant directories for logs but haven't found any. There are no issues in the atom console. Issue occurs in Dev mode also. I'm pretty sure it's an issue with my setup and not the package but I have no known way to confirm.

Thanks!

atom python-tools error

Use a copy of process.env to add PATH variable

Hey!

Your code is working on the process wide PATH variable. You should use of copy of process.env so other plugins are not affected of yor changes. Here is a excerpt from my package sass-autocompile:

environment = JSON.parse(JSON.stringify( process.env )); # Creates a copy
if typeof searchPath is 'string' and searchPath.length > 1
    environment.PATH += ":#{searchPath}"

exec command, { env: environment }, (error, stdout, stderr) =>
    # ...

python-tools experienced an unexpected exit

After having upgraded from Atom 1.6.0 to 1.6.2 on Debian GNU/Linux stretch/sid, Linux 4.4.6-1 amd64, I got the error message

“python-tools experienced an unexpected exit
[…]
exit with code null, signal SIGKILL”

python-tools 0.6.7.

I cannot reproduce the error after uninstalling and reinstalling the package, which had first been installed under a version of Atom less than 1.6.0, in Atom 1.6.2. However, IIRC such an error did not occur after upgrading from Atom 1.5.3 to 1.6.0.

Please investigate this in order to avoid the same error with future Atom upgrades.

Not compatible atom-django

I'd like to use this package with my Django project, however when I use the Python Django syntax, the ctlr+alt+u stops working. It works with normal Python syntax of course.

Does it work?

when I find variables in python code , it always shows 'python-tools could not find any results'
mac 10.11.1

Spawns Python processes that hog CPU resources

When working with python files, the package will after a few minutes have spawned 3-5 Python processes that steal all my CPU resources. Atom and the funcionalities of the tool seem to work fine, but doing anything else simultaneously is impossible. Killing the troublesome Python processes don't seem to give any obvious side effects, but after 10+ minutes or so they will have spawned again and started eating up all my CPU resources.

Does not work on OSX 10.11.5

Installed in Atom. doesn't work on on OSX 10.11.5
Uninstall action reports "Failed to delete python-tools: Does not exist"
However on a restart of Atom it has been removed.

Using python installed in "ubuntu on windows 10"

At last build Microsoft introduced a way to execute linux on windows.

Would it be possible to use the python installed on linux from atom?

NOTE: to execute a python script from the windows shell one would have to:
bash -c "python script.py"

Getting Python Exec error

python-tools was unable to find your machine's python executable.

Please try set the path in package settings and then restart atom.

If the issue persists please post an issue on https://github.com/michaelaquilina/python-tools/issues/new

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.