Git Product home page Git Product logo

Comments (12)

DamnWidget avatar DamnWidget commented on August 16, 2024

Hi.

You don't really need the extra_path, Anaconda is able to autocomplete whatever library your configured interpreter can import from it's PYTHONPATH

Btw, you really want to use "python_interpreter", "python_interpreter_path" is just for SublimeJEDI I think.

from anaconda.

DamnWidget avatar DamnWidget commented on August 16, 2024

Any update here @ekarlso? Can I close this issue?

from anaconda.

chidniu avatar chidniu commented on August 16, 2024

Hi,
for me Anaconda does not seem to be able to import the things from the virtualenv. My settings:

"python_interpreter": "E:\\Project\\venv\\Scripts\\python.exe",
"extra_paths": [
    "E:\\Project\\venv\\Lib\\site-packages",
    "E:\\Project\\src"
]

For some reason Anaconda Goto, Code Completion etc. only works on the standard library. I can see that the right python.exe is started by the Sublime Text, but it doesn't work nevertheless.

from anaconda.

DamnWidget avatar DamnWidget commented on August 16, 2024

You don't need to add any extra path. Anaconda will add you project folder itself as extra path and Jedi will be able to see anything that your configured python interpreter can see.

Make sure the packages that you want to autocomplete/goto/findusages are installed in your virtuale nv. It's safe for you if your remove the full extra_paths setting from your project config file.

from anaconda.

chidniu avatar chidniu commented on August 16, 2024

Both packages I desperately tried to get working (PySide and SleekXMPP) install themselves in .egg s in site-packages. I realized that the other ones (who install themselves as an .egg-info and a package folder) work fine. So a workaround is to split the contents of the egg into the package folders and an .egg-info. Is there a "clean" solution to this?

from anaconda.

DamnWidget avatar DamnWidget commented on August 16, 2024

Hi @phoenixyz

As you can see in this screenshot I have no problems with PySide in Linux
pyside

In fact, the main motivation that I had to write this plugin was just I needed PySide autocompletion working (it doesn't work on SublimeRope/SublimePythonIDE) and SublimeJEDI is slow.

You shouldnt have any problem with .egg contained packages as far as yor intepreter can see them. In th eother hand, I compiled PySide myself but this has nothing to do with your problem.

I'm not familiar with Windows platform but if you are not able to make it work, I suggest you to open an issue in Jedi's project itself.

Btw, have you tried my SublimePySide plugin?

Regards.

from anaconda.

chidniu avatar chidniu commented on August 16, 2024

My interpreter can see the eggs but Anaconda/Jedi can't. For now I worked around it by changing the packages manually (extracting the .egg). Then it works just as it does in your screenshot. Most probably a Windows-specific problem.
I haven't tried your PySide plugin yet, but I'll give it a look.
Thanks and best regards.

from anaconda.

DamnWidget avatar DamnWidget commented on August 16, 2024

I will take a look at this problem when I get some time and can have a windows machine around. If there is a problem with egg binary files it should be reported to Jedi project.

Regards.

from anaconda.

Ecno92 avatar Ecno92 commented on August 16, 2024

Is there any update about this issue? The auto completion works only partially for me. It does find the modules in PySide (QtGui, QtCore, QtHelp...), but it does not complete when I want to go one level deeper like QtGui.QMessagebox.

I'm using Python 3.3 with Sublime Text and Pyside on Windows 8.1 x64.

from anaconda.

DamnWidget avatar DamnWidget commented on August 16, 2024

Hi.

Jedi has a problem with python bindings on Python 3, the author was already aware of the problem and there had been progress in solve the issue. The fix is in the development branch of jedi. I will include it as soon as they move it to the stable branch.

from anaconda.

Ecno92 avatar Ecno92 commented on August 16, 2024

Thank you very much for this update. As soon as you update the package with this fix send me a message. I'll test the update package immediately to verify that it works and that we can close this issue.

from anaconda.

kwang1466 avatar kwang1466 commented on August 16, 2024

Any update or fix for this issue?

from anaconda.

Related Issues (20)

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.