Difference between revisions of "Smart Terminal Convert from 2.7 to 3.6"

From OpenCircuits
Jump to navigation Jump to search
Line 31: Line 31:
  
  
=== Not ==
+
=== Not ===
  
 
<pre>
 
<pre>

Revision as of 09:27, 12 March 2017

General

Look at this for general info:

Exceptions


        except Exception, ex_arg:

change to

        except Exception as ex_arg:


Missing modules

Queue

Fix

import Queue change to import queue


Not


C:\Users\Russ>activate python3_spyder3

(python3_spyder3) C:\Users\Russ>conda install queue
Fetching package metadata ...........

PackageNotFoundError: Package not found: '' Package missing in current win-64 channels:
  - queue

Close matches found; did you mean one of these?

    queue: queuelib

You can search for packages on anaconda.org with

    anaconda search -t conda queue

(python3_spyder3) C:\Users\Russ>pip install queue
Collecting queue
  Could not find a version that satisfies the requirement queue (from versions: )
No matching distribution found for queue

(python3_spyder3) C:\Users\Russ>