{
  "id": 58589,
  "title": "Modulenotfounderror",
  "url": "/competitions/trackml-particle-identification/discussion/58589",
  "author_name": "",
  "post_date": "2018-06-10T23:47:11.147669600Z",
  "votes": null,
  "comment_count": 8,
  "views": 0,
  "content": "<p>I think this is really a Ubuntu question but a quick answer would help.  I successfully installed  the trackml library  but when I try to run code in python 3.6 (that worked in Windows) I am getting an error that says  \"no module named  trackml.load_dataset\"\ntx\nkickback</p>",
  "messages": [
    {
      "id": "341074",
      "postDate": "06/10/2018 23:47:11",
      "content": "<p>I think this is really a Ubuntu question but a quick answer would help.  I successfully installed  the trackml library  but when I try to run code in python 3.6 (that worked in Windows) I am getting an error that says  \"no module named  trackml.load_dataset\"\ntx\nkickback</p>",
      "rawMarkdown": "I think this is really a Ubuntu question but a quick answer would help.  I successfully installed  the trackml library  but when I try to run code in python 3.6 (that worked in Windows) I am getting an error that says  \"no module named  trackml.load_dataset\"\ntx\nkickback",
      "votes": null
    },
    {
      "id": "341078",
      "postDate": "06/11/2018 00:22:50",
      "content": "<p>Did you installed via pip? If so, I had a similar issue.\nHelped uninstalling trackml lib and then cloning git repo to my machine by \n<code>git clone --recursive https://github.com/LAL/trackml-library.git</code>\nand manual install</p>",
      "rawMarkdown": "Did you installed via pip? If so, I had a similar issue.\nHelped uninstalling trackml lib and then cloning git repo to my machine by \n`git clone --recursive https://github.com/LAL/trackml-library.git`\nand manual install",
      "votes": null
    },
    {
      "id": "341084",
      "postDate": "06/11/2018 00:52:56",
      "content": "<p>I did install via pip. What do you mean by manual install? I am learning all of this as I go along.\ntx, \nkickback</p>",
      "rawMarkdown": "I did install via pip. What do you mean by manual install? I am learning all of this as I go along.\ntx, \nkickback",
      "votes": null
    },
    {
      "id": "341177",
      "postDate": "06/11/2018 06:24:07",
      "content": "<p>A Ubuntu user here. As Lugark suggested you can manually move the <code>trackml</code> package to your python <code>site-packages</code> after you <code>git clone</code> the whole project.</p>\n\n<p>If you use a virtual anaconda environment, move <code>trackml</code> to <code>~/anaconda3/envs/&amp;lt;$virual-envname&amp;gt;/lib/python3.6/site-packages</code> or non-virtual anaconda environment, <code>~/anaconda3/lib/python3.6/site-packages</code> </p>\n\n<ol>\n<li>Issue <code>which python</code> to know which python you're using</li>\n<li>Issue <code>python -m site</code> to know where your site packages are</li>\n<li>Move the trackml package to the <code>site-packages</code> folder</li>\n</ol>\n\n<p>For example, </p>\n\n<pre><code>(trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ which python\n/home/nicole/anaconda3/envs/trackml/bin/python\n\n(trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ python -m site\nsys.path = [\n    '/home/nicole/workspace-kaggle/kaggle-trackml/src',\n    '/home/nicole/anaconda3/envs/trackml/lib/python36.zip',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6/lib-dynload',\n    '/home/nicole/.local/lib/python3.6/site-packages',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6/site-packages',\n]\nUSER_BASE: '/home/nicole/.local' (exists)\nUSER_SITE: '/home/nicole/.local/lib/python3.6/site-packages' (exists)\nENABLE_USER_SITE: True\n</code></pre>\n\n<p>and my trackml package is installed/copied to <code>~/anaconda3/envs/trackml/lib/python3.6/site-packages/trackml</code> in my virtual environment <code>trackml</code> or <code>~/anaconda3/lib/python3.6/site-packages/trackml</code> in non-virtual environment or <code>/usr/local/lib/python3.6/site-packages/</code> in a non-anaconda environment. I'd definitely recommend using a python | anaconda virtual environment, so you can always clean up the whole environment easily without messing up the python libraries installed on your host. Hope this helps.  </p>",
      "rawMarkdown": "A Ubuntu user here. As Lugark suggested you can manually move the `trackml` package to your python `site-packages` after you `git clone` the whole project.\n\nIf you use a virtual anaconda environment, move `trackml` to `~/anaconda3/envs/&lt;$virual-envname&gt;/lib/python3.6/site-packages` or non-virtual anaconda environment, `~/anaconda3/lib/python3.6/site-packages` \n\n 1. Issue `which python` to know which python you're using\n 2. Issue `python -m site` to know where your site packages are\n 3. Move the trackml package to the `site-packages` folder\n\nFor example, \n\n    (trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ which python\n    /home/nicole/anaconda3/envs/trackml/bin/python\n    \n    (trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ python -m site\n    sys.path = [\n        '/home/nicole/workspace-kaggle/kaggle-trackml/src',\n        '/home/nicole/anaconda3/envs/trackml/lib/python36.zip',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6/lib-dynload',\n        '/home/nicole/.local/lib/python3.6/site-packages',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6/site-packages',\n    ]\n    USER_BASE: '/home/nicole/.local' (exists)\n    USER_SITE: '/home/nicole/.local/lib/python3.6/site-packages' (exists)\n    ENABLE_USER_SITE: True\n\n\nand my trackml package is installed/copied to `~/anaconda3/envs/trackml/lib/python3.6/site-packages/trackml` in my virtual environment `trackml` or `~/anaconda3/lib/python3.6/site-packages/trackml` in non-virtual environment or `/usr/local/lib/python3.6/site-packages/` in a non-anaconda environment. I'd definitely recommend using a python | anaconda virtual environment, so you can always clean up the whole environment easily without messing up the python libraries installed on your host. Hope this helps.",
      "votes": null
    },
    {
      "id": "341299",
      "postDate": "06/11/2018 11:35:07",
      "content": "<p>By manual install i mean navigate to trackml folder, which is cloned by git and then execute <code>pyton setup.py install</code>  command.</p>\n\n<p>So i suppose, full installation will look like that:</p>\n\n<pre><code>git clone --recursive https://github.com/LAL/trackml-library.git\n## download progress\n## after download you'll have a folder \"trackml-library\" in your current directory\ncd trackml-library\npython setup.py install\n</code></pre>",
      "rawMarkdown": "By manual install i mean navigate to trackml folder, which is cloned by git and then execute `pyton setup.py install`  command.\n\nSo i suppose, full installation will look like that:\n\n    git clone --recursive https://github.com/LAL/trackml-library.git\n    ## download progress\n    ## after download you'll have a folder \"trackml-library\" in your current directory\n    cd trackml-library\n    python setup.py install",
      "votes": null
    },
    {
      "id": "341309",
      "postDate": "06/11/2018 11:54:26",
      "content": "<p>I installed via pip on a Ubuntu 16.04 machine with Anaconda installed.  You must make sure you source activate the conda environment you use before running pip install.</p>",
      "rawMarkdown": "I installed via pip on a Ubuntu 16.04 machine with Anaconda installed.  You must make sure you source activate the conda environment you use before running pip install.",
      "votes": null
    },
    {
      "id": "342631",
      "postDate": "06/13/2018 20:20:09",
      "content": "<p>Thanks for all of the comments, especially Nicole's. Trackml  is now working in python 2.7, not sure if it will work in 3.6.</p>\n\n<p>Kickback</p>",
      "rawMarkdown": "Thanks for all of the comments, especially Nicole's. Trackml  is now working in python 2.7, not sure if it will work in 3.6.\n\nKickback",
      "votes": null
    },
    {
      "id": "342662",
      "postDate": "06/13/2018 21:10:58",
      "content": "<p>It works on Python 3 on Ubuntu.  Just git clone trackml, then use pip install with the cloened repo, as documented on the trackml git repo.</p>",
      "rawMarkdown": "It works on Python 3 on Ubuntu.  Just git clone trackml, then use pip install with the cloened repo, as documented on the trackml git repo.",
      "votes": null
    },
    {
      "id": "342666",
      "postDate": "06/13/2018 21:26:30",
      "content": "<p>Same for me with Windows and Python 3.6.  Followed the instructions in the Readme to clone and pip install locally</p>",
      "rawMarkdown": "Same for me with Windows and Python 3.6.  Followed the instructions in the Readme to clone and pip install locally",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 341078,
      "author_name": "lugark",
      "author_url": "",
      "post_date": "06/11/2018 00:22:50",
      "content": "<p>Did you installed via pip? If so, I had a similar issue.\nHelped uninstalling trackml lib and then cloning git repo to my machine by \n<code>git clone --recursive https://github.com/LAL/trackml-library.git</code>\nand manual install</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 341084,
      "author_name": "bkosar1640",
      "author_url": "",
      "post_date": "06/11/2018 00:52:56",
      "content": "<p>I did install via pip. What do you mean by manual install? I am learning all of this as I go along.\ntx, \nkickback</p>",
      "votes": null,
      "replies": [
        {
          "id": 341299,
          "author_name": "lugark",
          "author_url": "",
          "post_date": "06/11/2018 11:35:07",
          "content": "<p>By manual install i mean navigate to trackml folder, which is cloned by git and then execute <code>pyton setup.py install</code>  command.</p>\n\n<p>So i suppose, full installation will look like that:</p>\n\n<pre><code>git clone --recursive https://github.com/LAL/trackml-library.git\n## download progress\n## after download you'll have a folder \"trackml-library\" in your current directory\ncd trackml-library\npython setup.py install\n</code></pre>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 341177,
      "author_name": "nicolefinnie",
      "author_url": "",
      "post_date": "06/11/2018 06:24:07",
      "content": "<p>A Ubuntu user here. As Lugark suggested you can manually move the <code>trackml</code> package to your python <code>site-packages</code> after you <code>git clone</code> the whole project.</p>\n\n<p>If you use a virtual anaconda environment, move <code>trackml</code> to <code>~/anaconda3/envs/&amp;lt;$virual-envname&amp;gt;/lib/python3.6/site-packages</code> or non-virtual anaconda environment, <code>~/anaconda3/lib/python3.6/site-packages</code> </p>\n\n<ol>\n<li>Issue <code>which python</code> to know which python you're using</li>\n<li>Issue <code>python -m site</code> to know where your site packages are</li>\n<li>Move the trackml package to the <code>site-packages</code> folder</li>\n</ol>\n\n<p>For example, </p>\n\n<pre><code>(trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ which python\n/home/nicole/anaconda3/envs/trackml/bin/python\n\n(trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ python -m site\nsys.path = [\n    '/home/nicole/workspace-kaggle/kaggle-trackml/src',\n    '/home/nicole/anaconda3/envs/trackml/lib/python36.zip',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6/lib-dynload',\n    '/home/nicole/.local/lib/python3.6/site-packages',\n    '/home/nicole/anaconda3/envs/trackml/lib/python3.6/site-packages',\n]\nUSER_BASE: '/home/nicole/.local' (exists)\nUSER_SITE: '/home/nicole/.local/lib/python3.6/site-packages' (exists)\nENABLE_USER_SITE: True\n</code></pre>\n\n<p>and my trackml package is installed/copied to <code>~/anaconda3/envs/trackml/lib/python3.6/site-packages/trackml</code> in my virtual environment <code>trackml</code> or <code>~/anaconda3/lib/python3.6/site-packages/trackml</code> in non-virtual environment or <code>/usr/local/lib/python3.6/site-packages/</code> in a non-anaconda environment. I'd definitely recommend using a python | anaconda virtual environment, so you can always clean up the whole environment easily without messing up the python libraries installed on your host. Hope this helps.  </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 341309,
      "author_name": "cpmpml",
      "author_url": "",
      "post_date": "06/11/2018 11:54:26",
      "content": "<p>I installed via pip on a Ubuntu 16.04 machine with Anaconda installed.  You must make sure you source activate the conda environment you use before running pip install.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 342631,
      "author_name": "bkosar1640",
      "author_url": "",
      "post_date": "06/13/2018 20:20:09",
      "content": "<p>Thanks for all of the comments, especially Nicole's. Trackml  is now working in python 2.7, not sure if it will work in 3.6.</p>\n\n<p>Kickback</p>",
      "votes": null,
      "replies": [
        {
          "id": 342662,
          "author_name": "cpmpml",
          "author_url": "",
          "post_date": "06/13/2018 21:10:58",
          "content": "<p>It works on Python 3 on Ubuntu.  Just git clone trackml, then use pip install with the cloened repo, as documented on the trackml git repo.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 342666,
          "author_name": "johnhsweeney",
          "author_url": "",
          "post_date": "06/13/2018 21:26:30",
          "content": "<p>Same for me with Windows and Python 3.6.  Followed the instructions in the Readme to clone and pip install locally</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "341074": "I think this is really a Ubuntu question but a quick answer would help.  I successfully installed  the trackml library  but when I try to run code in python 3.6 (that worked in Windows) I am getting an error that says  \"no module named  trackml.load_dataset\"\ntx\nkickback",
    "341078": "Did you installed via pip? If so, I had a similar issue.\nHelped uninstalling trackml lib and then cloning git repo to my machine by \n`git clone --recursive https://github.com/LAL/trackml-library.git`\nand manual install",
    "341084": "I did install via pip. What do you mean by manual install? I am learning all of this as I go along.\ntx, \nkickback",
    "341177": "A Ubuntu user here. As Lugark suggested you can manually move the `trackml` package to your python `site-packages` after you `git clone` the whole project.\n\nIf you use a virtual anaconda environment, move `trackml` to `~/anaconda3/envs/&lt;$virual-envname&gt;/lib/python3.6/site-packages` or non-virtual anaconda environment, `~/anaconda3/lib/python3.6/site-packages` \n\n 1. Issue `which python` to know which python you're using\n 2. Issue `python -m site` to know where your site packages are\n 3. Move the trackml package to the `site-packages` folder\n\nFor example, \n\n    (trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ which python\n    /home/nicole/anaconda3/envs/trackml/bin/python\n    \n    (trackml) nicole@polarsnow:~/workspace-kaggle/kaggle-trackml/src(master)$ python -m site\n    sys.path = [\n        '/home/nicole/workspace-kaggle/kaggle-trackml/src',\n        '/home/nicole/anaconda3/envs/trackml/lib/python36.zip',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6/lib-dynload',\n        '/home/nicole/.local/lib/python3.6/site-packages',\n        '/home/nicole/anaconda3/envs/trackml/lib/python3.6/site-packages',\n    ]\n    USER_BASE: '/home/nicole/.local' (exists)\n    USER_SITE: '/home/nicole/.local/lib/python3.6/site-packages' (exists)\n    ENABLE_USER_SITE: True\n\n\nand my trackml package is installed/copied to `~/anaconda3/envs/trackml/lib/python3.6/site-packages/trackml` in my virtual environment `trackml` or `~/anaconda3/lib/python3.6/site-packages/trackml` in non-virtual environment or `/usr/local/lib/python3.6/site-packages/` in a non-anaconda environment. I'd definitely recommend using a python | anaconda virtual environment, so you can always clean up the whole environment easily without messing up the python libraries installed on your host. Hope this helps.",
    "341299": "By manual install i mean navigate to trackml folder, which is cloned by git and then execute `pyton setup.py install`  command.\n\nSo i suppose, full installation will look like that:\n\n    git clone --recursive https://github.com/LAL/trackml-library.git\n    ## download progress\n    ## after download you'll have a folder \"trackml-library\" in your current directory\n    cd trackml-library\n    python setup.py install",
    "341309": "I installed via pip on a Ubuntu 16.04 machine with Anaconda installed.  You must make sure you source activate the conda environment you use before running pip install.",
    "342631": "Thanks for all of the comments, especially Nicole's. Trackml  is now working in python 2.7, not sure if it will work in 3.6.\n\nKickback",
    "342662": "It works on Python 3 on Ubuntu.  Just git clone trackml, then use pip install with the cloened repo, as documented on the trackml git repo.",
    "342666": "Same for me with Windows and Python 3.6.  Followed the instructions in the Readme to clone and pip install locally"
  },
  "source": "meta"
}