首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过Google Colab访问WRDS数据: OperationalError

通过Google Colab访问WRDS数据: OperationalError
EN

Stack Overflow用户
提问于 2021-06-17 20:03:40
回答 1查看 96关注 0票数 0

我曾尝试使用wrds.Connection()函数通过Google Colab访问WRDS中的数据。但我拿到了OperationalError我以前通过Google Colab多次访问WRDS中的数据,但这是我第一次遇到这个问题。我多次更改密码、电脑、浏览器,但仍然不起作用。

任何人请看一看,并给我一个评论,这样我就可以通过这个问题。非常感谢!

代码语言:javascript
复制
Enter your WRDS username [root]:.........
Enter your password:........
WRDS recommends setting up a .pgpass file.
You can find more info here:
https://www.postgresql.org/docs/9.5/static/libpq-pgpass.html.
There was an error with your password.
---------------------------------------------------------------------------
OperationalError                          Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection)
       3210         try:
    -> 3211             return fn()
       3212         except dialect.dbapi.Error as e:
    
83 frames
OperationalError: fe_sendauth: no password supplied
    
The above exception was the direct cause of the following exception:
    
OperationalError                          Traceback (most recent call last)
OperationalError: (psycopg2.OperationalError) fe_sendauth: no password supplied
    
(Background on this error at: http://sqlalche.me/e/14/e3q8)
    
During handling of the above exception, another exception occurred:
    
OperationalError                          Traceback (most recent call last)
OperationalError: could not translate host name "12GO@wrds-pgdata.wharton.upenn.edu" to address: Name or service not known
    
The above exception was the direct cause of the following exception:
    
OperationalError                          Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/psycopg2/__init__.py in connect(dsn, connection_factory, cursor_factory, **kwargs)
        120 
        121     dsn = _ext.make_dsn(dsn, **kwargs)
    --> 122     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
        123     if cursor_factory is not None:
        124         conn.cursor_factory = cursor_factory
    
OperationalError: (psycopg2.OperationalError) could not translate host name "12GO@wrds-pgdata.wharton.upenn.edu" to address: Name or service not known
    
(Background on this error at: http://sqlalche.me/e/14/e3q8) 
EN

回答 1

Stack Overflow用户

发布于 2021-06-21 07:39:20

我没有遇到任何麻烦。我使用!pip install wrds安装了wrds库,然后运行conn = wrds.Connection(),输入我的WRDS ID和密码,一切都正常了。一个想法可能是重新安装库,然后再试一次。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68018963

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档