{
  "id": 409433,
  "title": "jo_wilder import failed. I cannot change to python 3.7 environment...",
  "url": "/competitions/predict-student-performance-from-game-play/discussion/409433",
  "author_name": "",
  "post_date": "2023-05-11T02:16:04.399601300Z",
  "votes": 5,
  "comment_count": 16,
  "views": 0,
  "content": "<p>I changed the environment to pin the original environment.<br>\nBut it shows that the python version is 3.10 thus it still does not work.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F568032%2Fff0b3e49250b74730a6c945b1888c10d%2F2023-05-11%20%2011.15.01.png?generation=1683771339405943&amp;alt=media\" alt=\"Screenshot\"></p>\n<p>Can someone help me?</p>",
  "messages": [
    {
      "id": "2254451",
      "postDate": "05/11/2023 02:16:04",
      "content": "<p>I changed the environment to pin the original environment.<br>\nBut it shows that the python version is 3.10 thus it still does not work.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F568032%2Fff0b3e49250b74730a6c945b1888c10d%2F2023-05-11%20%2011.15.01.png?generation=1683771339405943&amp;alt=media\" alt=\"Screenshot\"></p>\n<p>Can someone help me?</p>",
      "rawMarkdown": "I changed the environment to pin the original environment.\nBut it shows that the python version is 3.10 thus it still does not work.\n\n\n![Screenshot](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F568032%2Fff0b3e49250b74730a6c945b1888c10d%2F2023-05-11%20%2011.15.01.png?generation=1683771339405943&alt=media)\n\nCan someone help me?",
      "votes": null
    },
    {
      "id": "2254574",
      "postDate": "05/11/2023 05:07:11",
      "content": "<p>We encountered the same issue. </p>\n<p><a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> , Could you help us on this?</p>",
      "rawMarkdown": "We encountered the same issue. \n\n@philculliton , Could you help us on this?",
      "votes": null
    },
    {
      "id": "2254586",
      "postDate": "05/11/2023 05:20:38",
      "content": "<p>hope it can help you guys:<br>\n<a href=\"https://www.kaggle.com/discussions/general/399267\" target=\"_blank\">https://www.kaggle.com/discussions/general/399267</a></p>",
      "rawMarkdown": "hope it can help you guys:\nhttps://www.kaggle.com/discussions/general/399267",
      "votes": null
    },
    {
      "id": "2254587",
      "postDate": "05/11/2023 05:21:04",
      "content": "<p>you can check this discussion:<br>\n<a href=\"https://www.kaggle.com/discussions/general/399267\" target=\"_blank\">https://www.kaggle.com/discussions/general/399267</a></p>",
      "rawMarkdown": "you can check this discussion:\nhttps://www.kaggle.com/discussions/general/399267",
      "votes": null
    },
    {
      "id": "2254642",
      "postDate": "05/11/2023 06:21:54",
      "content": "<p><a href=\"https://www.kaggle.com/dwchen\" target=\"_blank\">@dwchen</a> I ran your code (py3.8) -&gt; downloaded your venv (I renamed in to phus-py3.8) -&gt; uploaded to my dataset -&gt; imported to my code -&gt; ran <code>!source venv/bin/activate</code> but the error is still there. Did i miss something?</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3563184%2F886394106f201b3a7f3996a281b6b080%2FScreenshot%20from%202023-05-11%2013-20-19.png?generation=1683786043548920&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "dwchen I ran your code (py3.8) -> downloaded your venv (I renamed in to phus-py3.8) -> uploaded to my dataset -> imported to my code -> ran `!source venv/bin/activate` but the error is still there. Did i miss something?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3563184%2F886394106f201b3a7f3996a281b6b080%2FScreenshot%20from%202023-05-11%2013-20-19.png?generation=1683786043548920&alt=media)",
      "votes": null
    },
    {
      "id": "2254705",
      "postDate": "05/11/2023 07:17:46",
      "content": "<p>would you mind give some details of error? </p>",
      "rawMarkdown": "would you mind give some details of error?",
      "votes": null
    },
    {
      "id": "2254732",
      "postDate": "05/11/2023 07:30:23",
      "content": "<p>As you can see in my attached img: 'No module named \"jo_wilder.competition\"'</p>",
      "rawMarkdown": "As you can see in my attached img: 'No module named \"jo_wilder.competition\"'",
      "votes": null
    },
    {
      "id": "2254741",
      "postDate": "05/11/2023 07:37:06",
      "content": "<p>it looks your final block still running at default python enviroument. <br>\nIf you successful install a new environment, at least you should running like:<br>\n<code>!path/python MYCODE.py</code></p>",
      "rawMarkdown": "it looks your final block still running at default python enviroument. \nIf you successful install a new environment, at least you should running like:\n`!path/python MYCODE.py`",
      "votes": null
    },
    {
      "id": "2254743",
      "postDate": "05/11/2023 07:42:24",
      "content": "<p>So how to run my final block with your env?</p>",
      "rawMarkdown": "So how to run my final block with your env?",
      "votes": null
    },
    {
      "id": "2254761",
      "postDate": "05/11/2023 07:59:54",
      "content": "<p>If you need to mix two unique environments, I suggest you use the \"Copy and Edit\" method to copy a certain environment, then subtract the useless ones, and add the code for another block through addition.</p>\n<p><strong>Your problem seems to be using 'Python 3.8' and 'jo'_ wilder‘</strong></p>\n<p>This seems infeasible, I understand your question. The Kaggle competition only provided the Python 3.7 API, but they upgraded to 3.10. I speculate that 3.8 cannot run the 3.7 API either.</p>\n<p><strong>So, do you want to be able to run the script? Or use 3.8？</strong></p>",
      "rawMarkdown": "If you need to mix two unique environments, I suggest you use the \"Copy and Edit\" method to copy a certain environment, then subtract the useless ones, and add the code for another block through addition.\n\n**Your problem seems to be using 'Python 3.8' and 'jo'_ wilder‘**\n\nThis seems infeasible, I understand your question. The Kaggle competition only provided the Python 3.7 API, but they upgraded to 3.10. I speculate that 3.8 cannot run the 3.7 API either.\n\n**So, do you want to be able to run the script? Or use 3.8？**",
      "votes": null
    },
    {
      "id": "2254763",
      "postDate": "05/11/2023 08:01:31",
      "content": "<p><a href=\"https://www.kaggle.com/gilgarad\" target=\"_blank\">@gilgarad</a> I get the point, suggest you copy from a public notebook, and you will get python3.7 env. <br>\nBecause Kaggle only gives 3.7 api,  but python update to 3.10, so you will meet this problem when you create a new notebook.</p>",
      "rawMarkdown": "gilgarad I get the point, suggest you copy from a public notebook, and you will get python3.7 env. \nBecause Kaggle only gives 3.7 api,  but python update to 3.10, so you will meet this problem when you create a new notebook.",
      "votes": null
    },
    {
      "id": "2254769",
      "postDate": "05/11/2023 08:09:39",
      "content": "<p>I understand now, \"Copy and Edit\" method might be all I need to overcome this dilemma. Thank you a lots!</p>",
      "rawMarkdown": "I understand now, \"Copy and Edit\" method might be all I need to overcome this dilemma. Thank you a lots!",
      "votes": null
    },
    {
      "id": "2254773",
      "postDate": "05/11/2023 08:10:48",
      "content": "<p>No problem :)</p>",
      "rawMarkdown": "No problem :)",
      "votes": null
    },
    {
      "id": "2255184",
      "postDate": "05/11/2023 15:10:35",
      "content": "<p>Thanks for your answer.</p>",
      "rawMarkdown": "Thanks for your answer.",
      "votes": null
    },
    {
      "id": "2257057",
      "postDate": "05/13/2023 01:09:11",
      "content": "<p>That is what I am doing right now… It is a bit annoying, but works fine.</p>",
      "rawMarkdown": "That is what I am doing right now... It is a bit annoying, but works fine.",
      "votes": null
    },
    {
      "id": "2257115",
      "postDate": "05/13/2023 03:48:56",
      "content": "<p>i found the same issue, will be happy to see feedbacks guys</p>",
      "rawMarkdown": "i found the same issue, will be happy to see feedbacks guys",
      "votes": null
    },
    {
      "id": "2257374",
      "postDate": "05/13/2023 09:53:18",
      "content": "<p>Chen suggested me use \"Copy and edit\" method to solve this, and it works! Which means, you can copy and edit other notebook that DID work perfectly, and then replace the notebook's codes with yours.</p>",
      "rawMarkdown": "Chen suggested me use \"Copy and edit\" method to solve this, and it works! Which means, you can copy and edit other notebook that DID work perfectly, and then replace the notebook's codes with yours.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2254574,
      "author_name": "phuhoang26",
      "author_url": "",
      "post_date": "05/11/2023 05:07:11",
      "content": "<p>We encountered the same issue. </p>\n<p><a href=\"https://www.kaggle.com/philculliton\" target=\"_blank\">@philculliton</a> , Could you help us on this?</p>",
      "votes": null,
      "replies": [
        {
          "id": 2254587,
          "author_name": "dwchen",
          "author_url": "",
          "post_date": "05/11/2023 05:21:04",
          "content": "<p>you can check this discussion:<br>\n<a href=\"https://www.kaggle.com/discussions/general/399267\" target=\"_blank\">https://www.kaggle.com/discussions/general/399267</a></p>",
          "votes": null,
          "replies": [
            {
              "id": 2254642,
              "author_name": "phuhoang26",
              "author_url": "",
              "post_date": "05/11/2023 06:21:54",
              "content": "<p><a href=\"https://www.kaggle.com/dwchen\" target=\"_blank\">@dwchen</a> I ran your code (py3.8) -&gt; downloaded your venv (I renamed in to phus-py3.8) -&gt; uploaded to my dataset -&gt; imported to my code -&gt; ran <code>!source venv/bin/activate</code> but the error is still there. Did i miss something?</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3563184%2F886394106f201b3a7f3996a281b6b080%2FScreenshot%20from%202023-05-11%2013-20-19.png?generation=1683786043548920&amp;alt=media\" alt=\"\"></p>",
              "votes": null,
              "replies": [
                {
                  "id": 2254705,
                  "author_name": "dwchen",
                  "author_url": "",
                  "post_date": "05/11/2023 07:17:46",
                  "content": "<p>would you mind give some details of error? </p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 2254732,
                      "author_name": "phuhoang26",
                      "author_url": "",
                      "post_date": "05/11/2023 07:30:23",
                      "content": "<p>As you can see in my attached img: 'No module named \"jo_wilder.competition\"'</p>",
                      "votes": null,
                      "replies": [
                        {
                          "id": 2254741,
                          "author_name": "dwchen",
                          "author_url": "",
                          "post_date": "05/11/2023 07:37:06",
                          "content": "<p>it looks your final block still running at default python enviroument. <br>\nIf you successful install a new environment, at least you should running like:<br>\n<code>!path/python MYCODE.py</code></p>",
                          "votes": null,
                          "replies": [
                            {
                              "id": 2254743,
                              "author_name": "phuhoang26",
                              "author_url": "",
                              "post_date": "05/11/2023 07:42:24",
                              "content": "<p>So how to run my final block with your env?</p>",
                              "votes": null,
                              "replies": [
                                {
                                  "id": 2254761,
                                  "author_name": "dwchen",
                                  "author_url": "",
                                  "post_date": "05/11/2023 07:59:54",
                                  "content": "<p>If you need to mix two unique environments, I suggest you use the \"Copy and Edit\" method to copy a certain environment, then subtract the useless ones, and add the code for another block through addition.</p>\n<p><strong>Your problem seems to be using 'Python 3.8' and 'jo'_ wilder‘</strong></p>\n<p>This seems infeasible, I understand your question. The Kaggle competition only provided the Python 3.7 API, but they upgraded to 3.10. I speculate that 3.8 cannot run the 3.7 API either.</p>\n<p><strong>So, do you want to be able to run the script? Or use 3.8？</strong></p>",
                                  "votes": null,
                                  "replies": [
                                    {
                                      "id": 2254769,
                                      "author_name": "phuhoang26",
                                      "author_url": "",
                                      "post_date": "05/11/2023 08:09:39",
                                      "content": "<p>I understand now, \"Copy and Edit\" method might be all I need to overcome this dilemma. Thank you a lots!</p>",
                                      "votes": null,
                                      "replies": [
                                        {
                                          "id": 2254773,
                                          "author_name": "dwchen",
                                          "author_url": "",
                                          "post_date": "05/11/2023 08:10:48",
                                          "content": "<p>No problem :)</p>",
                                          "votes": null,
                                          "replies": []
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "id": 2255184,
              "author_name": "nafteas",
              "author_url": "",
              "post_date": "05/11/2023 15:10:35",
              "content": "<p>Thanks for your answer.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2254586,
      "author_name": "dwchen",
      "author_url": "",
      "post_date": "05/11/2023 05:20:38",
      "content": "<p>hope it can help you guys:<br>\n<a href=\"https://www.kaggle.com/discussions/general/399267\" target=\"_blank\">https://www.kaggle.com/discussions/general/399267</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2254763,
      "author_name": "dwchen",
      "author_url": "",
      "post_date": "05/11/2023 08:01:31",
      "content": "<p><a href=\"https://www.kaggle.com/gilgarad\" target=\"_blank\">@gilgarad</a> I get the point, suggest you copy from a public notebook, and you will get python3.7 env. <br>\nBecause Kaggle only gives 3.7 api,  but python update to 3.10, so you will meet this problem when you create a new notebook.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2257057,
          "author_name": "gilgarad",
          "author_url": "",
          "post_date": "05/13/2023 01:09:11",
          "content": "<p>That is what I am doing right now… It is a bit annoying, but works fine.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2257115,
      "author_name": "aisuluuulankyzy",
      "author_url": "",
      "post_date": "05/13/2023 03:48:56",
      "content": "<p>i found the same issue, will be happy to see feedbacks guys</p>",
      "votes": null,
      "replies": [
        {
          "id": 2257374,
          "author_name": "phuhoang26",
          "author_url": "",
          "post_date": "05/13/2023 09:53:18",
          "content": "<p>Chen suggested me use \"Copy and edit\" method to solve this, and it works! Which means, you can copy and edit other notebook that DID work perfectly, and then replace the notebook's codes with yours.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2254451": "I changed the environment to pin the original environment.\nBut it shows that the python version is 3.10 thus it still does not work.\n\n\n![Screenshot](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F568032%2Fff0b3e49250b74730a6c945b1888c10d%2F2023-05-11%20%2011.15.01.png?generation=1683771339405943&alt=media)\n\nCan someone help me?",
    "2254574": "We encountered the same issue. \n\n@philculliton , Could you help us on this?",
    "2254586": "hope it can help you guys:\nhttps://www.kaggle.com/discussions/general/399267",
    "2254587": "you can check this discussion:\nhttps://www.kaggle.com/discussions/general/399267",
    "2254642": "dwchen I ran your code (py3.8) -> downloaded your venv (I renamed in to phus-py3.8) -> uploaded to my dataset -> imported to my code -> ran `!source venv/bin/activate` but the error is still there. Did i miss something?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3563184%2F886394106f201b3a7f3996a281b6b080%2FScreenshot%20from%202023-05-11%2013-20-19.png?generation=1683786043548920&alt=media)",
    "2254705": "would you mind give some details of error?",
    "2254732": "As you can see in my attached img: 'No module named \"jo_wilder.competition\"'",
    "2254741": "it looks your final block still running at default python enviroument. \nIf you successful install a new environment, at least you should running like:\n`!path/python MYCODE.py`",
    "2254743": "So how to run my final block with your env?",
    "2254761": "If you need to mix two unique environments, I suggest you use the \"Copy and Edit\" method to copy a certain environment, then subtract the useless ones, and add the code for another block through addition.\n\n**Your problem seems to be using 'Python 3.8' and 'jo'_ wilder‘**\n\nThis seems infeasible, I understand your question. The Kaggle competition only provided the Python 3.7 API, but they upgraded to 3.10. I speculate that 3.8 cannot run the 3.7 API either.\n\n**So, do you want to be able to run the script? Or use 3.8？**",
    "2254763": "gilgarad I get the point, suggest you copy from a public notebook, and you will get python3.7 env. \nBecause Kaggle only gives 3.7 api,  but python update to 3.10, so you will meet this problem when you create a new notebook.",
    "2254769": "I understand now, \"Copy and Edit\" method might be all I need to overcome this dilemma. Thank you a lots!",
    "2254773": "No problem :)",
    "2255184": "Thanks for your answer.",
    "2257057": "That is what I am doing right now... It is a bit annoying, but works fine.",
    "2257115": "i found the same issue, will be happy to see feedbacks guys",
    "2257374": "Chen suggested me use \"Copy and edit\" method to solve this, and it works! Which means, you can copy and edit other notebook that DID work perfectly, and then replace the notebook's codes with yours."
  },
  "source": "meta"
}