我有最新的numpy,httplib2,pytz,Cython,python-dateutil& numexpr
最新的pandas构建
但我很沮丧!以下代码给出了以下相当神秘的错误。它试图告诉我什么?
import pandas
print "ok pandas"
错误:
Traceback (most recent call last):
File "sank.py", line 1, in <module>
import pandas
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas-0.14.1-py2.7-macosx-10.6-intel.egg/pandas/__init__.py", line 45, in <module>
from pandas.io.api import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas-0.14.1-py2.7-macosx-10.6-intel.egg/pandas/io/api.py", line 15, in <module>
from pandas.io.gbq import read_gbq
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas-0.14.1-py2.7-macosx-10.6-intel.egg/pandas/io/gbq.py", line 59, in <module>
import httplib2
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py", line 1070, in <module>
from google.appengine.api import apiproxy_stub_map
File "/Users/maggielee/Documents/pythons/google.py", line 32, in <module>
GET / HTTP/1.0
NameError: name 'GET' is not defined
答案 0 :(得分:0)
furas和OP的解决方案。
我有一个名为var modal = document.getElementById('myModal');
var btn = document.querySelectorAll('homeBtn');
var span = document.getElementsByClassName("close")[0];
[].forEach.call(homeBtn, function(el) {
el.onclick = function() {
modal.style.display = "block";
}
})
btn.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
的旧文件。刚刚重命名/删除它,问题就解决了。
可能python在导入google.py
时会使用此文件。