It is currently Tue Sep 29, 2020 7:36 pm


All times are UTC




Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Python 3.3 issues [SOLVED]
PostPosted: Thu Sep 11, 2014 4:10 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
I hope someone can help with this, I really very heavily on GNS3, for work and study.

After installing gns3-gui-1.0-beta2 I now have the below errors, and the stable v0.8.6 is no longer working either (not that I expected 0.8.6 to work after installing beta2)


[email protected]:/media/E1/GNS3/gns3-gui-1.0-beta2$ sudo gns3
GNS3 GUI version 1.0beta2
Copyright (c) 2007-2014 GNS3 Technologies Inc.
****** Exception detected, traceback information saved in exception.log ******

PLEASE REPORT ON development-f14.html OR http://github.com/GNS3/gns3-gui/issues

Traceback (most recent call last):
File "/usr/local/bin/gns3", line 9, in <module>
load_entry_point('gns3-gui==1.0beta2', 'gui_scripts', 'gns3')()
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0beta2-py3.2.egg/gns3/main.py", line 122, in main
raise RuntimeError("Python 3.3 or higher is required")
RuntimeError: Python 3.3 or higher is required


THEN I RAN THIS TO CHECK PYTHON V
[email protected]:/media/E1/GNS3/gns3-gui-1.0-beta2$ /opt/python3.3/bin/python3
Python 3.3.5 (default, Sep 11 2014, 09:33:10)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

THE EXCEPTION LOG SHOWS THE SAME THING, SEE BELOW
=== GNS3 1.0beta2 traceback on 11 Sep 2014 09:49:02 ===
Traceback (most recent call last):
File "/usr/local/bin/gns3", line 9, in <module>
load_entry_point('gns3-gui==1.0beta2', 'gui_scripts', 'gns3')()
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0beta2-py3.2.egg/gns3/main.py", line 122, in main
raise RuntimeError("Python 3.3 or higher is required")
RuntimeError: Python 3.3 or higher is required

LINUX VERSION
[email protected]:/media/E1/GNS3/gns3-gui-1.0-beta2$ uname -a
Linux gabrielle 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux


I really need this to work and I am at a total loss. I also reinstalled the beta2 again to see if it would pick up on the Python3.3.5, it has not, obviously.




Last edited by drogers on Thu Oct 02, 2014 4:26 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 6:30 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
You've got multiple versions of python (which is fine). What you will need to do is install the server and gui using python and pip from the /opt/python3.3 directory

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 7:37 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel,

Thank you. I am not sure exactly what that means, what I did was copied 'gns3-gui-master' and 'gns3-server-master' to /opt/python3.3 and then ran the install scrypts again, :sudo python3 setup.py install from each of those directories. I then attempted to run GNS3 and received the below error message this time. The last line show the error unable to import name mock, I have no idea what that means. If you need anymore information that what I have posted below, please let me know, and thank you in advance for you help here.


[email protected]:/media/E1/GNS3/gns3-gui-1.0-beta2/gns3-gui-master$ gns3
Traceback (most recent call last):
File "/usr/local/bin/gns3", line 9, in <module>
load_entry_point('gns3-gui==1.0a5.dev1', 'gui_scripts', 'gns3')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2280, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1990, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a5.dev1-py3.2.egg/gns3/main.py", line 35, in <module>
from gns3.main_window import MainWindow
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a5.dev1-py3.2.egg/gns3/main_window.py", line 34, in <module>
from .preferences_dialog import PreferencesDialog
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a5.dev1-py3.2.egg/gns3/preferences_dialog.py", line 26, in <module>
from .pages.cloud_preferences_page import CloudPreferencesPage
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a5.dev1-py3.2.egg/gns3/pages/cloud_preferences_page.py", line 10, in <module>
from unittest import mock
ImportError: cannot import name mock
[email protected]:/media/E1/GNS3/gns3-gui-1.0-beta2/gns3-gui-master$


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 8:24 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
One of two things are happening here...
drogers wrote:
File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a5.dev1-py3.2.egg/gns3/pages/cloud_preferences_page.py", line 10, in <module>


Either you've installed it with the wrong python version (see where it says python3.2 as opposed to python3.3) or you have an old install of gns3 alpha5 that is conflicting (I suspect this is the case).

If you have indeed got an old version of the ER lying around... you should be able to uninstall it using the pip command associated with that python3.2 install (probably found in /usr/local/bin/python3.2/pip)

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 8:59 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel,

Yes, I can see where it states py3.2, I used symantec package manager to verify gns3 had been removed, it had. I thought about using Symantec Package Manager to remove Py2, and/or Py2.7, in the hope that Py3.3 would be preferred. Symantec showed a large number of dependent packages that were going to be removed so I opted out of removing P2 and/or P2.7 to prevent any other issues arising.

I don't know how to uninstall using pip.

I checked /usr/local/bin/ (see below)
-rw-r--r-- 1 root staff 26271 Sep 11 08:15 exception.log
-rwxr-xr-x 1 root staff 306 Sep 11 13:28 gns3
-rwxr-xr-x 1 root staff 335 Sep 11 13:13 gns3server
-rw-r--r-- 1 root staff 6207 Sep 11 11:38 import_exception.log
-rwxr-xr-x 1 root staff 281 Sep 11 14:02 pip
-rwxr-xr-x 1 root staff 283 Sep 11 14:02 pip2
-rwxr-xr-x 1 root staff 287 Sep 11 14:02 pip2.7

[email protected]:/usr/local/bin$ python --version
Python 2.7.3

I have been fighting this issue with the new beta version of GNS3 since it was first published, I have failed at every turn to get it running on Debian Wheezy. I have had to fall back on the stable v0.8.6 continually, but it woudl really be helpful to have the ability of switching.

Should I have all the gns3 files in the python 3.3 folder? gns3-gui-1.0-beta2, gns3-gui-master, and gns3-server-master?


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 9:50 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
I wouldn't recommend removing the system python's at all... things will break if you do!

You need to install using the python3.3 binary from your /opt directory installation. Some of the information in the following thread will be of use to you: topic11406.html

I expect the python3.3 installation isn't available from the system path, so you'll need to specify a full path to it.

In fact... You may want to use a venv (or virtualenv) which is a segregated python installation, created from a python on your system (There are some details on this in the above thread). This is actually how I run GNS3 on Debian Wheezy. If I get chance I'll try and write up the instructions for this.

To see if gns3 is installed in python3.2 type:
Code:
pip3 freeze


You'll probably see a couple of gns3 items in the list (I hope)

To remove these type
Code:
pip3 uninstall gns3-server gns3-gui

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Thu Sep 11, 2014 10:51 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel

I really appreciate your help with this. I read the links you provided, and ran through them rather quickly, did not work. I am crunched for time right now but look forward to seeing your instructions posted here. As soon as I get a chance I will uninstall the mess I have made and reinstall via your instructions and hopefully that will work for me.

THank you again,


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Sat Sep 13, 2014 11:23 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Hi,

I've put together the guide now, which takes you right from installing Python to running GNS3 v1.

Hopefully it proves useful to you!


Attachments:
gns3-on-wheezy-with-venv.pdf [95.28 KiB]
Downloaded 429 times

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!
Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Tue Sep 16, 2014 4:50 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel,

Thank you for this post however, I am having issues with this. I have pated below:


[email protected]:/media/E1/GNS3/Python-3.4.1# tar -xzvf Python-3.4.1.tgz

omitted

[email protected]:/media/E1/GNS3# cd Python-3.4.1
[email protected]:/media/E1/GNS3/Python-3.4.1# ./configure
bash: ./configure: Permission denied
[email protected]:/media/E1/GNS3/Python-3.4.1#


As you can see I am logged in as root, I received the same result with "sudo", and same result after a reboot. Lastly this was the same result with the -xf extraction options, which I used before -xzvf.

Any ideas what I am missing here?
As you can see I have moved the downloaded Python file to my GNS directory, should I change this directory to something else?

Thanks again in advance for you help,

Darren


Top
 Profile  
 
 Post subject: Re: Python 3.3 issues
PostPosted: Tue Sep 16, 2014 5:11 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel,

Here is a little more info, I attempted with Python3.3.3 just in case this was a version issue, I got the same results pasted below.

[email protected]:/media/E1/GNS3/Python-3.3.3# ./configure
bash: ./configure: Permission denied
[email protected]:/media/E1/GNS3/Python-3.3.3#


E1 under /media is a 500 GB partition on my Tb drive set asisde souly for GNS3. I have provided below the properties of said drive partition.

[email protected]:/media# ls -l
total 40
lrwxrwxrwx 1 root root 6 Apr 30 16:41 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 Apr 30 16:41 cdrom0
drwxrwxrwx 20 root root 4096 Sep 15 08:13 E1
lrwxrwxrwx 1 root root 4 Apr 30 16:41 usb -> usb0
drwxr-xr-x 10 darren root 16384 Dec 31 1969 usb0
drwxr-xr-x 7 darren root 16384 Dec 31 1969 usb1
[email protected]:/media#


Thanks again,
Darren




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO