{
  "id": 248839,
  "title": "No module named 'mlb.competition'",
  "url": "/competitions/mlb-player-digital-engagement-forecasting/discussion/248839",
  "author_name": "",
  "post_date": "2021-06-25T08:05:52.608677400Z",
  "votes": null,
  "comment_count": 7,
  "views": 0,
  "content": "<h2>I'm getting this error when trying to import mlb.</h2>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n in </p>\n<p>~/miniconda3/lib/python3.8/site-packages/mlb/<strong>init</strong>.py in <br>\n      1 <br>\n----&gt; 2 from .competition import make_env<br>\n      3 <br>\n      4 <strong>all</strong> = ['make_env']</p>\n<p>ModuleNotFoundError: No module named 'mlb.competition'</p>",
  "messages": [
    {
      "id": "1364800",
      "postDate": "06/25/2021 08:05:52",
      "content": "<h2>I'm getting this error when trying to import mlb.</h2>\n<p>ModuleNotFoundError                       Traceback (most recent call last)<br>\n in </p>\n<p>~/miniconda3/lib/python3.8/site-packages/mlb/<strong>init</strong>.py in <br>\n      1 <br>\n----&gt; 2 from .competition import make_env<br>\n      3 <br>\n      4 <strong>all</strong> = ['make_env']</p>\n<p>ModuleNotFoundError: No module named 'mlb.competition'</p>",
      "rawMarkdown": "I'm getting this error when trying to import mlb.\n---------------------------------------------------------------------------\nModuleNotFoundError                       Traceback (most recent call last)\n<timed exec> in <module>\n\n~/miniconda3/lib/python3.8/site-packages/mlb/__init__.py in <module>\n      1 \n----> 2 from .competition import make_env\n      3 \n      4 __all__ = ['make_env']\n\nModuleNotFoundError: No module named 'mlb.competition'",
      "votes": null
    },
    {
      "id": "1364922",
      "postDate": "06/25/2021 10:15:42",
      "content": "<p>Been there - done that last week.</p>\n<p>The MLB works only with Python 3.7 - since your at 3.8 the error exists.</p>\n<p><a href=\"https://www.kaggle.com/c/mlb-player-digital-engagement-forecasting/discussion/246348#1359961\" target=\"_blank\">See this discussion </a></p>",
      "rawMarkdown": "Been there - done that last week.\n\nThe MLB works only with Python 3.7 - since your at 3.8 the error exists.\n\n[See this discussion ](https://www.kaggle.com/c/mlb-player-digital-engagement-forecasting/discussion/246348#1359961)",
      "votes": null
    },
    {
      "id": "1365305",
      "postDate": "06/25/2021 15:37:44",
      "content": "<p>EDIT: I was available to downgrade my Python and now it works perfectly. Thank you!</p>\n<p>Thank you for advice. I probably should find this answer somewhere else but I haven't after a few hours of searching. I have miniconda installed and then I run this <code>conda create -n py37 python&gt;=3.7</code> code. It gets stuck.</p>\n<p>If I run <code>conda install python=3.7</code> it gives</p>\n<pre><code>Collecting package metadata (current_repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: failed with repodata from current_repodata.json, will retry with next repodata source.\nCollecting package metadata (repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: | \nFound conflicts! Looking for incompatible packages.\nThis can take several minutes.  Press CTRL-C to abort.\nfailed                                                                          \n\nUnsatisfiableError: The following specifications were found to be incompatible with a past\nexplicit spec that is not an explicit spec in this operation (python):\n\n  - python=3.7\n\nThe following specifications were found to be incompatible with each other:\n\nOutput in format: Requested package -&gt; Available versions\n\nPackage tk conflicts for:\npip -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ntqdm -&gt; python[version='&gt;=2.7'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nrequests -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nruamel_yaml -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npyopenssl -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npysocks -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ntk\ncryptography -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nchardet -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nsix -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nidna -&gt; python[version='&gt;=3.5'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npython=3.7 -&gt; tk[version='&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npycosat -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nbrotlipy -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nwheel -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npycparser -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nconda-package-handling -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nconda[version='&gt;=4.9.2'] -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nsetuptools -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ncertifi -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nurllib3 -&gt; python[version='&lt;4.0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\n\nPackage ncurses conflicts for:\ntqdm -&gt; python[version='&gt;=2.7'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nlibedit -&gt; ncurses[version='6.0.*|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsqlite -&gt; readline[version='&gt;=8.0,&lt;9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.1,&lt;7.0a0']\npycparser -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npython=3.7 -&gt; ncurses[version='&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npython=3.7 -&gt; sqlite[version='&gt;=3.33.0,&lt;4.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.2,&lt;6.3.0a0']\nsetuptools -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nconda[version='&gt;=4.9.2'] -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npyopenssl -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nreadline -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nurllib3 -&gt; python[version='&lt;4.0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nruamel_yaml -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nbrotlipy -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npip -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nconda-package-handling -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nrequests -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nchardet -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\ncryptography -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nncurses\npysocks -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npycosat -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\ncertifi -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nidna -&gt; python[version='&gt;=3.5'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nwheel -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsix -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsqlite -&gt; ncurses[version='&gt;=6.2,&lt;6.3.0a0|&gt;=6.2,&lt;7.0a0']\n\n... I removed stuff from here to fit it.\n\nPackage requests conflicts for:\nrequests\nconda[version='&gt;=4.9.2'] -&gt; requests[version='&gt;=2.18.4,&lt;3']\n\nPackage brotlipy conflicts for:\nurllib3 -&gt; brotlipy[version='&gt;=0.6.0']\nbrotlipy\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; brotlipy[version='&gt;=0.6.0']\n\nPackage pycosat conflicts for:\nconda[version='&gt;=4.9.2'] -&gt; pycosat[version='&gt;=0.6.3']\npycosat\n\nPackage ruamel_yaml conflicts for:\nruamel_yaml\nconda[version='&gt;=4.9.2'] -&gt; ruamel_yaml[version='&gt;=0.11.14,&lt;0.16']\n\nPackage setuptools conflicts for:\nsetuptools\npip -&gt; setuptools\nwheel -&gt; setuptools\npython=3.7 -&gt; pip -&gt; setuptools\nconda[version='&gt;=4.9.2'] -&gt; setuptools[version='&gt;=31.0.1']\n\nPackage chardet conflicts for:\nconda[version='&gt;=4.9.2'] -&gt; requests[version='&gt;=2.18.4,&lt;3'] -&gt; chardet[version='&gt;=3.0.2,&lt;3.1.0|&gt;=3.0.2,&lt;4|&gt;=3.0.2,&lt;5']\nrequests -&gt; chardet[version='&gt;=3.0.2,&lt;3.1.0|&gt;=3.0.2,&lt;4|&gt;=3.0.2,&lt;5']\nchardet\n\nPackage pyopenssl conflicts for:\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; pyopenssl[version='&gt;=0.14']\npyopenssl\nconda[version='&gt;=4.9.2'] -&gt; pyopenssl[version='&gt;=16.2.0']\nurllib3 -&gt; pyopenssl[version='&gt;=0.14']\n\nPackage libedit conflicts for:\nlibedit\npython=3.7 -&gt; sqlite[version='&gt;=3.33.0,&lt;4.0a0'] -&gt; libedit[version='&gt;=3.1.20170329,&lt;3.2.0a0|&gt;=3.1.20181209,&lt;3.2.0a0|&gt;=3.1.20191231,&lt;3.2.0a0']\nsqlite -&gt; libedit[version='&gt;=3.1.20170329,&lt;3.2.0a0|&gt;=3.1.20181209,&lt;3.2.0a0|&gt;=3.1.20191231,&lt;3.2.0a0']\n\nPackage wheel conflicts for:\npip -&gt; wheel\nwheel\npython=3.7 -&gt; pip -&gt; wheel\n\nPackage tqdm conflicts for:\ntqdm\nconda[version='&gt;=4.9.2'] -&gt; conda-package-handling[version='&gt;=1.3.0'] -&gt; tqdm\nconda-package-handling -&gt; tqdm\n\nPackage pysocks conflicts for:\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; pysocks[version='&gt;=1.5.6,&lt;2.0,!=1.5.7']\nurllib3 -&gt; pysocks[version='&gt;=1.5.6,&lt;2.0,!=1.5.7']\npysocks\nNote that strict channel priority may have removed packages required for satisfiability.\n</code></pre>",
      "rawMarkdown": "EDIT: I was available to downgrade my Python and now it works perfectly. Thank you!\n\nThank you for advice. I probably should find this answer somewhere else but I haven't after a few hours of searching. I have miniconda installed and then I run this `conda create -n py37 python>=3.7` code. It gets stuck.\n\nIf I run `conda install python=3.7` it gives\n```\nCollecting package metadata (current_repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: failed with repodata from current_repodata.json, will retry with next repodata source.\nCollecting package metadata (repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: | \nFound conflicts! Looking for incompatible packages.\nThis can take several minutes.  Press CTRL-C to abort.\nfailed                                                                          \n\nUnsatisfiableError: The following specifications were found to be incompatible with a past\nexplicit spec that is not an explicit spec in this operation (python):\n\n  - python=3.7\n\nThe following specifications were found to be incompatible with each other:\n\nOutput in format: Requested package -> Available versions\n\nPackage tk conflicts for:\npip -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ntqdm -> python[version='>=2.7'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nrequests -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nruamel_yaml -> python[version='>=3.9,<3.10.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npyopenssl -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npysocks -> python[version='>=3.7,<3.8.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ntk\ncryptography -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nchardet -> python[version='>=3.9,<3.10.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nsix -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nidna -> python[version='>=3.5'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npython=3.7 -> tk[version='>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npycosat -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nbrotlipy -> python[version='>=3.7,<3.8.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nwheel -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npycparser -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nconda-package-handling -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nconda[version='>=4.9.2'] -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nsetuptools -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ncertifi -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nurllib3 -> python[version='<4.0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\n\nPackage ncurses conflicts for:\ntqdm -> python[version='>=2.7'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nlibedit -> ncurses[version='6.0.*|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsqlite -> readline[version='>=8.0,<9.0a0'] -> ncurses[version='6.0.*|>=6.1,<7.0a0']\npycparser -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npython=3.7 -> ncurses[version='>=6.1,<7.0a0|>=6.2,<7.0a0']\npython=3.7 -> sqlite[version='>=3.33.0,<4.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.2,<6.3.0a0']\nsetuptools -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nconda[version='>=4.9.2'] -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npyopenssl -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nreadline -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nurllib3 -> python[version='<4.0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nruamel_yaml -> python[version='>=3.9,<3.10.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nbrotlipy -> python[version='>=3.7,<3.8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npip -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nconda-package-handling -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nrequests -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nchardet -> python[version='>=3.9,<3.10.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\ncryptography -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nncurses\npysocks -> python[version='>=3.7,<3.8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npycosat -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\ncertifi -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nidna -> python[version='>=3.5'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nwheel -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsix -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsqlite -> ncurses[version='>=6.2,<6.3.0a0|>=6.2,<7.0a0']\n\n... I removed stuff from here to fit it.\n\nPackage requests conflicts for:\nrequests\nconda[version='>=4.9.2'] -> requests[version='>=2.18.4,<3']\n\nPackage brotlipy conflicts for:\nurllib3 -> brotlipy[version='>=0.6.0']\nbrotlipy\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> brotlipy[version='>=0.6.0']\n\nPackage pycosat conflicts for:\nconda[version='>=4.9.2'] -> pycosat[version='>=0.6.3']\npycosat\n\nPackage ruamel_yaml conflicts for:\nruamel_yaml\nconda[version='>=4.9.2'] -> ruamel_yaml[version='>=0.11.14,<0.16']\n\nPackage setuptools conflicts for:\nsetuptools\npip -> setuptools\nwheel -> setuptools\npython=3.7 -> pip -> setuptools\nconda[version='>=4.9.2'] -> setuptools[version='>=31.0.1']\n\nPackage chardet conflicts for:\nconda[version='>=4.9.2'] -> requests[version='>=2.18.4,<3'] -> chardet[version='>=3.0.2,<3.1.0|>=3.0.2,<4|>=3.0.2,<5']\nrequests -> chardet[version='>=3.0.2,<3.1.0|>=3.0.2,<4|>=3.0.2,<5']\nchardet\n\nPackage pyopenssl conflicts for:\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> pyopenssl[version='>=0.14']\npyopenssl\nconda[version='>=4.9.2'] -> pyopenssl[version='>=16.2.0']\nurllib3 -> pyopenssl[version='>=0.14']\n\nPackage libedit conflicts for:\nlibedit\npython=3.7 -> sqlite[version='>=3.33.0,<4.0a0'] -> libedit[version='>=3.1.20170329,<3.2.0a0|>=3.1.20181209,<3.2.0a0|>=3.1.20191231,<3.2.0a0']\nsqlite -> libedit[version='>=3.1.20170329,<3.2.0a0|>=3.1.20181209,<3.2.0a0|>=3.1.20191231,<3.2.0a0']\n\nPackage wheel conflicts for:\npip -> wheel\nwheel\npython=3.7 -> pip -> wheel\n\nPackage tqdm conflicts for:\ntqdm\nconda[version='>=4.9.2'] -> conda-package-handling[version='>=1.3.0'] -> tqdm\nconda-package-handling -> tqdm\n\nPackage pysocks conflicts for:\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> pysocks[version='>=1.5.6,<2.0,!=1.5.7']\nurllib3 -> pysocks[version='>=1.5.6,<2.0,!=1.5.7']\npysocks\nNote that strict channel priority may have removed packages required for satisfiability.\n```",
      "votes": null
    },
    {
      "id": "1365993",
      "postDate": "06/26/2021 10:48:06",
      "content": "<p>I just tried to run the provided code. Got No module named 'mlb' when using the notebook here😬 any clue? </p>",
      "rawMarkdown": "I just tried to run the provided code. Got No module named 'mlb' when using the notebook here😬 any clue?",
      "votes": null
    },
    {
      "id": "1365997",
      "postDate": "06/26/2021 10:56:08",
      "content": "<p>Make sure you have the mlb directory in the same directory. The one you get by installing all data.</p>",
      "rawMarkdown": "Make sure you have the mlb directory in the same directory. The one you get by installing all data.",
      "votes": null
    },
    {
      "id": "1366032",
      "postDate": "06/26/2021 12:00:09",
      "content": "<p>The current directory will be the one your script is saved in (unless you change it with code) - that's the folder than needs the MLB in it.  </p>",
      "rawMarkdown": "The current directory will be the one your script is saved in (unless you change it with code) - that's the folder than needs the MLB in it.",
      "votes": null
    },
    {
      "id": "1366129",
      "postDate": "06/26/2021 13:33:39",
      "content": "<p>Wow, thanks for quick replies. <br>\nThe same code can run when I use the notebook created from clicking my submissions. But the one I start from creating a new notebook and import all mlb data is not working(the directory structure looks the same). Also I can get all the other data and run them without problems, just import mlb is having trouble😂 am I suppose to move my notebook, or what directory should I add? </p>",
      "rawMarkdown": "Wow, thanks for quick replies. \nThe same code can run when I use the notebook created from clicking my submissions. But the one I start from creating a new notebook and import all mlb data is not working(the directory structure looks the same). Also I can get all the other data and run them without problems, just import mlb is having trouble😂 am I suppose to move my notebook, or what directory should I add?",
      "votes": null
    },
    {
      "id": "1366347",
      "postDate": "06/26/2021 17:22:15",
      "content": "<p>Just make sure you have the mlb in the same directory where your notebooks are.</p>",
      "rawMarkdown": "Just make sure you have the mlb in the same directory where your notebooks are.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1364922,
      "author_name": "pcjimmmy",
      "author_url": "",
      "post_date": "06/25/2021 10:15:42",
      "content": "<p>Been there - done that last week.</p>\n<p>The MLB works only with Python 3.7 - since your at 3.8 the error exists.</p>\n<p><a href=\"https://www.kaggle.com/c/mlb-player-digital-engagement-forecasting/discussion/246348#1359961\" target=\"_blank\">See this discussion </a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1365305,
          "author_name": "eliasl",
          "author_url": "",
          "post_date": "06/25/2021 15:37:44",
          "content": "<p>EDIT: I was available to downgrade my Python and now it works perfectly. Thank you!</p>\n<p>Thank you for advice. I probably should find this answer somewhere else but I haven't after a few hours of searching. I have miniconda installed and then I run this <code>conda create -n py37 python&gt;=3.7</code> code. It gets stuck.</p>\n<p>If I run <code>conda install python=3.7</code> it gives</p>\n<pre><code>Collecting package metadata (current_repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: failed with repodata from current_repodata.json, will retry with next repodata source.\nCollecting package metadata (repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: | \nFound conflicts! Looking for incompatible packages.\nThis can take several minutes.  Press CTRL-C to abort.\nfailed                                                                          \n\nUnsatisfiableError: The following specifications were found to be incompatible with a past\nexplicit spec that is not an explicit spec in this operation (python):\n\n  - python=3.7\n\nThe following specifications were found to be incompatible with each other:\n\nOutput in format: Requested package -&gt; Available versions\n\nPackage tk conflicts for:\npip -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ntqdm -&gt; python[version='&gt;=2.7'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nrequests -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nruamel_yaml -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npyopenssl -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npysocks -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ntk\ncryptography -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nchardet -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nsix -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nidna -&gt; python[version='&gt;=3.5'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npython=3.7 -&gt; tk[version='&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npycosat -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nbrotlipy -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nwheel -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\npycparser -&gt; python -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nconda-package-handling -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nconda[version='&gt;=4.9.2'] -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nsetuptools -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\ncertifi -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\nurllib3 -&gt; python[version='&lt;4.0'] -&gt; tk[version='8.6.*|&gt;=8.6.10,&lt;8.7.0a0|&gt;=8.6.8,&lt;8.7.0a0|&gt;=8.6.7,&lt;8.7.0a0']\n\nPackage ncurses conflicts for:\ntqdm -&gt; python[version='&gt;=2.7'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nlibedit -&gt; ncurses[version='6.0.*|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsqlite -&gt; readline[version='&gt;=8.0,&lt;9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.1,&lt;7.0a0']\npycparser -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npython=3.7 -&gt; ncurses[version='&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npython=3.7 -&gt; sqlite[version='&gt;=3.33.0,&lt;4.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.2,&lt;6.3.0a0']\nsetuptools -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nconda[version='&gt;=4.9.2'] -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npyopenssl -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nreadline -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nurllib3 -&gt; python[version='&lt;4.0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nruamel_yaml -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nbrotlipy -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npip -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nconda-package-handling -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nrequests -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nchardet -&gt; python[version='&gt;=3.9,&lt;3.10.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\ncryptography -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nncurses\npysocks -&gt; python[version='&gt;=3.7,&lt;3.8.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\npycosat -&gt; python[version='&gt;=3.8,&lt;3.9.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\ncertifi -&gt; python[version='&gt;=3.6,&lt;3.7.0a0'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nidna -&gt; python[version='&gt;=3.5'] -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nwheel -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsix -&gt; python -&gt; ncurses[version='6.0.*|&gt;=6.0,&lt;7.0a0|&gt;=6.1,&lt;7.0a0|&gt;=6.2,&lt;7.0a0']\nsqlite -&gt; ncurses[version='&gt;=6.2,&lt;6.3.0a0|&gt;=6.2,&lt;7.0a0']\n\n... I removed stuff from here to fit it.\n\nPackage requests conflicts for:\nrequests\nconda[version='&gt;=4.9.2'] -&gt; requests[version='&gt;=2.18.4,&lt;3']\n\nPackage brotlipy conflicts for:\nurllib3 -&gt; brotlipy[version='&gt;=0.6.0']\nbrotlipy\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; brotlipy[version='&gt;=0.6.0']\n\nPackage pycosat conflicts for:\nconda[version='&gt;=4.9.2'] -&gt; pycosat[version='&gt;=0.6.3']\npycosat\n\nPackage ruamel_yaml conflicts for:\nruamel_yaml\nconda[version='&gt;=4.9.2'] -&gt; ruamel_yaml[version='&gt;=0.11.14,&lt;0.16']\n\nPackage setuptools conflicts for:\nsetuptools\npip -&gt; setuptools\nwheel -&gt; setuptools\npython=3.7 -&gt; pip -&gt; setuptools\nconda[version='&gt;=4.9.2'] -&gt; setuptools[version='&gt;=31.0.1']\n\nPackage chardet conflicts for:\nconda[version='&gt;=4.9.2'] -&gt; requests[version='&gt;=2.18.4,&lt;3'] -&gt; chardet[version='&gt;=3.0.2,&lt;3.1.0|&gt;=3.0.2,&lt;4|&gt;=3.0.2,&lt;5']\nrequests -&gt; chardet[version='&gt;=3.0.2,&lt;3.1.0|&gt;=3.0.2,&lt;4|&gt;=3.0.2,&lt;5']\nchardet\n\nPackage pyopenssl conflicts for:\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; pyopenssl[version='&gt;=0.14']\npyopenssl\nconda[version='&gt;=4.9.2'] -&gt; pyopenssl[version='&gt;=16.2.0']\nurllib3 -&gt; pyopenssl[version='&gt;=0.14']\n\nPackage libedit conflicts for:\nlibedit\npython=3.7 -&gt; sqlite[version='&gt;=3.33.0,&lt;4.0a0'] -&gt; libedit[version='&gt;=3.1.20170329,&lt;3.2.0a0|&gt;=3.1.20181209,&lt;3.2.0a0|&gt;=3.1.20191231,&lt;3.2.0a0']\nsqlite -&gt; libedit[version='&gt;=3.1.20170329,&lt;3.2.0a0|&gt;=3.1.20181209,&lt;3.2.0a0|&gt;=3.1.20191231,&lt;3.2.0a0']\n\nPackage wheel conflicts for:\npip -&gt; wheel\nwheel\npython=3.7 -&gt; pip -&gt; wheel\n\nPackage tqdm conflicts for:\ntqdm\nconda[version='&gt;=4.9.2'] -&gt; conda-package-handling[version='&gt;=1.3.0'] -&gt; tqdm\nconda-package-handling -&gt; tqdm\n\nPackage pysocks conflicts for:\nrequests -&gt; urllib3[version='&gt;=1.21.1,&lt;1.27'] -&gt; pysocks[version='&gt;=1.5.6,&lt;2.0,!=1.5.7']\nurllib3 -&gt; pysocks[version='&gt;=1.5.6,&lt;2.0,!=1.5.7']\npysocks\nNote that strict channel priority may have removed packages required for satisfiability.\n</code></pre>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1365993,
      "author_name": "neverstoppredicting",
      "author_url": "",
      "post_date": "06/26/2021 10:48:06",
      "content": "<p>I just tried to run the provided code. Got No module named 'mlb' when using the notebook here😬 any clue? </p>",
      "votes": null,
      "replies": [
        {
          "id": 1365997,
          "author_name": "eliasl",
          "author_url": "",
          "post_date": "06/26/2021 10:56:08",
          "content": "<p>Make sure you have the mlb directory in the same directory. The one you get by installing all data.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1366032,
          "author_name": "pcjimmmy",
          "author_url": "",
          "post_date": "06/26/2021 12:00:09",
          "content": "<p>The current directory will be the one your script is saved in (unless you change it with code) - that's the folder than needs the MLB in it.  </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1366129,
          "author_name": "neverstoppredicting",
          "author_url": "",
          "post_date": "06/26/2021 13:33:39",
          "content": "<p>Wow, thanks for quick replies. <br>\nThe same code can run when I use the notebook created from clicking my submissions. But the one I start from creating a new notebook and import all mlb data is not working(the directory structure looks the same). Also I can get all the other data and run them without problems, just import mlb is having trouble😂 am I suppose to move my notebook, or what directory should I add? </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1366347,
          "author_name": "eliasl",
          "author_url": "",
          "post_date": "06/26/2021 17:22:15",
          "content": "<p>Just make sure you have the mlb in the same directory where your notebooks are.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1364800": "I'm getting this error when trying to import mlb.\n---------------------------------------------------------------------------\nModuleNotFoundError                       Traceback (most recent call last)\n<timed exec> in <module>\n\n~/miniconda3/lib/python3.8/site-packages/mlb/__init__.py in <module>\n      1 \n----> 2 from .competition import make_env\n      3 \n      4 __all__ = ['make_env']\n\nModuleNotFoundError: No module named 'mlb.competition'",
    "1364922": "Been there - done that last week.\n\nThe MLB works only with Python 3.7 - since your at 3.8 the error exists.\n\n[See this discussion ](https://www.kaggle.com/c/mlb-player-digital-engagement-forecasting/discussion/246348#1359961)",
    "1365305": "EDIT: I was available to downgrade my Python and now it works perfectly. Thank you!\n\nThank you for advice. I probably should find this answer somewhere else but I haven't after a few hours of searching. I have miniconda installed and then I run this `conda create -n py37 python>=3.7` code. It gets stuck.\n\nIf I run `conda install python=3.7` it gives\n```\nCollecting package metadata (current_repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: failed with repodata from current_repodata.json, will retry with next repodata source.\nCollecting package metadata (repodata.json): done\nSolving environment: failed with initial frozen solve. Retrying with flexible solve.\nSolving environment: | \nFound conflicts! Looking for incompatible packages.\nThis can take several minutes.  Press CTRL-C to abort.\nfailed                                                                          \n\nUnsatisfiableError: The following specifications were found to be incompatible with a past\nexplicit spec that is not an explicit spec in this operation (python):\n\n  - python=3.7\n\nThe following specifications were found to be incompatible with each other:\n\nOutput in format: Requested package -> Available versions\n\nPackage tk conflicts for:\npip -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ntqdm -> python[version='>=2.7'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nrequests -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nruamel_yaml -> python[version='>=3.9,<3.10.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npyopenssl -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npysocks -> python[version='>=3.7,<3.8.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ntk\ncryptography -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nchardet -> python[version='>=3.9,<3.10.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nsix -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nidna -> python[version='>=3.5'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npython=3.7 -> tk[version='>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npycosat -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nbrotlipy -> python[version='>=3.7,<3.8.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nwheel -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\npycparser -> python -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nconda-package-handling -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nconda[version='>=4.9.2'] -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nsetuptools -> python[version='>=3.8,<3.9.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\ncertifi -> python[version='>=3.6,<3.7.0a0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\nurllib3 -> python[version='<4.0'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']\n\nPackage ncurses conflicts for:\ntqdm -> python[version='>=2.7'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nlibedit -> ncurses[version='6.0.*|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsqlite -> readline[version='>=8.0,<9.0a0'] -> ncurses[version='6.0.*|>=6.1,<7.0a0']\npycparser -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npython=3.7 -> ncurses[version='>=6.1,<7.0a0|>=6.2,<7.0a0']\npython=3.7 -> sqlite[version='>=3.33.0,<4.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.2,<6.3.0a0']\nsetuptools -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nconda[version='>=4.9.2'] -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npyopenssl -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nreadline -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nurllib3 -> python[version='<4.0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nruamel_yaml -> python[version='>=3.9,<3.10.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nbrotlipy -> python[version='>=3.7,<3.8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npip -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nconda-package-handling -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nrequests -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nchardet -> python[version='>=3.9,<3.10.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\ncryptography -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nncurses\npysocks -> python[version='>=3.7,<3.8.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\npycosat -> python[version='>=3.8,<3.9.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\ncertifi -> python[version='>=3.6,<3.7.0a0'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nidna -> python[version='>=3.5'] -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nwheel -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsix -> python -> ncurses[version='6.0.*|>=6.0,<7.0a0|>=6.1,<7.0a0|>=6.2,<7.0a0']\nsqlite -> ncurses[version='>=6.2,<6.3.0a0|>=6.2,<7.0a0']\n\n... I removed stuff from here to fit it.\n\nPackage requests conflicts for:\nrequests\nconda[version='>=4.9.2'] -> requests[version='>=2.18.4,<3']\n\nPackage brotlipy conflicts for:\nurllib3 -> brotlipy[version='>=0.6.0']\nbrotlipy\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> brotlipy[version='>=0.6.0']\n\nPackage pycosat conflicts for:\nconda[version='>=4.9.2'] -> pycosat[version='>=0.6.3']\npycosat\n\nPackage ruamel_yaml conflicts for:\nruamel_yaml\nconda[version='>=4.9.2'] -> ruamel_yaml[version='>=0.11.14,<0.16']\n\nPackage setuptools conflicts for:\nsetuptools\npip -> setuptools\nwheel -> setuptools\npython=3.7 -> pip -> setuptools\nconda[version='>=4.9.2'] -> setuptools[version='>=31.0.1']\n\nPackage chardet conflicts for:\nconda[version='>=4.9.2'] -> requests[version='>=2.18.4,<3'] -> chardet[version='>=3.0.2,<3.1.0|>=3.0.2,<4|>=3.0.2,<5']\nrequests -> chardet[version='>=3.0.2,<3.1.0|>=3.0.2,<4|>=3.0.2,<5']\nchardet\n\nPackage pyopenssl conflicts for:\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> pyopenssl[version='>=0.14']\npyopenssl\nconda[version='>=4.9.2'] -> pyopenssl[version='>=16.2.0']\nurllib3 -> pyopenssl[version='>=0.14']\n\nPackage libedit conflicts for:\nlibedit\npython=3.7 -> sqlite[version='>=3.33.0,<4.0a0'] -> libedit[version='>=3.1.20170329,<3.2.0a0|>=3.1.20181209,<3.2.0a0|>=3.1.20191231,<3.2.0a0']\nsqlite -> libedit[version='>=3.1.20170329,<3.2.0a0|>=3.1.20181209,<3.2.0a0|>=3.1.20191231,<3.2.0a0']\n\nPackage wheel conflicts for:\npip -> wheel\nwheel\npython=3.7 -> pip -> wheel\n\nPackage tqdm conflicts for:\ntqdm\nconda[version='>=4.9.2'] -> conda-package-handling[version='>=1.3.0'] -> tqdm\nconda-package-handling -> tqdm\n\nPackage pysocks conflicts for:\nrequests -> urllib3[version='>=1.21.1,<1.27'] -> pysocks[version='>=1.5.6,<2.0,!=1.5.7']\nurllib3 -> pysocks[version='>=1.5.6,<2.0,!=1.5.7']\npysocks\nNote that strict channel priority may have removed packages required for satisfiability.\n```",
    "1365993": "I just tried to run the provided code. Got No module named 'mlb' when using the notebook here😬 any clue?",
    "1365997": "Make sure you have the mlb directory in the same directory. The one you get by installing all data.",
    "1366032": "The current directory will be the one your script is saved in (unless you change it with code) - that's the folder than needs the MLB in it.",
    "1366129": "Wow, thanks for quick replies. \nThe same code can run when I use the notebook created from clicking my submissions. But the one I start from creating a new notebook and import all mlb data is not working(the directory structure looks the same). Also I can get all the other data and run them without problems, just import mlb is having trouble😂 am I suppose to move my notebook, or what directory should I add?",
    "1366347": "Just make sure you have the mlb in the same directory where your notebooks are."
  },
  "source": "meta"
}