mdzidic / tftpgui

Automatically exported from code.google.com/p/tftpgui
Other
0 stars 0 forks source link

ImportError: No module named configparser #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Ubuntu 12.04 (32bit if it matters)
2. Install python 3.2
3.

What is the expected output? What do you see instead?
Expect the gui to load, but instead the following is returned:
user@vmubuntu:/usr/lib/python3.2$ sudo python ~/Downloads/tftpgui/tftpgui.py
Traceback (most recent call last):
  File "/home/user/Downloads/tftpgui/tftpgui.py", line 78, in <module>
    from tftp_package import tftpcfg, tftp_engine
  File "/home/user/Downloads/tftpgui/tftp_package/tftpcfg.py", line 46, in <module>
    import configparser
ImportError: No module named configparser

What version of the product are you using? On what operating system?
tftpgui 3.1
32bit Ubuntu 12.04

Please provide any additional information below.
Seems like an Ubuntu problem, but I thought I start here.

Configparser appears to be part of the package python3.2-minimal:
user@vmubuntu:~/Downloads$ apt-file search configparser.py
python-mapnik2: 
/usr/lib/python2.7/dist-packages/mapnik2/ogcserver/configparser.py
python-mapnik2: /usr/share/pyshared/mapnik2/ogcserver/configparser.py
python-quantum: 
/usr/lib/python2.7/dist-packages/quantum/plugins/cisco/common/cisco_configparser
.py
python-quantum: 
/usr/lib/python2.7/dist-packages/quantum/plugins/linuxbridge/common/configparser
.py
python-quantum: 
/usr/share/pyshared/quantum/plugins/cisco/common/cisco_configparser.py
python-quantum: 
/usr/share/pyshared/quantum/plugins/linuxbridge/common/configparser.py
python3.2-minimal: /usr/lib/python3.2/configparser.py
turnin-ng: /usr/share/turnin-ng/turninng/configparser.py

However this package is installed:
user@vmubuntu:~/Downloads$ sudo apt-get install python3.2-minimal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3.2-minimal is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

And the file configparser.py exists and appears to be in the right location:
user@vmubuntu:~/Downloads$ ls -lh /usr/lib/python3.2/configparser.py
-rw-r--r-- 1 root root 48K Apr 12 16:55 /usr/lib/python3.2/configparser.py

Suggestions?

Original issue reported on code.google.com by knnnigg...@gmail.com on 10 May 2012 at 1:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
After some additional troubleshooting I resolved the issue. 
Ubuntu 12.04 defaults to python 2. 
In order to get python 3, one must perform an "apt-get install python3 
python3.2-minimal python3-tk"

Note that the following package does *not* work: 
python3.2

This package does not include a python3 executable. Strange.

For Ubuntu, the command to execute tftpgui now becomes:
sudo python3 ./tftpgui.py

This thread can be marked a solved.

Original comment by knnnigg...@gmail.com on 11 May 2012 at 12:56