Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88558 > unrolled thread

Intsalling wxPython

Started bySepi <sepideh.gh@gmail.com>
First post2015-04-06 19:54 -0700
Last post2015-04-06 23:08 -0600
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Intsalling wxPython Sepi <sepideh.gh@gmail.com> - 2015-04-06 19:54 -0700
    Re: Intsalling wxPython Sepi Gh <adm2303.2304@gmail.com> - 2015-04-06 20:27 -0700
      Re: Intsalling wxPython Sepi Gh <adm2303.2304@gmail.com> - 2015-04-06 20:29 -0700
        Re: Intsalling wxPython Michael Torrie <torriem@gmail.com> - 2015-04-06 23:01 -0600
        Re: Intsalling wxPython Ian Kelly <ian.g.kelly@gmail.com> - 2015-04-06 23:08 -0600

#88558 — Intsalling wxPython

FromSepi <sepideh.gh@gmail.com>
Date2015-04-06 19:54 -0700
SubjectIntsalling wxPython
Message-ID<cd450cad-fa22-4769-b14b-961a60d98d4c@googlegroups.com>
Hi,

I installed wxpython through command line but when I want to use it, python gives me an error:  File "/Users/sepidehghanavati/Desktop/test.py", line 1, in <module>
    import wx
ImportError: No module named 'wx'

When I check my python path it is version 3.3 (/Library/Frameworks/Python.framework/Versions/3.3/) but when I try to install wxpython via python setup.py install --user it installs in /Users/sepidehghanavati/Library/Python/2.7/bin/

I don't know how to change this.

[toc] | [next] | [standalone]


#88559

FromSepi Gh <adm2303.2304@gmail.com>
Date2015-04-06 20:27 -0700
Message-ID<d858cc51-7e8e-4d04-86fe-feff6872f2cd@googlegroups.com>
In reply to#88558
On Monday, 6 April 2015 22:54:26 UTC-4, Sepi  wrote:
> Hi,
> 
> I installed wxpython through command line but when I want to use it, python gives me an error:  File "/Users/sepidehghanavati/Desktop/test.py", line 1, in <module>
>     import wx
> ImportError: No module named 'wx'
> 
> When I check my python path it is version 3.3 (/Library/Frameworks/Python.framework/Versions/3.3/) but when I try to install wxpython via python setup.py install --user it installs in /Users/sepidehghanavati/Library/Python/2.7/bin/
> 
> I don't know how to change this.

I got the answer! Just using python 3 instead of python in the command line

[toc] | [prev] | [next] | [standalone]


#88560

FromSepi Gh <adm2303.2304@gmail.com>
Date2015-04-06 20:29 -0700
Message-ID<ff225f2b-94ed-4774-9d75-20b2253c5be0@googlegroups.com>
In reply to#88559
On Monday, 6 April 2015 23:27:54 UTC-4, Sepi Gh  wrote:
> On Monday, 6 April 2015 22:54:26 UTC-4, Sepi  wrote:
> > Hi,
> > 
> > I installed wxpython through command line but when I want to use it, python gives me an error:  File "/Users//Desktop/test.py", line 1, in <module>
> >     import wx
> > ImportError: No module named 'wx'
> > 
> > When I check my python path it is version 3.3 (/Library/Frameworks/Python.framework/Versions/3.3/) but when I try to install wxpython via python setup.py install --user it installs in /UsersLibrary/Python/2.7/bin/
> > 
> > I don't know how to change this.
> 
> I got the answer! Just using python 3 instead of python in the command line

But I get this error now:  File "/Users//Library/Python/3.3/lib/python/site-packages/wx_py/PyWrap.py", line 27
    print "Please specify a module name."
                                        ^
SyntaxError: invalid syntax

[toc] | [prev] | [next] | [standalone]


#88563

FromMichael Torrie <torriem@gmail.com>
Date2015-04-06 23:01 -0600
Message-ID<mailman.77.1428382879.12925.python-list@python.org>
In reply to#88560
On 04/06/2015 09:29 PM, Sepi Gh wrote:
>> I got the answer! Just using python 3 instead of python in the command line
> 
> But I get this error now:  File "/Users//Library/Python/3.3/lib/python/site-packages/wx_py/PyWrap.py", line 27
>     print "Please specify a module name."
>                                         ^
> SyntaxError: invalid syntax

wxWidgets does not yet support Python 3, though you can find beta builds
of it:

http://wiki.wxpython.org/ProjectPhoenix

[toc] | [prev] | [next] | [standalone]


#88564

FromIan Kelly <ian.g.kelly@gmail.com>
Date2015-04-06 23:08 -0600
Message-ID<mailman.78.1428383285.12925.python-list@python.org>
In reply to#88560

[Multipart message — attachments visible in raw view] — view raw

On Apr 6, 2015 9:31 PM, "Sepi Gh" <adm2303.2304@gmail.com> wrote:
>
> On Monday, 6 April 2015 23:27:54 UTC-4, Sepi Gh  wrote:
> > On Monday, 6 April 2015 22:54:26 UTC-4, Sepi  wrote:
> > > Hi,
> > >
> > > I installed wxpython through command line but when I want to use it,
python gives me an error:  File "/Users//Desktop/test.py", line 1, in
<module>
> > >     import wx
> > > ImportError: No module named 'wx'
> > >
> > > When I check my python path it is version 3.3
(/Library/Frameworks/Python.framework/Versions/3.3/) but when I try to
install wxpython via python setup.py install --user it installs in
/UsersLibrary/Python/2.7/bin/
> > >
> > > I don't know how to change this.
> >
> > I got the answer! Just using python 3 instead of python in the command
line
>
> But I get this error now:  File
"/Users//Library/Python/3.3/lib/python/site-packages/wx_py/PyWrap.py", line
27
>     print "Please specify a module name."
>                                         ^
> SyntaxError: invalid syntax

wxPython classic doesn't support Python 3. You can try using wxPython
Phoenix which is a complete rewrite that does support Python 3. It doesn't
have a stable release yet, although I hear it's getting close.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web