Re: [Pydev-users] new to pydev | unresolved import
Also, I have a comment on adding modules in the project config. When adding a package myFabModule, it is added sure, but in a very unpythonic manner if you ask me. Its importing this in the namespace as Actually, you need to add the paths that would usually be in the pythonpath (that's: one level before the module you're going to import -- which is what the source folder is meant to be). Cheers, Fabio - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] new to pydev | unresolved import
Hi Jelle, I've added both my python 2.4 2.5 interpreter as well as both the PYTHONPATH's. What bothers me a bit is that when I change the interpreter all modules need to be imported again. Since I've got quite a few of those installed, that takes quite a while. Also, when this is completed, I end up having far more unresolved imports! Can you give an example of which unresolved imports you have? Regarding the forced builtins: am I correct to assume that this is to support complex namespaces, rather than compiled extensions? Have you checked: http://fabioz.com/pydev/manual_101_interpreter.html for details on that? Cheers, Fabio - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] new to pydev | unresolved import
Hi Fabio, Can you give an example of which unresolved imports you have? Sure, I work extensively with the modules developed by enthought, TVTK primarily. Perhaps this is an interesting example: since TVTK consists of an extensive API, its modules are wrapped in a .zip file. TVTK is an example of a module that isn't correctly loaded. Something i noticed as well as that as soon as pydev notices that TVTK isn't resolved, other modules that did have code completion seem to stop working correctly as well. disclaimer: I'm _new_ to eclipse ;') Have you checked: http://fabioz.com/pydev/manual_101_interpreter.html for details on For sure Fabio! Perhaps the following could make a nice addition to this page: what would be an effective manner of verifying that the dynamic code completion is working? A last question would be of there is a way to avoid having all modules re-scanned when changing interpreter? Many thanks, -jelle - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] new to pydev | unresolved import
For sure Fabio! Perhaps the following could make a nice addition to this page: what would be an effective manner of verifying that the dynamic code completion is working? Basically, requesting code-completion in an empty file would be the best way to check if the shell that gets builtins is working (so, if builtin classes appear... e.g.: RuntimeError, AttributeError, etc, the shell should be doing its job). If it's distributed as a zip file, you have to get all the root packages (that would normally be resolved in the pythonpath) within that zip and add them in the forced builtins... That's because currently pydev does not handle zip files (another option would be unzipping the .zip file and adding the directory where it was unzipped to the pythonpath -- or to some folder that's already in the pythonpath -- e.g.: /lib/site-packages) A last question would be of there is a way to avoid having all modules re-scanned when changing interpreter? Not currently... you can add that as a feature request... I think it could be smarter and make some cache based on md5 hashes for modules already parsed (and don't throw that information away while you're still in the dialog to configure the interpreter). Cheers, Fabio - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
[Pydev-users] new to pydev | unresolved import
Hi, I'm curious to pydev: i just installed eclipse 3.3 the latest pydev / extensions. I'm pretty impressed. Eclipse seems pretty polished, svn / cvs integration is terrific, and having completion to all variables is really something. Also code completation templates are impressive. Though there are a few rough edges I need to work around. I hope you might be able to give me a hint here there: I've added both my python 2.4 2.5 interpreter as well as both the PYTHONPATH's. What bothers me a bit is that when I change the interpreter all modules need to be imported again. Since I've got quite a few of those installed, that takes quite a while. Also, when this is completed, I end up having far more unresolved imports! Regarding the forced builtins: am I correct to assume that this is to support complex namespaces, rather than compiled extensions? Thanks, -jelle - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users