Nmap Development mailing list archives
Re: Zenmap 7.10 Crash on first startup
From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 17 Mar 2016 23:20:34 -0500
Ricky, Thanks for the report. I have BCC'd several users who previously reported this issue so they can see this reply. I mistakenly changed a line in Zenmap's setup.py back in November 2014 (r33804) that caused it to install with the wrong paths. I think we didn't see bug reports because it would only cause problems if you'd never had it installed before, and many of our users have been users for a long time. I've fixed it in SVN development branch, but here are a couple fixes you can try: First, you can try to repair your existing installation: sudo sed -i 's|/usr/share/zenmap|/usr/local/share/zenmap|' $(python -c 'from zenmapCore.Paths import __file__;print __file__') Or you can apply the fix to setup.py and rebuild and reinstall: cd nmap-7.10 sed -i 's/saved_prefix = sys\.prefix/saved_prefix = self\.prefix/' zenmap/setup.py make clean-zenmap make build-zenmap make install-zenmap Sorry for the inconvenience! Dan On Thu, Mar 17, 2016 at 4:29 PM, ricky <rickyseltzer () gmail com> wrote:
Dev: I suspect permissions, but what do I know? Description: Ubuntu 15.10 Codename: wily Linux ricky-Inspiron 4.2.0-34-generic #39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux jessie/sid ================================== $ sudo zenmap Version: 7.10 Traceback (most recent call last): File "/usr/local/bin/zenmap", line 188, in <module> zenmapGUI.App.run() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/App.py", line 330, in run window = new_window() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/App.py", line 187, in new_window w = ScanWindow() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/MainWindow.py", line 204, in __init__ self.scan_interface = ScanInterface() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line 203, in __init__ self.__create_toolbar() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line 329, in __create_toolbar self.toolbar = ScanToolbar() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanToolbar.py", line 171, in __init__ self._create_profile() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanToolbar.py", line 205, in _create_profile self.profile_entry = ProfileCombo() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ProfileCombo.py", line 137, in __init__ self.update() File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ProfileCombo.py", line 149, in update profile = CommandProfile() File "/usr/local/lib/python2.7/dist-packages/zenmapCore/UmitConf.py", line 396, in __init__ Profile.__init__(self, user_profile) File "/usr/local/lib/python2.7/dist-packages/zenmapCore/UmitConf.py", line 257, in __init__ user_profile = Path.scan_profile File "/usr/local/lib/python2.7/dist-packages/zenmapCore/Paths.py", line 224, in __getattr__ join(self.user_config_dir, base_paths[name])) File "/usr/local/lib/python2.7/dist-packages/zenmapCore/Paths.py", line 282, in return_if_exists raise Exception("File '%s' does not exist or could not be found!" % path) Exception: File '/home/ricky/.zenmap/scan_profile.usp' does not exist or could not be found! =========================================== $ zenmap --version ——— zenmap 7.10 $ ls -ldg .zenmap .zenmap/* ——— drwxrwxr-x 2 ricky 4096 Mar 17 23:11 .zenmap -rw-rw-r-- 1 ricky 0 Mar 17 23:11 .zenmap/recent_scans.txt -rw-rw-r-- 1 ricky 0 Mar 17 23:11 .zenmap/target_list.txt $ ls -lt /usr/local/bin | head -10 ——— total 12628 -rwxr-xr-x 1 root root 844656 Mar 17 23:08 nping -rwxrwxr-x 1 root root 2584 Mar 17 23:08 ndiff -rwxr-xr-x 1 root root 1472 Mar 17 23:08 uninstall_ndiff -rwxr-xr-x 1 root root 649248 Mar 17 23:08 ncat lrwxrwxrwx 1 root root 6 Mar 17 23:08 nmapfe -> zenmap lrwxrwxrwx 1 root root 6 Mar 17 23:08 xnmap -> zenmap -rwxr-xr-x 1 root root 22194 Mar 17 23:08 uninstall_zenmap -rwxrwxr-x 1 root root 11364 Mar 17 23:08 zenmap -rwxr-xr-x 1 root root 3436112 Mar 17 23:08 nmap Thanks, Ricky S _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap 7.10 Crash on first startup ricky (Mar 17)
- Re: Zenmap 7.10 Crash on first startup Daniel Miller (Mar 17)