wxPython and PyCharm IDE

1,775 views
Skip to first unread message

delimb...@students.tntech.edu

unread,
Sep 14, 2015, 11:33:44 AM9/14/15
to wxPython-users
Hello, Group!
 
I could use some help, please.  I am using the PyCharm Comm. Edition (v4.5) with Python 2.7.6 and I like the IDE.  But, I need to use wxPython to get more widgets (currently using Tkinter).  I downloaded & installed wxPython (v3.0), but when I try to get the PyCharm to recognize wxPython it throws an error:
 
Traceback (most recent call last):
  File "C:/Program Files (x86)/wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-01/bare.py", line 1, in <module>
    import wx
ImportError: No module named wx
 
 
I tried installing wxPython using PyCharm's Install Package option, but got errors again:
 
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated.  See https://github.com/pypa/pip/issues/906.
Downloading/unpacking wxPython
  Could not find any downloads that satisfy the requirement wxPython
  Some externally hosted files were ignored (use --allow-external wxPython to allow).
Cleaning up...
No distributions at all found for wxPython
Storing debug log for failure in C:\Users\LimbaughDE\pip\pip.log
 
 
I am about ready to give up!  Can someone offer any suggestions, please?
 

Tim Roberts

unread,
Sep 14, 2015, 5:07:53 PM9/14/15
to wxpytho...@googlegroups.com
delimb...@students.tntech.edu wrote:
>
> I could use some help, please. I am using the PyCharm Comm. Edition
> (v4.5) with Python 2.7.6 and I like the IDE. But, I need to use
> wxPython to get more widgets (currently using Tkinter). I downloaded
> & installed wxPython (v3.0), but when I try to get the PyCharm to
> recognize wxPython it throws an error:
>
> Traceback (most recent call last):
> File "C:/Program Files (x86)/wxPython3.0 Docs and
> Demos/wxPython/samples/wxPIA_book/Chapter-01/bare.py", line 1, in <module>
> import wx
> ImportError: No module named wx

That says you haven't installed the wxPython library. You did
apparently install the docs and demos, but that's a separate issue.



> I tried installing wxPython using PyCharm's Install Package option,
> but got errors again:

I suggest you simply download the wxPython installer and run it
yourself, without relying on an unknown package manager.

--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Mike Driscoll

unread,
Sep 14, 2015, 5:10:09 PM9/14/15
to wxPython-users
Hi,

You should just install wxPython using the Windows installer instead of using PyCharm. It is probably doing something odd on the backend (maybe trying to install from source). I have never had issues with installing wxPython using the Windows installer.

Mike
 

levs...@walla.co.il

unread,
Sep 20, 2015, 5:29:05 PM9/20/15
to wxPython-users
Hello Mike
 I am trying to get a working environment on windows 64 bit.
I installed Python 2.7.10 for win64 directly from the Python org site.
the downloaded the wxPython 3.0.xx windows installer and install it.
When I open PyChamp and write import wx I get an error that the DLL can not be laded.
I went to python shell directly and get the same error.
I uninstalled wxPython 3.0.xx and installed version 2.9.5 but the same error sow again.
Can you or someone else write a set of versions that really work ?
Python version 2.7.x
wxPython version x.x
I need it to work on a windows 64bit. !

בתאריך יום שלישי, 15 בספטמבר 2015 בשעה 00:10:09 UTC+3, מאת Mike Driscoll:

Steve (Gadget) Barnes

unread,
Sep 21, 2015, 1:53:26 AM9/21/15
to wxpytho...@googlegroups.com


On 20/09/2015 20:21, levs...@walla.co.il wrote:
> Hello Mike
> I am trying to get a working environment on windows 64 bit.
> I installed Python 2.7.10 for win64 directly from the Python org site.
> the downloaded the wxPython 3.0.xx windows installer and install it.
> When I open PyChamp and write import wx I get an error that the DLL can
> not be laded.
> I went to python shell directly and get the same error.
> I uninstalled wxPython 3.0.xx and installed version 2.9.5 but the same
> error sow again.
> Can you or someone else write a set of versions that really work ?
> Python version 2.7.x
> wxPython version x.x
> I need it to work on a windows 64bit. !
>

The versions of wxPython that you mention are all currently built for 32
bit python, they all work on Windows 32 & 64 with the 32 bit version of
python so your options are:

a) Switch to 32 bit python 2.7.10 and use the pre-built wxPython - this
is the easy option and has been very well tested.
b) Carry on using 64 bit python 2.7.10 and build wxPython for 64 bits
for yourself - you will need a suitable compiler and this is more work
and has had less testing.
c) Switch to 32 or 64 bit Python 3.5 and build the Phoenix port of
wxPython - you will need a suitable compiler and this is more work, has
had a lot less testing and is a work in progress that does not yet
support all of the wx components.
d) Use virtual environments to try all of the above.

Hope that helps,

Gadget/Steve

שלמה לב

unread,
Sep 21, 2015, 3:08:21 AM9/21/15
to wxpytho...@googlegroups.com

Hello Mike

Thanks for your replay. This is exactly what I did and now it is working.

I came from the VB6 environment and would like to rebuild applications that I wrote on VB6. 

I am still looking for a good easy to use IDE that will allow me to create GUI applications with wxPython and Python. They should read and write excel files and sqlite DB. later maybe accessing sql server and mysql DB.

Any recomandations ?

Thanks and regards

Shlomo


ב Sep 21, 2015 8:53, Steve (Gadget) Barnes כתב:

--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Werner

unread,
Sep 21, 2015, 3:09:03 AM9/21/15
to wxpytho...@googlegroups.com
e) Use Python 3.4 and use the available snapshot build for wxPython Phoenix

http://wiki.wxpython.org/How%20to%20install%20wxPython#Installing_wxPython-Phoenix_using_pip

Werner

Mark Livingstone

unread,
Sep 21, 2015, 3:28:28 AM9/21/15
to wxpytho...@googlegroups.com
Hi Shlomo,

I have used Pycharm for several years and it is a great IDE. 

For your database needs, you cannot go past SQLAlchemy. It will do what you have mentioned and more!

For your Excel R/W, it depends if you want to use XLS or XLSX. I have only used XLS, and about two years ago I used http://www.python-excel.org

Good luck!

MarkL


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

Werner

unread,
Sep 21, 2015, 4:07:08 AM9/21/15
to wxpytho...@googlegroups.com
Hi Shlomo,

On 9/21/2015 9:08, שלמה לב wrote:
>
> Hello Mike
>
> Thanks for your replay. This is exactly what I did and now it is working.
>
> I came from the VB6 environment and would like to rebuild applications
> that I wrote on VB6.
>
> I am still looking for a good easy to use IDE that will allow me to
> create GUI applications with wxPython and Python.
>
http://wiki.wxpython.org/wxPythonPit%20Apps

There are a few tools which allow you to generate your UI, e.g. Boa,
wxGlade, wxFormBuilder. I used Boa in the past but a couple of years
ago I switched to coding things by hand using the wx.lib.sized_controls
extensively.
>
> They should read and write excel files and sqlite DB. later maybe
> accessing sql server and mysql DB.
>
As Mark suggested I would say SQLAlchemy is the way to go. With it you
can write applications DB independent, e.g. I use for my shareware
Firebird SQL and am in the process to change the code so one could use
either Firebird SQL or Postgresql, this is mostly handled transparently
by SA. I also use triggers and stored procedures but that is a bit more
involved as the DB's do not have a standard for these things.

Werner

שלמה לב

unread,
Sep 21, 2015, 4:44:24 AM9/21/15
to wxpytho...@googlegroups.com

Thanks I will have a look
ב Sep 21, 2015 11:07, Werner כתב:

שלמה לב

unread,
Sep 21, 2015, 4:46:24 AM9/21/15
to wxpytho...@googlegroups.com

Thanks

In fact get xls files from external sources and load them into SQLITE DB

I will check the link
ב Sep 21, 2015 10:28, Mark Livingstone כתב:

Hi Shlomo,
 
I have used Pycharm for several years and it is a great IDE. 
 
For your database needs, you cannot go past SQLAlchemy. It will do what you have mentioned and more!
 
For your Excel R/W, it depends if you want to use XLS or XLSX. I have only used XLS, and about two years ago I used http://www.python-excel.org
 
Good luck!
 
MarkL
 
On 21 September 2015 at 17:08, שלמה לב <levs...@walla.co.il> wrote:

Hello Mike

Thanks for your replay. This is exactly what I did and now it is working.

I came from the VB6 environment and would like to rebuild applications that I wrote on VB6. 

I am still looking for a good easy to use IDE that will allow me to create GUI applications with wxPython and Python. They should read and write excel files and sqlite DB. later maybe accessing sql server and mysql DB.

--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mario Lacunza

unread,
Sep 21, 2015, 11:00:01 AM9/21/15
to wxPython-users
Hi,

Boa is a death project now, good IDE in his times.. Im comming from VB6 too many many years ago ...

IDE like VS you will not going to find here in the Linux world... so actually Im using:

- wxFormbuilder for create the GUI (windows) and generate the base code.
- Eclipse IDE + PyDev plugin (Pycharm look very good both made with Java) :(
- SQLAlchemy for DB layer.
- wxPython for GUI controls.
- CodeDesigner if you love do first the UML and after that create the GUIs :D




Saludos / Best regards

Mario Lacunza
Email:: mlac...@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Skype: mlacunzav

Lima - Peru

Werner

unread,
Sep 21, 2015, 11:45:45 AM9/21/15
to wxpytho...@googlegroups.com
On 9/21/2015 16:59, Mario Lacunza wrote:
> Hi,
>
> Boa is a death project now, good IDE in his times.. Im comming from
> VB6 too many many years ago ...
Original Author (Riaan Booysen) hasn't done anything to it for some
time, as far as I know. But there is a fork which is active:
https://bitbucket.org/cwt/boa-constructor/overview

Another IDE to look at is WingIDE http://wingware.com/

Werner

edoc

unread,
Sep 21, 2015, 12:26:35 PM9/21/15
to wxpytho...@googlegroups.com
I've made the switch from Wing to PyCharm.  The Community Edition is free, and you get a pretty good sense of the IDE's capabilities.

שלמה לב

unread,
Sep 21, 2015, 1:07:24 PM9/21/15
to wxpytho...@googlegroups.com

thanks I already install it
ב Sep 21, 2015 19:26, edoc כתב:

You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.

Mario Lacunza

unread,
Sep 21, 2015, 1:37:03 PM9/21/15
to wxPython-users
WOW! Looks very nice! Boa was my first IDE and its made with Python, thanks Werner!

If Boa works like the old I can forget Eclipse 😀

Saludos / Best regards

Mario Lacunza
Email:: mlac...@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Skype: mlacunzav

Lima - Peru

שלמה לב

unread,
Sep 21, 2015, 1:43:35 PM9/21/15
to wxpytho...@googlegroups.com

Thanks for the advaice.

I am using Windows not Linux ! But since the group I am working with is using python I would like to join them too.

It is ok to create the GUI separetly and have just the frame events. Then I will code the rest.

I tried the wxGlade to create the Gui in a visual way. there are around some others too but most of them are at alfa level so I prefer not to work with them. I will have a look at the wxFormbuilder. Thanks for the advice.

Regards

Shlomo


ב Sep 21, 2015 17:59, Mario Lacunza כתב:

Hi,

Boa is a death project now, good IDE in his times.. Im comming from VB6 too many many years ago ...

IDE like VS you will not going to find here in the Linux world... so actually Im using:

- wxFormbuilder for create the GUI (windows) and generate the base code.
- Eclipse IDE + PyDev plugin (Pycharm look very good both made with Java) :(
- SQLAlchemy for DB layer.
- wxPython for GUI controls.
- CodeDesigner if you love do first the UML and after that create the GUIs :D


 
Saludos / Best regards

Mario Lacunza
Email:: mlac...@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Skype: mlacunzav

Lima - Peru



--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


 

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

 

--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

 

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

 

--
You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/9nC-YcQ4aOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages