GNS3 0.8.3 has been released with many new features and bug fixes. I have attempted to modify the current 0.8.2 in Portage and have gotten as far as the following error upon running gns3. Banana gns3 # gns3 ---------Traceback lines (saved in exception.log)---------- Traceback (most recent call last): File "/usr/bin/gns3", line 83, in <module> import GNS3.Main File "/usr/lib64/python2.7/site-packages/GNS3/Main.py", line 65, in <module> app.run(file) File "/usr/lib64/python2.7/site-packages/GNS3/Application.py", line 446, in run confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH) AttributeError: 'module' object has no attribute 'VBOXWRAPPER_DEFAULT_PATH' ----------------------------------------------------------- Attached is my current ebuild and patches. Mostly modified from the current Portage tree.
Created attachment 324476 [details] ebuild
Created attachment 324478 [details, diff] illegal install patch
Able to start GNS3 by commenting out the following lines in /usr/lib64/python2.7/site-packages/GNS3/Application.py # confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH) # confo.vboxwrapper_workdir = ConfDB().get('VBox/vboxwrapper_working_directory', Defaults.VBOXWRAPPER_DEFAULT_WORKDIR) # confo.vboxwrapper_path = os.path.expandvars(os.path.expanduser(confo.vboxwrapper_path)) # confo.vboxwrapper_workdir = os.path.expandvars(os.path.expanduser(confo.vboxwrapper_workdir)) It breaks the UI though such as Edit->Prefences. Hope this helps any developer who may pick this up before I figure it out!
Found that the logic in Defaults.py is not assigning a proper value to the VBOXWRAPPER_DEFAULT_PATH variable. The following allows the program to run but vboxapi is not loading which I believe is an issue with my kernel sources. Will confirm this later. line 86 and beyond of Defaults.py # Default path to vboxwrapper #if sys.platform.startswith('win'): # VBOXWRAPPER_DEFAULT_PATH = unicode('vboxwrapper.exe') #elif sys.platform.startswith('darwin') and hasattr(sys, "frozen"): # VBOXWRAPPER_DEFAULT_PATH = os.getcwdu() + os.sep + '../Resources/VBoxWrapper/Contents/MacOS/VBoxWrapper' #else: # look for vboxwrapper in the current working directory #vboxwrapper_path = os.getcwdu() + os.sep + 'vboxwrapper/vboxwrapper.py' #if os.path.exists(qemuwrapper_path): # VBOXWRAPPER_DEFAULT_PATH = vboxwrapper_path #elif platform.system() == 'Linux': QEMUWRAPPER_DEFAULT_PATH = unicode("/usr/libexec/gns3/qemuwrapper.py") #else: VBOXWRAPPER_DEFAULT_PATH = unicode("/usr/libexec/gns3/vboxwrapper.py") # libexec is standard on BSD platforms
as a note on the previous comment uncommenting that logic will cause the ---------Traceback lines (saved in exception.log)---------- Traceback (most recent call last): File "/usr/bin/gns3", line 83, in <module> import GNS3.Main File "/usr/lib64/python2.7/site-packages/GNS3/Main.py", line 65, in <module> app.run(file) File "/usr/lib64/python2.7/site-packages/GNS3/Application.py", line 446, in run confo.vboxwrapper_path = ConfDB().get('VBox/vboxwrapper_path', Defaults.VBOXWRAPPER_DEFAULT_PATH) AttributeError: 'module' object has no attribute 'VBOXWRAPPER_DEFAULT_PATH'
Created attachment 324808 [details] gns3-0.8.3.ebuild updated ebuild.
Created attachment 324810 [details, diff] install path fix fixes illegal install path. taking from 0.8.2 in Portage tree
Created attachment 324812 [details] Defaults.py Patch Patch fixes VBOX and QEMU defaults not being properly detected.
Created attachment 324836 [details] latest ebuild with pemu support adds support for pemu
Created attachment 324838 [details] dependency change changed qemu dependency to 1.2.0 vice >= as this pulled in qemu-9999
Created attachment 324840 [details] gns3-0.8.3.ebuild changed qemu dependency to 1.2.0 vice >= as this pulled in qemu-9999
Created attachment 324852 [details] install path fix updated install patch to fix wrapper_dir in setup.py.
Created attachment 324860 [details] gns3-0.8.3.ebuild add virtualbox dependency
Still working on getting vboxapi to be recognized by GNS3. Everything else is good. Please add to Portage for testing.
I haven't heard of Jan for a while. I will wait for a little bit longer otherwise I will ask for a new maintainer
(In reply to comment #15) > I haven't heard of Jan for a while. I will wait for a little bit longer > otherwise I will ask for a new maintainer I've moved to a foreign country to a different customer and my Gentoo PC is in box for past couple of months. But I'm still here and from next Monday I should have new flat with internet access ready. Then I will unpack my Gentoo PC and check ebuild and patches from Aaron. Thank you Aaron.
Jan, if all is well I will gladly assist or takeover the maintaining of GNS3.
Created attachment 327546 [details] Ebuild with updated dependencies Thank you Aaron that you took the time to update the ebuild. I recommend altering dependencies for virtualbox so that virtualbox-bin version is accepted.
(In reply to comment #18) > Created attachment 327546 [details] > Ebuild with updated dependencies > > Thank you Aaron that you took the time to update the ebuild. I recommend > altering dependencies for virtualbox so that virtualbox-bin version is > accepted. A couple of review comments: src_unpack() { unpack ${A} } is pointless. This is the default Move the ebuild to EAPI4 and drop all the || dies after the do* commands. Then we can commit it :)
Markos, sounds great. I will modify the ebuild for 0.8.3.1 with your suggestions.
*** This bug has been marked as a duplicate of bug 448538 ***