Hi,
I just tested this and these are my findings:
1. I'm getting completions for pyramid on the Console (python and
IPython) but I had to use the --system-site-packages flag when creating
the virtualenv. (I'm using virtualenv 1.7)
2. Completions don't work on the Editor because we're not using the venv
interpreter to get them. So we have to fix this one.
3. If you want to get completions on the Console *and* the Editor, you
have start Spyder with the venv interpreter. To do it you have to:
a) Download Spyder sources (2,1 or 2.2dev should work the same)
b) Unpack them in your dir of choice
c) Activate your venv (either with 'workon' (easier) or 'activate')
d) cd into your Spyder sources dir
e) Run spyder with:
python bootstrap.py
I know it's a bit cumbersome but at least it will let you have your work
done until we fix number 2.
Cheers,
Carlos
El 22/04/12 13:55, vbgunz escribió:
Thank you Carlos,
I appreciate your time. Still looking forward to a much better and
more enhanced object inspector :)
On Sunday, April 22, 2012 2:49:04 PM UTC-4, Carlos Córdoba wrote:
I'll take a look at it. It should work after selecting the
virtualenv interpreter, so probably this is a bug on our side.
I'll come back to you in a couple of days.
Cheers,
Carlos
El 22/04/12 13:46, vbgunz escribió:
When I change the interpreter in console > advanced settings and
update the module list, pyramid namespaces do not automatically
complete but the rest of the standard library does. With or
without the --no-site-packages flag, everything still
automatically completes in both virtual environments *but*
pyramid does not complete at all (unless I add it to PYTHONPATH).
I am still new to virtualenv but was under the impression that as
long as I used virtualenv to install pyramid into a virtual
environment, I would not need to mess with PYTHONPATH at all. Am
I wrong?
On Sunday, April 22, 2012 2:33:11 PM UTC-4, Carlos Córdoba wrote:
Hi,
It seems that you've done everything right. Maybe the problem
is in the
--no-site-packages flag to virtualenv. What happens if you
don't use it?
Cheers,
Carlos
El 20/04/12 09:23, vbgunz escribió:
> I installed pyramid in a virtual environment using virtualenv.
> Manually going into the terminal and launching the
interpreter, I am
> able to use pyramid successfully. I am just not able to get
Spyder to
> auto complete a namespace. I've done the following steps.
>
> 1. Create a virtual environment using virtualenv
(--no-site-packages)
> 2. Tools > Preferences > Console > Advanced Settings (point
> interpreter to virtual environment's python executable)
> 3. Tools > Update Module Name List
> 4. Restart Spyder
>
> I still can't get auto complete to work. I am using Spyder
2.1.6
> provided by official Fedora repositories on Fedora 16. I
don't want to
> report this as a bug as I believe I am missing something,
just not
> sure what it is. Can someone please help?
> --
> You received this message because you are subscribed to the
Google
> Groups "spyder" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spyderlib/-/rMRljarwpkAJ
<https://groups.google.com/d/msg/spyderlib/-/rMRljarwpkAJ>.
> To post to this group, send email to
[email protected] <mailto:[email protected]>.
> To unsubscribe from this group, send email to
> [email protected]
<mailto:spyderlib%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en
<http://groups.google.com/group/spyderlib?hl=en>.
--
You received this message because you are subscribed to the
Google Groups "spyder" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/spyderlib/-/ZBSeM8663pMJ
<https://groups.google.com/d/msg/spyderlib/-/ZBSeM8663pMJ>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>.
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en
<http://groups.google.com/group/spyderlib?hl=en>.
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/spyderlib/-/XVno9x7SSvQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.