<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ImportError: No module named site when training own data with Sentiment Analysis App in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/ImportError-No-module-named-site-when-training-own-data-with/m-p/369326#M5705</link>
    <description>&lt;P&gt;I'm trying to create a model based on my own data using the Sentiment Analysis App. Apparently there isn't much documentation out there to help me. &lt;/P&gt;

&lt;P&gt;I have a collection of tweets about various products that I want to use as training data for classifying each tweet based on what product the tweet is talking about.&lt;/P&gt;

&lt;P&gt;But I keep on getting the "ImportError: No module named site" every time I try to train.&lt;/P&gt;

&lt;P&gt;I am running on Windows 10 by the way.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3853iD08629DEDE603C77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 05:38:11 GMT</pubDate>
    <dc:creator>jebssantos</dc:creator>
    <dc:date>2017-11-14T05:38:11Z</dc:date>
    <item>
      <title>ImportError: No module named site when training own data with Sentiment Analysis App</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/ImportError-No-module-named-site-when-training-own-data-with/m-p/369326#M5705</link>
      <description>&lt;P&gt;I'm trying to create a model based on my own data using the Sentiment Analysis App. Apparently there isn't much documentation out there to help me. &lt;/P&gt;

&lt;P&gt;I have a collection of tweets about various products that I want to use as training data for classifying each tweet based on what product the tweet is talking about.&lt;/P&gt;

&lt;P&gt;But I keep on getting the "ImportError: No module named site" every time I try to train.&lt;/P&gt;

&lt;P&gt;I am running on Windows 10 by the way.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3853iD08629DEDE603C77/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 05:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/ImportError-No-module-named-site-when-training-own-data-with/m-p/369326#M5705</guid>
      <dc:creator>jebssantos</dc:creator>
      <dc:date>2017-11-14T05:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named site when training own data with Sentiment Analysis App</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/ImportError-No-module-named-site-when-training-own-data-with/m-p/369327#M5706</link>
      <description>&lt;P&gt;From the error, it looks like you are trying to import a package that's not bundled with Splunk's python. In case you want to use any external package, you need to put that package within your bin folder and also add appropriate reference to  path  variable from your script. i.e if you want to refer to python files within lib folder of your app you can use following code &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sys.path.append(make_splunkhome_path(["etc", "apps", "training_app", "bin", "lib"]))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/ImportError-No-module-named-site-when-training-own-data-with/m-p/369327#M5706</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-11-14T09:52:36Z</dc:date>
    </item>
  </channel>
</rss>

