<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Failed to load application: No module named thrift.Thrift</title>
		<link>http://www.datastax.com/support-forums/topic/failed-to-load-application-no-module-named-thriftthrift</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 12:44:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/failed-to-load-application-no-module-named-thriftthrift" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "Failed to load application: No module named thrift.Thrift"</title>
			<link>http://www.datastax.com/support-forums/topic/failed-to-load-application-no-module-named-thriftthrift#post-1396</link>
			<pubDate>Tue, 20 Mar 2012 02:07:46 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1396@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That actually shouldn't be necessary. I believe it solves the problem in this case by causing those thrift libraries to take precedence on the PYTHONPATH. As long as this works for you it should be a fine solution.&#60;/p&#62;
&#60;p&#62;I think the problem you were seeing before would be caused by an old/different installation of the python thrift modules on your system as well as possibly your own twisted installation. If nothing is causing problems now then it should be fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Failed to load application: No module named thrift.Thrift"</title>
			<link>http://www.datastax.com/support-forums/topic/failed-to-load-application-no-module-named-thriftthrift#post-1383</link>
			<pubDate>Sun, 18 Mar 2012 04:54:17 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1383@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I figured it out... You have to copy the libraries from the dsc-cassandra-1.0.8/pylib directory into the opscenter-1.4.1/bin directory. Then when you start up ./opscenter -f in the bin directory it finds thrift.&#60;/p&#62;
&#60;p&#62;Allen
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thobbs on "Failed to load application: No module named thrift.Thrift"</title>
			<link>http://www.datastax.com/support-forums/topic/failed-to-load-application-no-module-named-thriftthrift#post-1358</link>
			<pubDate>Mon, 12 Mar 2012 20:13:28 +0000</pubDate>
			<dc:creator>thobbs</dc:creator>
			<guid isPermaLink="false">1358@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;First, it looks like you have Twisted installed independently on your system, is that correct?  I don't think this is causing the problem, but ideally it should be using the bundled version of Twisted that ships with it.  Is your &#60;code&#62;$PYTHONPATH&#60;/code&#62; set to include this directory, or have you done anything else to make python search this directory when importing?&#60;/p&#62;
&#60;p&#62;Second, can you insert the following line as the second to last line in &#60;code&#62;bin/opscenter&#60;/code&#62;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo $PYTHONPATH&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This should cause it to print the &#60;code&#62;$PYTHONPATH&#60;/code&#62; the next time that you start opscenter.  Can you paste the results of that here?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Failed to load application: No module named thrift.Thrift"</title>
			<link>http://www.datastax.com/support-forums/topic/failed-to-load-application-no-module-named-thriftthrift#post-1355</link>
			<pubDate>Mon, 12 Mar 2012 19:47:56 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1355@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi, i am trying to instal the OPS Center on a MAC OS X 10.6 and it dont works.  Can you help me?&#60;/p&#62;
&#60;p&#62;CONSOLE&#60;br /&#62;
-----------&#60;br /&#62;
imac:cassandra-dsc ruben$ ./bin/nodetool ring -h localhost&#60;br /&#62;
Address         DC          Rack        Status State   Load            Owns    Token&#60;br /&#62;
127.0.0.1       datacenter1 rack1       Up     Normal  89.04 KB        100.00% 50525321531465215397131752684092641172&#60;br /&#62;
imac:cassandra-dsc ruben$ cd opscenter&#60;br /&#62;
imac:opscenter ruben$ ./bin/setup.py&#60;br /&#62;
Generating a 1024 bit RSA private key&#60;br /&#62;
...............................................................................................++++++&#60;br /&#62;
..................................................++++++&#60;br /&#62;
writing new private key to 'ssl/opscenter.key'&#60;br /&#62;
-----&#60;br /&#62;
MAC verified OK&#60;br /&#62;
Certificate was added to keystore&#60;br /&#62;
imac:opscenter ruben$ cd bin&#60;br /&#62;
imac:bin ruben$ ./opscenter&#60;br /&#62;
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead&#60;br /&#62;
  import os, md5, sys&#60;br /&#62;
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead&#60;br /&#62;
  import sha&#60;br /&#62;
Traceback (most recent call last):&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/application/app.py&#34;, line 694, in run&#60;br /&#62;
    runApp(config)&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/scripts/twistd.py&#34;, line 23, in runApp&#60;br /&#62;
    _SomeApplicationRunner(config).run()&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/application/app.py&#34;, line 411, in run&#60;br /&#62;
    self.application = self.createOrGetApplication()&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/application/app.py&#34;, line 494, in createOrGetApplication&#60;br /&#62;
    application = getApplication(self.config, passphrase)&#60;br /&#62;
--- &#38;lt;exception caught here&#38;gt; ---&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/application/app.py&#34;, line 505, in getApplication&#60;br /&#62;
    application = service.loadApplication(filename, style, passphrase)&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/application/service.py&#34;, line 390, in loadApplication&#60;br /&#62;
    application = sob.loadValueFromFile(filename, 'application', passphrase)&#60;br /&#62;
  File &#34;/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/persisted/sob.py&#34;, line 214, in loadValueFromFile&#60;br /&#62;
    exec fileObj in d, d&#60;br /&#62;
  File &#34;bin/start_opscenter.py&#34;, line 1, in &#38;lt;module&#38;gt;&#60;br /&#62;
    from opscenterd import opscenterd_tap&#60;br /&#62;
  File &#34;build/lib/python2.6/site-packages/opscenterd/opscenterd_tap.py&#34;, line 17, in &#38;lt;module&#38;gt;&#60;/p&#62;
&#60;p&#62;  File &#34;build/lib/python2.6/site-packages/opscenterd/Config.py&#34;, line 394, in init_config&#60;/p&#62;
&#60;p&#62;  File &#34;build/lib/python2.6/site-packages/opscenterd/metricstore/CassandraStore.py&#34;, line 16, in &#38;lt;module&#38;gt;&#60;/p&#62;
&#60;p&#62;  File &#34;build/lib/python2.6/site-packages/opscenterd/Settings.py&#34;, line 4, in &#38;lt;module&#38;gt;&#60;/p&#62;
&#60;p&#62;  File &#34;/Applications/cassandra-dsc/opscenter/lib/py/telephus/cassandra/ttypes.py&#34;, line 1, in &#38;lt;module&#38;gt;&#60;br /&#62;
    from telephus.cassandra.c08.ttypes import *&#60;br /&#62;
  File &#34;/Applications/cassandra-dsc/opscenter/lib/py/telephus/cassandra/c08/ttypes.py&#34;, line 7, in &#38;lt;module&#38;gt;&#60;br /&#62;
    from thrift.Thrift import *&#60;br /&#62;
exceptions.ImportError: No module named thrift.Thrift&#60;/p&#62;
&#60;p&#62;Failed to load application: No module named thrift.Thrift&#60;br /&#62;
------
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
