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

From OpenCircuits
Jump to navigation Jump to search
Line 24: Line 24:
 
== Queue ==
 
== Queue ==
  
 +
=== Fix ===
  
 +
import Queue
 +
change to
 +
import queue
  
<pre>
 
 
 
did not work
 
  
 +
=== Not ==
  
 +
<pre>
  
 
C:\Users\Russ>activate python3_spyder3
 
C:\Users\Russ>activate python3_spyder3
Line 37: Line 39:
 
(python3_spyder3) C:\Users\Russ>conda install queue
 
(python3_spyder3) C:\Users\Russ>conda install queue
 
Fetching package metadata ...........
 
Fetching package metadata ...........
 
  
 
PackageNotFoundError: Package not found: '' Package missing in current win-64 channels:
 
PackageNotFoundError: Package not found: '' Package missing in current win-64 channels:
Line 49: Line 50:
  
 
     anaconda search -t conda queue
 
     anaconda search -t conda queue
 
 
  
 
(python3_spyder3) C:\Users\Russ>pip install queue
 
(python3_spyder3) C:\Users\Russ>pip install queue

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>