GNS3
http://forum.gns3.net/

GNS3 v1.0 b2 .dmg does not work
http://forum.gns3.net/topic12150.html
Page 1 of 1

Author:  rednectar [ Tue Sep 23, 2014 8:48 pm ]
Post subject:  GNS3 v1.0 b2 .dmg does not work

Problem 1 (minor) - when the .dmg opens, there is no icon associated with the .app, so it makes it hard to see

Attachment:
gns3v1NoIcon.png
gns3v1NoIcon.png [ 22.78 KiB | Viewed 4974 times ]

Problem 2 (major) - it doesn't seem to have the right python stuff - here is the error log I got when I tried to open it. Note the last line:
Qt and/or PyQt is probably not installed correctly...

Note: I also renamed the app from GNS3.app to GNS3v1b2.app (and added an icon :))

If there is something else I should install, then let's document it here: http://members.gns3.net/software/

Quote:
2014/09/24 6:30:42.018 AM GNS3[92962]: GNS3 Error
2014/09/24 6:30:46.850 AM mdworker[92755]: Unable to talk to lsboxd
2014/09/24 6:30:48.267 AM GNS3[92962]: Traceback (most recent call last):
2014/09/24 6:30:48.267 AM GNS3[92962]: File "/Applications/GNS3v1b2.app/Contents/Resources/main.py", line 31, in <module>
2014/09/24 6:30:48.267 AM GNS3[92962]: from gns3.qt import QtCore, QtGui, DEFAULT_BINDING
2014/09/24 6:30:48.267 AM GNS3[92962]: File "gns3/qt.pyo", line 39, in <module>
2014/09/24 6:30:48.267 AM GNS3[92962]: File "PyQt4/QtCore.pyo", line 14, in <module>
2014/09/24 6:30:48.267 AM GNS3[92962]: File "PyQt4/QtCore.pyo", line 10, in __load
2014/09/24 6:30:48.267 AM GNS3[92962]: ImportError: dlopen(/Applications/GNS3v1b2.app/Contents/Resources/lib/python3.4/lib-dynload/PyQt4/QtCore.so, 2): Symbol not found: ___sincos_stret
2014/09/24 6:30:48.279 AM GNS3[92962]: Referenced from: /Applications/GNS3v1b2.app/Contents/MacOS/../Frameworks/QtCore.framework/Versions/4/QtCore
2014/09/24 6:30:48.279 AM GNS3[92962]: Expected in: /usr/lib/libSystem.B.dylib
2014/09/24 6:30:48.279 AM GNS3[92962]: in /Applications/GNS3v1b2.app/Contents/MacOS/../Frameworks/QtCore.framework/Versions/4/QtCore
2014/09/24 6:30:48.279 AM GNS3[92962]: During handling of the above exception, another exception occurred:
2014/09/24 6:30:48.280 AM GNS3[92962]: Traceback (most recent call last):
2014/09/24 6:30:48.280 AM GNS3[92962]: File "/Applications/GNS3v1b2.app/Contents/Resources/__boot__.py", line 351, in <module>
2014/09/24 6:30:48.280 AM GNS3[92962]: _run()
2014/09/24 6:30:48.389 AM GNS3[92962]: File "/Applications/GNS3v1b2.app/Contents/Resources/__boot__.py", line 336, in _run
2014/09/24 6:30:48.389 AM GNS3[92962]: exec(compile(source, path, 'exec'), globals(), globals())
2014/09/24 6:30:48.389 AM GNS3[92962]: File "/Applications/GNS3v1b2.app/Contents/Resources/main.py", line 33, in <module>
2014/09/24 6:30:48.389 AM GNS3[92962]: raise RuntimeError("Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...")
2014/09/24 6:30:48.389 AM GNS3[92962]: RuntimeError: Can't import Qt modules: Qt and/or PyQt is probably not installed correctly...

Author:  mweisel [ Tue Sep 23, 2014 11:39 pm ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

Chris:

What Mac OS X version are you using? I only test GNS3 1.0 releases on Mavericks (10.9) and Yosemite (10.10). I attempted to reproduce your bugs on a clean (base with only software and security updates; no dev tools) virtual image of Mavericks 10.9.5, but I didn't encounter your missing icon and runtime issues.

https://db.tt/s2y7SZhi
https://db.tt/4ZRAPUA6

Author:  rednectar [ Wed Sep 24, 2014 9:47 am ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

Hmm. I tested on Mavericks - works OK there. My laptop is Mountain Lion - don't want to upgrade after I saw want Mavericks did to my Mac Mini (soooo much slower). [Waiting for Apple to bring out a new 17" laptop. Might be pushing up daisies first!!!]

So to answer the question: I had the problem on a Mountain Lion (10.8.5) PC

Author:  mweisel [ Thu Sep 25, 2014 1:41 am ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

Oh ... Apple and their breaking changes. :)

I settled on Mavericks as the baseline version because it will soon be the "N - 1" version when Yosemite gets released next month. Another major factor is the following when it comes to decide where resources should be focused:
Attachment:
macosx-market-share.png
macosx-market-share.png [ 124.25 KiB | Viewed 4922 times ]

Author:  mweisel [ Thu Sep 25, 2014 11:45 pm ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

You can "roll your own" GNS3 1.x DMG/App if needed. This may work with previous versions all the way back to Tiger because of MacPorts support, but I only tested it with Mountain Lion. Just make sure you download and install the correct version of dev tools and MacPorts for your Mac OS X.

1. Download and install Xcode or Command Line Tools (OS X Mountain Lion) for Xcode from https://developer.apple.com.

2. Download and install MacPorts (https://www.macports.org/install.php) for OS X 10.8 Mountain Lion.

3. Get and install dependencies for GNS3 1.x. Run the following from the terminal:
Code:
sudo port -v install py34-pyqt4 py34-zmq py34-tornado py34-libcloud py34-requests py34-py2app py34-pip
sudo pip-3.4 install netifaces ws4py

4. Create working directory and change to it. Run the following from the terminal:
Code:
mkdir -p $HOME/Documents/gns3dev
cd $_

5. Download the new Mac GNS3 icon, Dynamips, and VPCS. Also set Dynamips and VPCS as executable. Run the following from the terminal:
Code:
curl -Lo gns3.icns https://googledrive.com/host/0BxzBtjy4gMd3SDZhb1d6R29lTE0
curl -Lo dynamips https://googledrive.com/host/0BxzBtjy4gMd3emYwSjJMa3RLQkE
curl -Lo vpcs https://googledrive.com/host/0BxzBtjy4gMd3ZDR6ZUpQNGpoNUU
chmod +x dynamips
chmod +x vpcs

6. Download the main setup.py file. Run the following from the terminal:
Code:
curl -Lo setup.py http://goo.gl/Zv0yTP

6a. (optional) Modify the VERSION variable value with a text editor. Run the following from the terminal to edit the file:
Code:
nano setup.py

Code:
...
VERSION = "1.1"
...

7. Create the qt.conf file. Run the following from the terminal:
Code:
printf '[Paths]\nPlugins = PlugIns\n' > qt.conf

8. Download and install a patched dependency for the install. Run the following from the terminal:
Code:
curl -L https://github.com/Julian/jsonschema/archive/master.zip | tar -x
cd jsonschema-master
sudo python3.4 setup.py install
cd ..

9. Download the latest GNS3 1.x release for both GUI and Server. For example for 1.1, you would run the following from the terminal:
Code:
curl -L https://github.com/GNS3/gns3-gui/archive/v1.1.tar.gz | tar -x
curl -L https://github.com/GNS3/gns3-server/archive/v1.1.tar.gz | tar -x

10. Rename the directories to map with setup.py. Run the following from the terminal:
Code:
mv gns3-gui-* gns3-gui-master
mv gns3-server-* gns3-server-master

11. Create the DMG file. Run the following from the terminal:
Code:
sudo python3.4 setup.py py2app

12. DMG file will be located in the dist directory.

Author:  rednectar [ Fri Sep 26, 2014 12:31 am ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

Thanks!

But I think I'll just use my Mavericks PC. :)

I do most testing on Linux, but sometimes there's an OS X question so I fire up the OS X version

Author:  jyaa [ Sat Sep 27, 2014 7:07 am ]
Post subject:  Re: GNS3 v1.0 b2 .dmg does not work

Out of interest, where did you find the instructions to create the DMG?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/