Re: Re: wxpython install error

Robin Dunn <[email protected]> Mon, 1 Oct 2018 11:32:26 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On Saturday, September 29, 2018 at 3:12:17 PM UTC-7, Croxmor Moraga wrote:
>
> i tried it but it give me first this error:
> New python executable in /home/rodrigo/Documentos/test/wxvenv/bin/python2.7
> Also creating executable in /home/rodrigo/Documentos/test/wxvenv/bin/python
> ERROR: The executable /home/rodrigo/Documentos/test/wxvenv/bin/python2.7 
> is not functioning
> ERROR: It thinks sys.prefix is u'/usr' (should be 
> u'/home/rodrigo/Documentos/test/wxvenv')
> ERROR: virtualenv is not compatible with this system or executable
>
> So i couldn't make the new envirioment.
>


So it looks like you may need to backtrack a little more, and find out what 
python2.7 is being executed, as Fedora's stock python 2.7 should have no 
problems being used in a virtualenv. (I've done it several times.) Run the 
following:

$ which python2.7

And if the printed result is not /usr/bin/python2.7 then try using the full 
/usr/bin/python2.7 path when running python to make the virtualenv. If it 
does print /usr/bin/python2.7 then you will need to figure out what has 
happened to the default python installation on the system.

--
Robin


 

> By the way when i tried the echo $VIRTUAL_ENV , PYTHONPATH AND PHYTONHOME
> it didn't return anything
> [rodrigo@localhost ~]$ echo $PYTHONPATH
>
> [rodrigo@localhost ~]$ echo $PYTHONHOME
>
> What does that mean, because my echo  $PATH always work when i used it and 
> returns me the path, now what can i do?
>
> El vie., 28 sept. 2018 a las 15:39, Robin Dunn (<[email protected]>) 
> escribió:
>
>> On Friday, September 28, 2018 at 9:23:16 AM UTC-7, Croxmor Moraga wrote:
>>>
>>> You are right in what you said about libpng16, i have that one, but i 
>>> dont know why wx search for a libpng12, because that doesn exist in my 
>>> computer, how do i correct that, i tried what you said before.
>>>
>>
>>
>> I still think that it is likely that some other install of wxPython is 
>> being incorrectly imported. If you have an older wxPython build, or perhaps 
>> one from anaconda, then it's possible that they may be linking to the older 
>> libpng. Try running these commands to do a new trial in a new clean 
>> environment.
>>
>>
>> $ mkdir test  # use whatever test folder location that you want
>> $ cd test
>> $ python2.7 -m virtualenv wxvenv # install virtualenv if you don't 
>> already have it
>> $ source wxvenv/bin/activate
>> $ which python # verify it is the one in wxenv/bin
>> $ which pip    # verify it is the one in wxenv/bin
>> $ echo $VIRTUAL_ENV
>> $ echo $PYTHONPATH
>> $ echo $PYTHONHOME
>> $ pip install -U -f 
>> https://extras.wxpython.org/wxPython4/extras/linux/gtk3/fedora-28 
>> wxPython
>> $ python -c "import sys; print sys.prefix"
>> $ python -c "import sys, pprint; pprint.pprint(sys.path)"
>> $ python -c "import wx; print wx; print wx.version()"
>>
>>
>> If that still gives you the libpng12 error then copy the whole session 
>> (the commands and all their output) and paste it in a reply to this message.
>>
>> --
>> Robin
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "wxPython-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.