/
source
1039 lines (835 loc) · 48.3 KB
/
source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>python 3.x - Python3.3_ImportError: cannot import name hashtable? - Stack Overflow</title>
<link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
<link rel="apple-touch-icon image_src" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.sstatic.net/js/stub.js?v=181da36f6419"></script>
<link rel="stylesheet" type="text/css" href="http://cdn.sstatic.net/stackoverflow/all.css?v=0f0c93534e2b">
<meta name="relativepagescore" content="49595">
<link rel="canonical" href="http://stackoverflow.com/questions/14422976/python3-3-importerror-cannot-import-name-hashtable">
<link rel="alternate" type="application/atom+xml" title="Feed for question 'Python3.3_ImportError: cannot import name hashtable?'" href="/feeds/question/14422976">
<script type="text/javascript">
StackExchange.ready(function () {
StackExchange.using("postValidation", function () {
StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer');
});
StackExchange.question.init({showAnswerHelp:true,totalCommentCount:1,shownCommentCount:1,highlightColor:'#F4A83D',backgroundColor:'#FFF',questionId:14422976});
styleCode();
StackExchange.realtime.subscribeToQuestion('1', '14422976');
});
</script>
<script type="text/javascript">
StackExchange.init({"stackAuthUrl":"https://stackauth.com","serverTime":1367960071,"styleCode":true,"enableUserHovercards":true,"site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"recaptchaPublicKey":"6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc","useNewStyleFavoriteTagsEditor":true,"enableSocialMediaInSharePopup":true},"user":{"fkey":"63228ea9592982d0d8ce4aa3ec160c99","isAnonymous":true}});
StackExchange.using.setCacheBreakers({"js/prettify-full.js":"6c261bebf56a","js/moderator.js":"f96f7e4ee5dc","js/full-anon.js":"b9443c75283a","js/full.js":"c9131e40e3fb","js/wmd.js":"e62e6bd6c127","js/third-party/jquery.autocomplete.min.js":"e5f01e97f7c3","js/mobile.js":"6eb68240242f","js/help.js":"fc9fb0517db2","js/tageditor.js":"450c9e8426fc","js/tageditornew.js":"b6c68ad4c7dd","js/inline-tag-editing.js":"8e84e8a137f7","js/revisions.js":"7273bb714bba","js/review.js":"56c3941a5bfc","js/tagsuggestions.js":"aa48ef6154df","js/post-validation.js":"98fa812e7e1a","js/explore-qlist.js":"44794e78c6be"});
</script>
<script type="text/javascript">
StackExchange.using("gps", function() {
StackExchange.gps.init(true);
});
</script>
<script type="text/javascript">
StackExchange.ready(function () {
$('#nav-tour').click(function () {
StackExchange.using("gps", function() {
StackExchange.gps.track("aboutpage.click", { aboutclick_location: "headermain" }, true);
});
});
});
</script>
</head>
<body class="question-page">
<noscript><div id="noscript-padding"></div></noscript>
<div id="notify-container"></div>
<div id="overlay-header"></div>
<div id="custom-header"></div>
<div class="container">
<div id="header" class=headeranon>
<div id="portalLink">
<a class="genu" href="http://stackexchange.com" onclick="StackExchange.ready(function(){genuwine.click();});return false;">Stack Exchange</a>
</div>
<div id="topbar">
<div id="hlinks">
<span id="hlinks-user"></span>
<span id="hlinks-nav"> <a href="/users/login?returnurl=%2fquestions%2f14422976%2fpython3-3-importerror-cannot-import-name-hashtable%2f14428450">sign up</a>
<span class="lsep">|</span>
<a href="/users/login?returnurl=%2fquestions%2f14422976%2fpython3-3-importerror-cannot-import-name-hashtable%2f14428450">log in</a>
<span class="lsep">|</span>
<a href="http://careers.stackoverflow.com">careers 2.0</a>
<span class="lsep">|</span>
</span>
<span id="hlinks-custom"></span>
</div>
<div id="hsearch">
<form id="search" action="/search" method="get" autocomplete="off">
<div>
<input autocomplete="off" name="q" class="textbox" placeholder="search" tabindex="1" type="text" maxlength="240" size="28" value="">
</div>
</form>
</div>
</div>
<br class="cbt">
<div id="hlogo">
<a href="/" >
Stack Overflow
</a>
</div>
<div id="hmenus">
<div class="nav mainnavs mainnavsanon">
<ul>
<li class="youarehere"><a id="nav-questions" href="/questions">Questions</a></li>
<li><a id="nav-tags" href="/tags">Tags</a></li>
<li><a id="nav-tour" href="/about">Tour</a></li>
<li><a id="nav-users" href="/users">Users</a></li>
</ul>
</div>
<div class="nav askquestion">
<ul>
<li>
<a id="nav-askquestion" href="/questions/ask">Ask Question</a>
</li>
</ul>
</div>
</div>
</div>
<div id="content">
<div itemscope itemtype="http://schema.org/Article">
<link itemprop="image" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
<div id="herobox-mini">
<div id="hero-content">
<span id="controls">
<a href="/about" id="tell-me-more" class="button">Tell me more</a>
<span id="close"><a title="click to dismiss">×</a></span>
</span>
<div id="blurb">
<span id="site-name">Stack Overflow</span> is a question and answer site for
professional and enthusiast programmers. It's 100% free, no registration required.
</div>
</div>
<script>
$('#tell-me-more').click(function () {
var clickSource = $("body").attr("class") + '-mini';
if ($("body").hasClass("questions-page")) {
clickSource = 'questionpagemini';
}
if ($("body").hasClass("home-page")) {
clickSource = 'homepagemini';
}
StackExchange.using("gps", function () {
StackExchange.gps.track("aboutpage.click", { aboutclick_location: clickSource } , true);
});
});
$('#herobox-mini #close').click(function () {
StackExchange.using("gps", function () {
StackExchange.gps.track("hero.action", { hero_action_type: "close" }, true);
});
$.cookie("hero", "none", { path: "/" });
var $hero = $("#herobox-mini");
$hero.slideUp('fast', function () { $hero.remove(); });
return false;
});
</script>
</div>
<div id="question-header">
<h1 itemprop="name"><a href="/questions/14422976/python3-3-importerror-cannot-import-name-hashtable" class="question-hyperlink">Python3.3_ImportError: cannot import name hashtable?</a></h1>
</div>
<div id="mainbar">
<div class="question" data-questionid="14422976" id="question">
<div class="everyonelovesstackoverflow" id="adzerk1">
</div>
<table>
<tr>
<td class="votecell">
<div class="vote">
<input type="hidden" value="14422976">
<a class="vote-up-off" title="This question shows research effort; it is useful and clear (click again to undo)">up vote</a>
<span class="vote-count-post ">3</span>
<a class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful (click again to undo)">down vote</a>
<a class="star-off" href="#" title="This is a favorite question (click again to undo)">favorite</a>
<div class="favoritecount"><b></b></div>
</div>
</td>
<td class="postcell">
<div>
<div class="post-text" itemprop="description">
<p>I have installed Pandas on Python 3.3, and coded like this:</p>
<pre><code>import csv
import pandas
from pandas import DataFrame
csvdata = pandas.read_csv('datafile.csv')
df = DataFrame(csvdata)
</code></pre>
<p>It comes with the following error message:</p>
<pre><code>cannot import name hashtable
Traceback (most recent call last):
File "C:\Users\document\test4.py", line 5, in <module>
import pandas
File "C:\Python33\lib\site-packages\pandas\__init__.py", line 6, in <module>
from . import hashtable, tslib, lib
ImportError: cannot import name hashtable
</code></pre>
<p>Could anyone help me figure out how to solve this error? Python and Pandas were successfully installed. Thanks,</p>
</div>
<div class="post-taglist">
<a href="/questions/tagged/python-3.x" class="post-tag" title="show questions tagged 'python-3.x'" rel="tag">python-3.x</a> <a href="/questions/tagged/pandas" class="post-tag" title="show questions tagged 'pandas'" rel="tag">pandas</a>
</div>
<table class="fw">
<tr>
<td class="vt">
<div class="post-menu"><a href="/q/14422976" title="short permalink to this question" class="short-link" id="link-post-14422976">share</a><span class="lsep">|</span><a href="/posts/14422976/edit" class="suggest-edit-post" title="">improve this question</a></div> </td>
<td class="post-signature owner">
<div class="user-info ">
<div class="user-action-time">
asked
<span title="2013-01-20 08:48:56Z" class="relativetime">Jan 20 at 8:48</span>
</div>
<div class="user-gravatar32">
<a href="/users/1994194/sky404"><div class=""><img src="http://www.gravatar.com/avatar/8a672530179cbea535ede6034b69323f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1994194/sky404">sky404</a><br>
<span class="reputation-score" title="reputation score" dir="ltr">16</span><span title="1 bronze badge"><span class="badge3"></span><span class="badgecount">1</span></span>
</div>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="votecell"></td>
<td>
<div id="comments-14422976" class="comments">
<table>
<tbody>
<tr id="comment-20075928" class="comment">
<td class="comment-actions"><table><tbody><tr>
<td class="comment-score">
<span title="number of 'useful comment' votes received" class="cool">1</span>
</td>
<td>
</td></tr>
</tbody></table></td>
<td class="comment-text"><div><span class="comment-copy">Pandas was not installed correctly it seems</span> – <a href="/users/1488917/ashrj" title="2490 reputation" class="comment-user">AshRj</a> <span class="comment-date" dir="ltr"><span title="2013-01-20 09:16:16Z" class="relativetime-clean">Jan 20 at 9:16</span></span></div></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr> </table>
</div>
<div id="answers">
<a name="tab-top"></a>
<div id="answers-header">
<div class="subheader answers-subheader">
<h2>
2 Answers
</h2>
<div id="tabs">
<a href="/questions/14422976/python3-3-importerror-cannot-import-name-hashtable?answertab=active#tab-top" title="Answers with the latest activity first">active</a>
<a href="/questions/14422976/python3-3-importerror-cannot-import-name-hashtable?answertab=oldest#tab-top" title="Answers in the order they were provided">oldest</a>
<a class="youarehere" href="/questions/14422976/python3-3-importerror-cannot-import-name-hashtable?answertab=votes#tab-top" title="Answers with the highest score first">votes</a>
</div>
</div>
</div>
<a name="14428450"></a>
<div id="answer-14428450" class="answer" data-answerid="14428450" >
<table>
<tr>
<td class="votecell">
<div class="vote">
<input type="hidden" value="14428450">
<a class="vote-up-off" title="This answer is useful (click again to undo)">up vote</a>
<span class="vote-count-post ">6</span>
<a class="vote-down-off" title="This answer is not useful (click again to undo)">down vote</a>
</div>
</td>
<td class="answercell">
<div class="post-text"><p>The recommended way to <a href="http://pandas.pydata.org/pandas-docs/stable/install.html#overview">install pandas</a> is via pip (on Mac and Windows):</p>
<pre><code>pip install pandas
</code></pre>
<p><em>On Linux it's <code>python-pandas</code> in whichever repository.</em></p>
<p>.</p>
<p>It looks like you have tried to <a href="http://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source">install from source</a>, about which the docs mention:</p>
<blockquote>
<p>Installing from the git repository <strong>requires a recent installation of Cython as the cythonized C sources are no longer checked into source control</strong>. Released source distributions will contain the built C files. I recommend installing the latest Cython via <code>easy_install -U Cython</code></p>
<p>Note that <strong>you will not be able to import pandas</strong> if you open an interpreter in the source directory <strong>unless you build the C extensions in place</strong>:</p>
<pre><code>python setup.py build_ext --inplace
</code></pre>
</blockquote>
<p><em>Without compiling <a href="https://github.com/pydata/pandas/tree/master/pandas"><code>hashtables.pyx</code></a> (and a few other cython files), pandas is unable to import them. These are required for pandas (which explains your error message).</em></p>
</div>
<table class="fw">
<tr>
<td class="vt">
<div class="post-menu"><a href="/a/14428450" title="short permalink to this answer" class="short-link" id="link-post-14428450">share</a><span class="lsep">|</span><a href="/posts/14428450/edit" class="suggest-edit-post" title="">improve this answer</a></div> </td>
<td align="right" class="post-signature">
<div class="user-info user-hover">
<div class="user-action-time">
answered
<span title="2013-01-20 19:37:25Z" class="relativetime">Jan 20 at 19:37</span>
</div>
<div class="user-gravatar32">
<a href="/users/1240268/andy-hayden"><div class=""><img src="http://www.gravatar.com/avatar/299cd56a93faa3cb5eec139f8da54782?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1240268/andy-hayden">Andy Hayden</a><br>
<span class="reputation-score" title="reputation score" dir="ltr">9,509</span><span title="5 gold badges"><span class="badge1"></span><span class="badgecount">5</span></span><span title="13 silver badges"><span class="badge2"></span><span class="badgecount">13</span></span><span title="39 bronze badges"><span class="badge3"></span><span class="badgecount">39</span></span>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="votecell"></td>
<td>
<div id="comments-14428450" class="comments">
<table>
<tbody>
<tr id="comment-20165269" class="comment">
<td></td>
<td class="comment-text"><div><span class="comment-copy">Thanks for letting me know, Andy. Honestly, I don't know where to start with your suggestion of "pip install pandas". Where and what application do I have to run with the text? Since I just started learning Python, I may need detailed/step-wise instruction. Please let me know how to. Thanks,</span> – <a href="/users/1994194/sky404" title="16 reputation" class="comment-user owner">sky404</a> <span class="comment-date" dir="ltr"><span title="2013-01-23 07:37:23Z" class="relativetime-clean">Jan 23 at 7:37</span></span></div></td>
</tr>
<tr id="comment-20165298" class="comment">
<td></td>
<td class="comment-text"><div><span class="comment-copy">@sky404 have you seen <a href="http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows">this question</a>? Hope it can help!</span> – <a href="/users/1240268/andy-hayden" title="9509 reputation" class="comment-user">Andy Hayden</a> <span class="comment-date" dir="ltr"><span title="2013-01-23 07:39:10Z" class="relativetime-clean">Jan 23 at 7:39</span></span></div></td>
</tr>
<tr id="comment-20189558" class="comment">
<td></td>
<td class="comment-text"><div><span class="comment-copy">It works now. Thanks Andy.</span> – <a href="/users/1994194/sky404" title="16 reputation" class="comment-user owner">sky404</a> <span class="comment-date" dir="ltr"><span title="2013-01-23 20:05:00Z" class="relativetime-clean">Jan 23 at 20:05</span></span></div></td>
</tr>
<tr id="comment-20592402" class="comment">
<td></td>
<td class="comment-text"><div><span class="comment-copy">I did install using pip, but still get the same error. I'm running a small web server using python and want to use pandas. The error will appear on my webpage. If I try "import pandas" from a local python prompt, I will get a different error: SyntaxError: future feature unicode_literals is not defined</span> – <a href="/users/1208449/danioyuan" title="183 reputation" class="comment-user">danioyuan</a> <span class="comment-date" dir="ltr"><span title="2013-02-06 01:51:25Z" class="relativetime-clean">Feb 6 at 1:51</span></span><span class="edited-yes" title="this comment was edited"></span></div></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
</div>
<div class="everyonelovesstackoverflow" id="adzerk3">
</div>
<a name="14790777"></a>
<div id="answer-14790777" class="answer" data-answerid="14790777" >
<table>
<tr>
<td class="votecell">
<div class="vote">
<input type="hidden" value="14790777">
<a class="vote-up-off" title="This answer is useful (click again to undo)">up vote</a>
<span class="vote-count-post ">1</span>
<a class="vote-down-off" title="This answer is not useful (click again to undo)">down vote</a>
</div>
</td>
<td class="answercell">
<div class="post-text"><p>The pandas Python 3.3 binary here <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a> seems to have not been compiled successfully. I haven't had the time to configure my build machine to build and test Python 3.3 binaries but I do know that things work on Python 3.3 on the other platforms. </p>
</div>
<table class="fw">
<tr>
<td class="vt">
<div class="post-menu"><a href="/a/14790777" title="short permalink to this answer" class="short-link" id="link-post-14790777">share</a><span class="lsep">|</span><a href="/posts/14790777/edit" class="suggest-edit-post" title="">improve this answer</a></div> </td>
<td align="right" class="post-signature">
<div class="user-info user-hover">
<div class="user-action-time">
answered
<span title="2013-02-09 19:41:05Z" class="relativetime">Feb 9 at 19:41</span>
</div>
<div class="user-gravatar32">
<a href="/users/776560/wes-mckinney"><div class=""><img src="http://www.gravatar.com/avatar/2c08a3eed709a9d1a2654cea45aa466f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/776560/wes-mckinney">Wes McKinney</a><br>
<span class="reputation-score" title="reputation score" dir="ltr">9,159</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="15 silver badges"><span class="badge2"></span><span class="badgecount">15</span></span><span title="27 bronze badges"><span class="badge3"></span><span class="badgecount">27</span></span>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="votecell"></td>
<td>
<div id="comments-14790777" class="comments dno">
<table>
<tbody>
<tr><td></td><td></td></tr>
</tbody>
</table>
</div>
</td>
</tr>
</table>
</div>
<a name='new-answer'></a>
<form id="post-form" action="/questions/14422976/answer/submit" method="post" class="post-form">
<input type="hidden" id="post-id" value="14422976" />
<h2 class="space">Your Answer</h2>
<script type="text/javascript">
StackExchange.ready(function() {
initTagRenderer("".split(" "), "".split(" "));
prepareEditor({
heartbeatType: 'answer',
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
});
</script>
<div id="post-editor" class="post-editor">
<div style="position: relative;">
<div class="wmd-container">
<div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="wmd-input" name="post-text" cols="92" rows="15" tabindex="101" data-min-length=""></textarea>
</div>
</div>
<div class="fl" style="margin-top: 8px; height:24px;"> </div>
<div id="draft-saved" class="draft-saved community-option fl" style="margin-top: 8px; height:24px; display:none;">draft saved</div>
<div id="draft-discarded" class="draft-discarded community-option fl" style="margin-top: 8px; height:24px; display:none;">draft discarded</div>
<div id="wmd-preview" class="wmd-preview"></div>
<div></div>
<div class="edit-block">
<input id="fkey" name="fkey" type="hidden" value="63228ea9592982d0d8ce4aa3ec160c99">
<input id="author" name="author" type="text">
</div>
</div>
<div style="position: relative;">
<div class="form-item dno new-post-login">
<div class="new-login-form">
<div class="new-login-left">
<h3>Sign up or <a id="login-link" href="/users/login?returnurl=%2fquestions%2f14422976%2fpython3-3-importerror-cannot-import-name-hashtable%23new-answer">log in</a></h3>
<script type="text/javascript">
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
</script>
<div class="preferred-login google-login">
<p><span class="icon"></span><span>Sign up using Google</span></p>
</div>
<div class="preferred-login facebook-login">
<p><span class="icon"></span><span>Sign up using Facebook</span></p>
</div>
<div class="preferred-login stackexchange-login">
<p><span class="icon"></span><span>Sign up using Stack Exchange</span></p>
</div>
</div>
<input type="hidden" name="manual-openid" class="manual-openid" />
<input type="hidden" name="use-facebook" class="use-facebook" value="false" />
<input type="button" class="submit-openid" value="Submit" style="display:none" />
<div class="new-login-right">
<h3>Post as a guest</h3>
<div class="form-item">
<table>
<tr>
<script type="text/javascript">
StackExchange.ready(function () {
StackExchange.helpers.bindHelpOverlayEvents($('.vm input'));
});
</script>
<td class="vm">
<div>
<label for="display-name">Name</label>
<input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105">
</div>
<div>
<label for="m-address">Email</label>
<input id="m-address" name="m-address" type="text" size="30" maxlength="100" value="" tabindex="106">
<span class="edit-field-overlay">required, but not shown</span>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<script type="text/javascript">
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', '%2fquestions%2f14422976%2fpython3-3-importerror-cannot-import-name-hashtable%23new-answer');
}
);
</script>
<noscript>
<h3>Post as a guest</h3>
<div class="form-item">
<table>
<tr>
<script type="text/javascript">
StackExchange.ready(function () {
StackExchange.helpers.bindHelpOverlayEvents($('.vm input'));
});
</script>
<td class="vm">
<div>
<label for="display-name">Name</label>
<input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105">
</div>
<div>
<label for="m-address">Email</label>
<input id="m-address" name="m-address" type="text" size="30" maxlength="100" value="" tabindex="106">
<span class="edit-field-overlay">required, but not shown</span>
</div>
</td>
</tr>
</table>
</div>
</noscript>
</div>
<div class="form-submit cbt">
<input id="submit-button" type="submit" value="Post Your Answer" tabindex="110">
<a href="#" class="discard-answer dno">discard</a>
<p class="privacy-policy-agreement">
By posting your answer, you agree to the
<a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and
<a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.
</p>
<input type="hidden" name="legalLinksShown" value="1" />
</div>
</form>
<h2 class="bottom-notice">
Not the answer you're looking for?
Browse other questions tagged <a href="/questions/tagged/python-3.x" class="post-tag" title="show questions tagged 'python-3.x'" rel="tag">python-3.x</a> <a href="/questions/tagged/pandas" class="post-tag" title="show questions tagged 'pandas'" rel="tag">pandas</a>
or <a href="/questions/ask">ask your own question</a>.
</h2>
</div>
</div>
<div id="sidebar" class=show-votes>
<div class="module question-stats">
<p class="label-key">tagged</p>
<div class="tagged"><a href="/questions/tagged/python-3.x" class="post-tag" title="show questions tagged 'python-3.x'" rel="tag">python-3.x</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">5435</span></span><br>
<a href="/questions/tagged/pandas" class="post-tag" title="show questions tagged 'pandas'" rel="tag">pandas</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">1557</span></span><br>
</div>
<table id="qinfo">
<tr>
<td><p class="label-key">asked</p></td>
<td style="padding-left:10px"><p class="label-key" title="2013-01-20 08:48:56Z"><b>3 months ago</b></p></td>
</tr>
<tr>
<td><p class="label-key">viewed</p></td>
<td style="padding-left:10px">
<p class="label-key">
<b>567 times</b>
</p>
</td>
</tr>
<tr>
<td><p class="label-key">active</p></td>
<td style="padding-left:10px"><p class="label-key"><b><a href="?lastactivity" class="lastactivity-link" title="2013-02-09 19:41:05Z">2 months ago</a></b></p></td>
</tr>
</table>
</div>
<script type="text/javascript">
var scriptSrc = "http://engine.adzerk.net/z/8277/adzerk1_2_4_43,adzerk2_2_17_45,adzerk3_2_4_44?keywords=python-3.x,pandas";
if (document.referrer) {
if (/\?/.test(scriptSrc))
scriptSrc += "&";
else
scriptSrc += "?";
scriptSrc += "xReferrer=" + document.referrer;
}
StackExchange.ready(function() {
var z = document.createElement("script");
z.type = "text/javascript";
z.async = "true";
z.src = scriptSrc;
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(z, s);
});
</script>
<div class="everyonelovesstackoverflow" id="adzerk2">
</div>
<div id="hireme">
<script type="text/javascript">
window.careers_adurl="http://careers.stackoverflow.com/gethired/js",window.careers_cssurl="//careerscdn.sstatic.net/careers/gethired/sidebar.min.css?v=7ae83073b37e",window.careers_leaderboardcssurl="//careerscdn.sstatic.net/careers/gethired/ninja.min.css?v=78ccbfa5c59f",window.careers_companycssurl="//careerscdn.sstatic.net/careers/gethired/company",window.careers_adselector="div.hireme, div#hireme",StackExchange.ready(function(){$.ajax({url:"//careerscdn.sstatic.net/careers/gethired/loader.min.js?v=607ab2dda910",dataType:"script",cache:!0})})
</script>
</div>
<div class="module sidebar-linked">
<h4 id="h-linked">Linked</h4>
<div class="linked" data-tracker="lq=1">
<div class="spacer">
<a href="/q/4750806" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted large">321</div>
</a>
<a href="/questions/4750806/how-to-install-pip-on-windows" class="question-hyperlink">How to install pip on windows?</a>
</div>
<div class="spacer">
<a href="/q/14568070" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">2</div>
</a>
<a href="/questions/14568070/pandas-installation-on-mac-os-x-importerror-cannot-import-name-hashtable" class="question-hyperlink">Pandas installation on Mac OS X: ImportError (cannot import name hashtable)</a>
</div>
</div>
</div>
<div class="module sidebar-related">
<h4 id="h-related">Related</h4>
<div class="related" data-tracker="rq=1">
<div class="spacer">
<a href="/q/2223128" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">5</div>
</a>
<a href="/questions/2223128/cx-freeze-importerror-cannot-import-name" class="question-hyperlink">cx_Freeze ImportError: cannot import name</a>
</div>
<div class="spacer">
<a href="/q/7133248" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/7133248/import-error-no-module-named-re" class="question-hyperlink">Import Error: no module named re</a>
</div>
<div class="spacer">
<a href="/q/11613800" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/11613800/how-to-install-and-run-pandas-python-library-in-eclipse-juno" class="question-hyperlink">How to install and run pandas python library in Eclipse Juno?</a>
</div>
<div class="spacer">
<a href="/q/12051895" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">0</div>
</a>
<a href="/questions/12051895/importerror-cannot-import-name-thread" class="question-hyperlink">ImportError: cannot import name Thread</a>
</div>
<div class="spacer">
<a href="/q/12557070" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">1</div>
</a>
<a href="/questions/12557070/importerror-cannot-import-name-raised-on-import-from-but-not-on-direc" class="question-hyperlink">“ImportError: cannot import name …” - raised on “import from” but not on direct import</a>
</div>
<div class="spacer">
<a href="/q/14084383" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">1</div>
</a>
<a href="/questions/14084383/how-do-i-fix-importerror-no-module-named-index-when-importing-rtree-in-python" class="question-hyperlink">How do I fix “ImportError: No module named index” when importing RTree in Python?</a>
</div>
<div class="spacer">
<a href="/q/14568070" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">2</div>
</a>
<a href="/questions/14568070/pandas-installation-on-mac-os-x-importerror-cannot-import-name-hashtable" class="question-hyperlink">Pandas installation on Mac OS X: ImportError (cannot import name hashtable)</a>
</div>
<div class="spacer">
<a href="/q/14969552" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">1</div>
</a>
<a href="/questions/14969552/error-when-freezing-pandas-numpy-1-7-0-code-with-cx-freeze" class="question-hyperlink">Error when freezing pandas/NumPy 1.7.0 code with cx_Freeze</a>
</div>
<div class="spacer">
<a href="/q/15451865" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/15451865/cannot-install-pandas-on-macos" class="question-hyperlink">Cannot install Pandas on MacOS</a>
</div>
<div class="spacer">
<a href="/q/15984650" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">3</div>
</a>
<a href="/questions/15984650/python-wont-run-due-to-importerror-cannot-import-maxrepeat" class="question-hyperlink">Python won't run due to ImportError: cannot import MAXREPEAT</a>
</div>
</div>
</div>
</div>
<div id="feed-link">
<div id="feed-link-text"><a href="/feeds/question/14422976" title="feed of this question and its answers"><span class="feed-icon"></span>question feed</a></div>
</div>
<script type="text/javascript">
StackExchange.ready(function(){$.get('/posts/14422976/ivc/9904');});
</script>
<noscript>
<div><img src="/posts/14422976/ivc/9904" class="dno" alt="" width="0" height="0"></div>
</noscript><div style="display:none" id="prettify-lang">lang-py</div></div>
<script type="text/javascript">
StackExchange.using(
"gps",
function(){
if (!/^#ml..$/.test(location.hash))
return;
if(document.location.hash == '#mlsy'){
StackExchange.gps.track('so qlist.click', { 'mlsuggested_r': 'y' });
}
if(document.location.hash == '#mlsn') {
StackExchange.gps.track('so qlist.click', { 'mlsuggested_r': 'n' });
}
if (document.location.hash == '#mlsy') {
$('.post-form').append('<input type="hidden" name="mls" value="y">');
}
if (document.location.hash == '#mlsn') {
$('.post-form').append('<input type="hidden" name="mls" value="n">');
}
document.location.replace('#');
}
);
</script>
</div>
</div>
<div id="footer" class="categories">
<div class="footerwrap">
<div id="footer-menu">
<div class="top-footer-links">
<a href="/about">about</a>
<a href="/faq">faq</a>
<a href="/badges">badges</a>
<a href="http://blog.stackexchange.com?blb=1">blog</a>
<a href="http://chat.stackoverflow.com">chat</a>
<a href="http://data.stackexchange.com">data</a>
<a href="http://stackexchange.com/legal">legal</a>
<a href="http://stackexchange.com/legal/privacy-policy">privacy policy</a>
<a href="http://stackexchange.com/about/hiring">jobs</a>
<a href="http://engine.adzerk.net/redirect/0/2776/2751/0/4de3c60f719c4dfcb1a57531c7050090/0">advertising info</a>
<a onclick='StackExchange.switchMobile("on", "/questions/14422976/python3-3-importerror-cannot-import-name-hashtable/14428450")'>mobile</a>
<b><a href="/help">contact us</a></b>
<b><a href="http://meta.stackoverflow.com">feedback</a></b>
</div>
<div id="footer-sites">
<table>
<tr>
<th colspan=3>
Technology
</th>
<th >
Life / Arts
</th>
<th >
Culture / Recreation
</th>
<th >
Science
</th>
<th >
Other
</th>
</tr>
<tr>
<td>
<ol>
<li><a href="http://stackoverflow.com" title="professional and enthusiast programmers">Stack Overflow</a></li>
<li><a href="http://serverfault.com" title="professional system and network administrators">Server Fault</a></li>
<li><a href="http://superuser.com" title="computer enthusiasts and power users">Super User</a></li>
<li><a href="http://webapps.stackexchange.com" title="power users of web applications">Web Applications</a></li>
<li><a href="http://askubuntu.com" title="Ubuntu users and developers">Ask Ubuntu</a></li>
<li><a href="http://webmasters.stackexchange.com" title="pro webmasters">Webmasters</a></li>
<li><a href="http://gamedev.stackexchange.com" title="professional and independent game developers">Game Development</a></li>
<li><a href="http://tex.stackexchange.com" title="users of TeX, LaTeX, ConTeXt, and related typesetting systems">TeX - LaTeX</a></li>
</ol></td><td><ol>
<li><a href="http://programmers.stackexchange.com" title="professional programmers interested in conceptual questions about software development">Programmers</a></li>
<li><a href="http://unix.stackexchange.com" title="users of Linux, FreeBSD and other Un*x-like operating systems.">Unix & Linux</a></li>
<li><a href="http://apple.stackexchange.com" title="power users of Apple hardware and software">Ask Different (Apple)</a></li>
<li><a href="http://wordpress.stackexchange.com" title="WordPress developers and administrators">WordPress Answers</a></li>
<li><a href="http://gis.stackexchange.com" title="cartographers, geographers and GIS professionals">Geographic Information Systems</a></li>
<li><a href="http://electronics.stackexchange.com" title="electronics and electrical engineering professionals, students, and enthusiasts">Electrical Engineering</a></li>
<li><a href="http://android.stackexchange.com" title="enthusiasts and power users of the Android operating system">Android Enthusiasts</a></li>
<li><a href="http://security.stackexchange.com" title="IT security professionals">IT Security</a></li>
</ol></td><td><ol>
<li><a href="http://dba.stackexchange.com" title="database professionals who wish to improve their database skills and learn from others in the community">Database Administrators</a></li>
<li><a href="http://drupal.stackexchange.com" title="Drupal developers and administrators">Drupal Answers</a></li>
<li><a href="http://sharepoint.stackexchange.com" title="SharePoint enthusiasts">SharePoint</a></li>
<li><a href="http://ux.stackexchange.com" title="user experience researchers and experts">User Experience</a></li>
<li><a href="http://mathematica.stackexchange.com" title="users of Mathematica">Mathematica</a></li>
<li>
<a href="http://stackexchange.com/sites#technology" class="more">
more (14)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="http://photo.stackexchange.com" title="professional, enthusiast and amateur photographers">Photography</a></li>
<li><a href="http://scifi.stackexchange.com" title="science fiction and fantasy enthusiasts">Science Fiction & Fantasy</a></li>
<li><a href="http://cooking.stackexchange.com" title="professional and amateur chefs">Seasoned Advice (cooking)</a></li>
<li><a href="http://diy.stackexchange.com" title="contractors and serious DIYers">Home Improvement</a></li>
<li>
<a href="http://stackexchange.com/sites#lifearts" class="more">
more (13)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="http://english.stackexchange.com" title="linguists, etymologists, and serious English language enthusiasts">English Language & Usage</a></li>
<li><a href="http://skeptics.stackexchange.com" title="scientific skepticism">Skeptics</a></li>
<li><a href="http://judaism.stackexchange.com" title="those who base their lives on Jewish law and tradition and anyone interested in learning more">Mi Yodeya (Judaism)</a></li>
<li><a href="http://travel.stackexchange.com" title="road warriors and seasoned travelers">Travel</a></li>
<li><a href="http://gaming.stackexchange.com" title="passionate videogamers on all platforms">Arqade (gaming)</a></li>
<li><a href="http://bicycles.stackexchange.com" title="people who build and repair bicycles, people who train cycling, or commute on bicycles">Bicycles</a></li>
<li><a href="http://rpg.stackexchange.com" title="gamemasters and players of tabletop, paper-and-pencil role-playing games">Role-playing Games</a></li>
<li>
<a href="http://stackexchange.com/sites#culturerecreation" class="more">
more (22)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="http://math.stackexchange.com" title="people studying math at any level and professionals in related fields">Mathematics</a></li>
<li><a href="http://stats.stackexchange.com" title="statisticians, data analysts, data miners and data visualization experts">Cross Validated (stats)</a></li>
<li><a href="http://cstheory.stackexchange.com" title="theoretical computer scientists and researchers in related fields">Theoretical Computer Science</a></li>
<li><a href="http://physics.stackexchange.com" title="active researchers, academics and students of physics">Physics</a></li>
<li>
<a href="http://stackexchange.com/sites#science" class="more">
more (7)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="http://stackapps.com" title="apps, scripts, and development with the Stack Exchange API">Stack Apps</a></li>
<li><a href="http://meta.stackoverflow.com" title="meta-discussion of the Stack Exchange family of Q&A websites">Meta Stack Overflow</a></li>
<li><a href="http://area51.stackexchange.com" title="proposing new sites in the Stack Exchange network">Area 51</a></li>
<li><a href="http://careers.stackoverflow.com">Stack Overflow Careers</a></li>
</ol>
</td>
</tr>
</table>
</div>
</div>
<div id="copyright">
site design / logo © 2013 stack exchange inc;