Re: Unable to get started with wxPython 4 & Python 3 on windows 10

Robin Dunn <[email protected]> Fri, 17 May 2019 15:11:09 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
------=_Part_1186_671293546.1558131069484
Content-Type: multipart/alternative; 
	boundary="----=_Part_1187_1226498761.1558131069485"

------=_Part_1187_1226498761.1558131069485
Content-Type: text/plain; charset="UTF-8"



On Friday, May 17, 2019 at 1:14:42 PM UTC-7, Christian O. wrote:
>
> @mike
>
> When I try runnning the script in Python 3.7 Shell for some reason it cant 
> find the module.
>
> Traceback (most recent call last):
>   File "C:\Users\Christian\Desktop\The Summoning\Test.py", line 1, in 
> <module>
>     import wx
> ModuleNotFoundError: No module named 'wx'
>
>
>
> @ Robin Dunn Im pretty sure it is the same python. 
>
> Sublime build file:
> "cmd": [
> "C:\\Users\\Christian\\AppData\\Local\\Programs\\Python\\Python37\\python.exe"
> , "-u", "$file"],
>   "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
>   "selector": "source.python"
>
> Environment Path variable:
> C:\Users\Christian\AppData\Local\Programs\Python\Python37\Scripts
>
>

Just to be sure, run these:

C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -m pip 
install wxPython
C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -x 
"import wx; print(wx.version())"


--
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].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/a732bcbc-4949-43fd-9b48-4a9add6256f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

------=_Part_1187_1226498761.1558131069485
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Friday, May 17, 2019 at 1:14:42 PM UTC-7, Chris=
tian O. wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-l=
eft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"=
>@mike<br><br>When I try runnning the script in Python 3.7 Shell for some r=
eason it cant find the module.<br><br><div><div style=3D"background-color:r=
gb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-wid=
th:1px"><code><div><span style=3D"color:#606">Traceback</span><span style=
=3D"color:#000"> </span><span style=3D"color:#660">(</span><span style=3D"c=
olor:#000">most recent call </span><span style=3D"color:#008">last</span><s=
pan style=3D"color:#660">):</span><span style=3D"color:#000"><br>=C2=A0 </s=
pan><span style=3D"color:#606">File</span><span style=3D"color:#000"> </spa=
n><span style=3D"color:#080">&quot;C:\Users\Christian\Desktop\<wbr>The Summ=
oning\Test.py&quot;</span><span style=3D"color:#660">,</span><span style=3D=
"color:#000"> line </span><span style=3D"color:#066">1</span><span style=3D=
"color:#660">,</span><span style=3D"color:#000"> </span><span style=3D"colo=
r:#008">in</span><span style=3D"color:#000"> </span><span style=3D"color:#0=
80">&lt;module&gt;</span><span style=3D"color:#000"><br>=C2=A0 =C2=A0 </spa=
n><span style=3D"color:#008">import</span><span style=3D"color:#000"> wx<br=
></span><span style=3D"color:#606">ModuleNotFoundError</span><span style=3D=
"color:#660">:</span><span style=3D"color:#000"> </span><span style=3D"colo=
r:#606">No</span><span style=3D"color:#000"> </span><span style=3D"color:#0=
08">module</span><span style=3D"color:#000"> named </span><span style=3D"co=
lor:#080">&#39;wx&#39;</span></div></code></div><div><br></div></div><br><b=
r>@ Robin Dunn Im pretty sure it is the same python.=C2=A0<br><br><div>Subl=
ime build file:</div><div><span style=3D"white-space:pre">	</span></div><di=
v style=3D"background-color:rgb(250,250,250);border-color:rgb(187,187,187);=
border-style:solid;border-width:1px"><code><div><span style=3D"color:#080">=
&quot;cmd&quot;</span><span style=3D"color:#660">:</span><span style=3D"col=
or:#000"> </span><span style=3D"color:#660">[</span><span style=3D"color:#0=
80">&quot;C:\\Users\\Christian\\<wbr>AppData\\Local\\Programs\\<wbr>Python\=
\Python37\\python.exe&quot;</span><span style=3D"color:#660">,</span><span =
style=3D"color:#000"> </span><span style=3D"color:#080">&quot;-u&quot;</spa=
n><span style=3D"color:#660">,</span><span style=3D"color:#000"> </span><sp=
an style=3D"color:#080">&quot;$file&quot;</span><span style=3D"color:#660">=
],</span><span style=3D"color:#000"><br>=C2=A0 </span><span style=3D"color:=
#080">&quot;file_regex&quot;</span><span style=3D"color:#660">:</span><span=
 style=3D"color:#000"> </span><span style=3D"color:#080">&quot;^[ ]*File \&=
quot;(...*?)\&quot;, line ([0-9]*)&quot;</span><span style=3D"color:#660">,=
</span><span style=3D"color:#000"><br>=C2=A0 </span><span style=3D"color:#0=
80">&quot;selector&quot;</span><span style=3D"color:#660">:</span><span sty=
le=3D"color:#000"> </span><span style=3D"color:#080">&quot;source.python&qu=
ot;</span></div></code></div><div><br></div><div>Environment Path variable:=
</div><div style=3D"background-color:rgb(250,250,250);border-color:rgb(187,=
187,187);border-style:solid;border-width:1px"><code><div><span style=3D"col=
or:#000">C</span><span style=3D"color:#660">:\</span><span style=3D"color:#=
606">Users</span><span style=3D"color:#660">\</span><span style=3D"color:#6=
06">Christian</span><span style=3D"color:#660">\</span><span style=3D"color=
:#606">AppData</span><span style=3D"color:#660">\</span><span style=3D"colo=
r:#606">Loc<wbr>al</span><span style=3D"color:#660">\</span><span style=3D"=
color:#606">Programs</span><span style=3D"color:#660">\</span><span style=
=3D"color:#606">Python</span><span style=3D"color:#660">\</span><span style=
=3D"color:#606">Python37</span><span style=3D"color:#660">\</span><span sty=
le=3D"color:#606">Sc<wbr>ripts</span></div></code></div><br></div></blockqu=
ote><div><br></div><div><br></div><div>Just to be sure, run these:</div><di=
v><br></div><div><font face=3D"courier new, monospace">C:\Users\Christian\A=
ppData\Local\Programs\Python\Python37\python.exe -m pip install wxPython<br=
></font></div><div><font face=3D"courier new, monospace">C:\Users\Christian=
\AppData\Local\Programs\Python\Python37\python.exe -x &quot;import wx; prin=
t(wx.version())&quot;<br></font></div><div><br></div><div><br></div><div>--=
</div><div>Robin</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" st=
yle=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-lef=
t: 1ex;"><div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin=
:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr"><div><blockquote class=3D"gmail_quote" style=3D"margin:0;margin-le=
ft:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-dev&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxPyth=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxPython-dev/a732bcbc-4949-43fd-9b48-4a9add6256f8%40googlegroups=
.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/ms=
gid/wxPython-dev/a732bcbc-4949-43fd-9b48-4a9add6256f8%40googlegroups.com</a=
>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_1187_1226498761.1558131069485--

------=_Part_1186_671293546.1558131069484--