Code Monkey home page Code Monkey logo

gym-sudoku's People

Contributors

catherio avatar mhauskn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gym-sudoku's Issues

ModuleNotFoundError: No module named 'gym_sudoku'

$ uname
Darwin

$ python --version
Python 3.6.5 :: Anaconda, Inc.

$ pip list | grep sudoku
gym-sudoku 1.0.2

$ python -c "import gym_sudoku"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'gym_sudoku'

Port to Python 3

Thanks for this environment!

It looks like this is still only for Python 2. E.g. I get NameError: name 'xrange' is not defined in gym_sudoku/envs/sudoku_env.py

Python 2 will no longer be supported as of 2020.
Python 3 is a better language, and all the major libraries support it now.
So we want to port to Python 3, as convenient, over the next few years.

Background and nice timeline diagram at http://www.python3statement.org/

Great advice, planning process, tips at at Porting Python 2 Code to Python 3

To make your project be single-source Python 2/3 compatible, the basic steps are:

  1. Only worry about supporting Python 2.7
  2. Make sure you have good test coverage (coverage.py can help; pip install coverage)
  3. Learn the differences between Python 2 & 3
  4. Use Futurize (or Modernize) to update your code (e.g. pip install future)
  5. Use Pylint to help make sure you don't regress on your Python 3 support (pip install pylint)
  6. Use caniusepython3 to find out which of your dependencies are blocking your use of Python 3 (pip install caniusepython3)
  7. Once your dependencies are no longer blocking you, use continuous integration to make sure you stay compatible with Python 2 & 3 (tox can help test against multiple versions of Python; pip install tox)
  8. Consider using optional static type checking to make sure your type usage works in both Python 2 & 3 (e.g. use mypy to check your typing under both Python 2 & Python 3).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.