kihtrak
Hello there, 
When I tried to run the PLCOpeneditor.py , I get the following error as:

File "PLCOpenEditor.py", line 25, in <module>
import wx
ImportError: No module named wx

I installed the wx2.8 packages ( I tried to install wx3.0, but am not able to do so ). What could be the issue and how to resolve it. 

Thanks in advance. 
Quote 0 0
thiagoralves
Which OS are you trying to run this on? I'm assuming it is Linux, but which distribution? Also, are you sure you installed all packages required by PLCopenEditor? If you're in a debian-based distribution, a simple apt-get will do the job:

sudo apt-get install python-wxgtk2.8 pyro python-numpy python-nevow python-matplotlib python-lxml

This will install wxgtk2.8. If you're on a newer system, wxgtk2.8 might not be available. In this case, you will have to replace this package with python-wxgtk3.0
Quote 0 0
kihtrak
Am using ubuntu 14.04 . 
I installed the packages before trying to install the editor. I tried sudo apt-get install python-wxgtk3.0. But, I got these error messages:
E: Unable to locate package python-wxgtk3.0
E: Couldn't find any package by regex 'python-wxgtk3.0'
I didn't get these messages when I tried with v2.8. But even with v2.8 the import failed
Quote 0 0
thiagoralves
Type:
sudo apt-get install python-wxgtk2.8 pyro python-numpy python-nevow python-matplotlib python-lxml

and show me the output
Quote 0 0
kihtrak
I got the following output :

Reading package lists... Done
Building dependency tree
Reading state information... Done
pyro is already the newest version.
python-matplotlib is already the newest version.
python-nevow is already the newest version.
python-wxgtk2.8 is already the newest version.
python-lxml is already the newest version.
python-numpy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

However, after I try to run the python script, PLCOpenEditor.py, I get this:

Traceback (most recent call last):
File "PLCOpenEditor.py", line 25, in <module>
import wx
ImportError: No module named wx

P.S.: Previously, I've been using Anaconda. I thought this might cause the issue. Hence, I removed it (not sure, if it's completely removed )

Quote 0 0
thiagoralves
It seems that something is messed up with your packages. Wxwidgets reports as installed but python can't find it. It might be that the python binary you have in your path is of a different version and this one doesn't have wxwidgets. Try to do this:

sudo apt-get purge --auto-remove python-wxgtk2.8 pyro python-numpy python-nevow python-matplotlib python-lxml

to remove all the packets and then install them again with

sudo apt-get install python-wxgtk2.8 pyro python-numpy python-nevow python-matplotlib python-lxml
Quote 0 0
kihtrak
The issue was that since, I was using Anaconda the wx tools didn't get installed in the conda directory. So, I'd to do a "conda" install by typing 
conda install wxpython 
And, yes! I was able to run the python script and open the editor! ( After a big fight [tongue] )
Quote 0 0
kihtrak
The web server ( for the port 8080 rpi ) for OpenPLC loads successfully on rPI, but when I try to open the utility on some other PC through the IP address, it doesn't work. Why is it so? 
Quote 0 0