virtual environment in Wing IDE does not work Mac OS X

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

virtual environment in Wing IDE does not work Mac OS X

WingIDE - User mailing list
Hi,
I am trying to use the python virtual environment with wing IDE and it just does not seem to work. I have it set up in the project properties it just totally ignores it and the path reverts to the where the link is from so back to the Library:
set up the virtual env on the command line like this:
  python3 -m venv python
  source python/bin/activate

Add project properties Custom Python Executable:
/Users/andy/cef-consumer/python/python3
Immediately updates itself to where the symbolic link is:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5


I tried adding the custom python path in the properties (/Users/andy/cef-consumer/python)but nothing works. 

Is there anything special required to get it to work?




Kind regards,
Andy
[hidden email]
CISSP, CSTA, CSTP, CWSA
GIAC: GCIA, GCIH, GPEN, GWAPT, GCFE, GREM
Computer Forensic & Security Specialist
Blog.InfoSecMatters.net


_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: virtual environment in Wing IDE does not work Mac OS X

WingIDE - User mailing list
Andrew Ratcliffe via wingide-users wrote:

> I am trying to use the python virtual environment with wing IDE and it
> just does not seem to work. I have it set up in the project properties
> it just totally ignores it and the path reverts to the where the link
> is from so back to the Library:
> set up the virtual env on the command line like this:
>   python3 -m venv python
>   source python/bin/activate
>
> Add project properties Custom Python Executable:
> /Users/andy/cef-consumer/python/python3
> Immediately updates itself to where the symbolic link is:
> /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5
>
>
> I tried adding the custom python path in the properties
> (/Users/andy/cef-consumer/python)but nothing works.
>
> Is there anything special required to get it to work?

What version of Wing is this?  I'm surprised it's changing the text you
entered for Python Executable.  Is that what is happening?

In general, setting Python Executable to the virtualenv's Python should
work.  I thought that would be bin/python within your virtualenv directory.

A work-around would be to do the python/bin/activate call and then start
Wing from the command line in that environment.  It should pick up the
correct Python / virtualenv to use from the environment.

Please let me know if this does not help.

Thanks,

--

Stephan Deibel
Wingware | Python IDE

The Intelligent Development Environment for Python Programmers

wingware.com

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: virtual environment in Wing IDE does not work Mac OS X

WingIDE - User mailing list
It’s version 5.1.12-1
Yes, that is what is happening. Yes that does work. It’s a shame the other options do not work as it makes using virtual env a little cumbersome.
Thanks
Andy


> On 18 Nov 2016, at 17:34, Wingware Support <[hidden email]> wrote:
>
> Andrew Ratcliffe via wingide-users wrote:
>> I am trying to use the python virtual environment with wing IDE and it just does not seem to work. I have it set up in the project properties it just totally ignores it and the path reverts to the where the link is from so back to the Library:
>> set up the virtual env on the command line like this:
>>  python3 -m venv python
>>  source python/bin/activate
>>
>> Add project properties Custom Python Executable:
>> /Users/andy/cef-consumer/python/python3
>> Immediately updates itself to where the symbolic link is:
>> /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5
>>
>>
>> I tried adding the custom python path in the properties (/Users/andy/cef-consumer/python)but nothing works.
>>
>> Is there anything special required to get it to work?
>
> What version of Wing is this?  I'm surprised it's changing the text you entered for Python Executable.  Is that what is happening?
>
> In general, setting Python Executable to the virtualenv's Python should work.  I thought that would be bin/python within your virtualenv directory.
>
> A work-around would be to do the python/bin/activate call and then start Wing from the command line in that environment.  It should pick up the correct Python / virtualenv to use from the environment.
>
> Please let me know if this does not help.
>
> Thanks,
>
> --
>
> Stephan Deibel
> Wingware | Python IDE
>
> The Intelligent Development Environment for Python Programmers
>
> wingware.com
>

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Loading...