Getting a TypeError with Python quandl.get: raise_on_status





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Im following a tutorial on ML and quandl and have imported quandl and dependencies for python3. When I run



import quandl

data = quandl.get("EIA/PET_RWTC_D")
print(data.head())


I have a quandl account and this code is from the quandl python docs since I wanted to make sure the tutorial was not wrong (https://www.youtube.com/watch?v=JcI5Vnw0b2c&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&index=2) (I made sure it was lowercase quandl for import since it differed due to the posted date of the video), I also tried with my api_key and using that arg in quandl.get()



I get the error:



Traceback (most recent call last):
File "ml_regression1.py", line 4, in <module>
quandl.get("EIA/PET_RWTC_D", authtoken="MyAuthTokenPlaceHolder")
File "/usr/local/lib/python3.5/dist-packages/quandl/get.py", line 48, in get
data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
File "/usr/local/lib/python3.5/dist-packages/quandl/model/dataset.py", line 47, in data
return Data.all(**updated_options)
File "/usr/local/lib/python3.5/dist-packages/quandl/operations/list.py", line 14, in all
r = Connection.request('get', path, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 38, in request
return cls.execute_request(http_verb, abs_url, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 42, in execute_request
session = cls.get_session()
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 58, in get_session
adapter = HTTPAdapter(max_retries=cls.get_retries())
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 74, in get_retries
raise_on_status=False)
TypeError: __init__() got an unexpected keyword argument 'raise_on_status'


Any help would be great, thank you.










share|improve this question

























  • Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

    – gnsb
    Nov 16 '18 at 20:16











  • I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

    – Gabe Maurer
    Nov 16 '18 at 20:34













  • I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

    – Gabe Maurer
    Nov 16 '18 at 20:34


















1















Im following a tutorial on ML and quandl and have imported quandl and dependencies for python3. When I run



import quandl

data = quandl.get("EIA/PET_RWTC_D")
print(data.head())


I have a quandl account and this code is from the quandl python docs since I wanted to make sure the tutorial was not wrong (https://www.youtube.com/watch?v=JcI5Vnw0b2c&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&index=2) (I made sure it was lowercase quandl for import since it differed due to the posted date of the video), I also tried with my api_key and using that arg in quandl.get()



I get the error:



Traceback (most recent call last):
File "ml_regression1.py", line 4, in <module>
quandl.get("EIA/PET_RWTC_D", authtoken="MyAuthTokenPlaceHolder")
File "/usr/local/lib/python3.5/dist-packages/quandl/get.py", line 48, in get
data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
File "/usr/local/lib/python3.5/dist-packages/quandl/model/dataset.py", line 47, in data
return Data.all(**updated_options)
File "/usr/local/lib/python3.5/dist-packages/quandl/operations/list.py", line 14, in all
r = Connection.request('get', path, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 38, in request
return cls.execute_request(http_verb, abs_url, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 42, in execute_request
session = cls.get_session()
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 58, in get_session
adapter = HTTPAdapter(max_retries=cls.get_retries())
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 74, in get_retries
raise_on_status=False)
TypeError: __init__() got an unexpected keyword argument 'raise_on_status'


Any help would be great, thank you.










share|improve this question

























  • Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

    – gnsb
    Nov 16 '18 at 20:16











  • I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

    – Gabe Maurer
    Nov 16 '18 at 20:34













  • I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

    – Gabe Maurer
    Nov 16 '18 at 20:34














1












1








1


1






Im following a tutorial on ML and quandl and have imported quandl and dependencies for python3. When I run



import quandl

data = quandl.get("EIA/PET_RWTC_D")
print(data.head())


I have a quandl account and this code is from the quandl python docs since I wanted to make sure the tutorial was not wrong (https://www.youtube.com/watch?v=JcI5Vnw0b2c&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&index=2) (I made sure it was lowercase quandl for import since it differed due to the posted date of the video), I also tried with my api_key and using that arg in quandl.get()



I get the error:



Traceback (most recent call last):
File "ml_regression1.py", line 4, in <module>
quandl.get("EIA/PET_RWTC_D", authtoken="MyAuthTokenPlaceHolder")
File "/usr/local/lib/python3.5/dist-packages/quandl/get.py", line 48, in get
data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
File "/usr/local/lib/python3.5/dist-packages/quandl/model/dataset.py", line 47, in data
return Data.all(**updated_options)
File "/usr/local/lib/python3.5/dist-packages/quandl/operations/list.py", line 14, in all
r = Connection.request('get', path, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 38, in request
return cls.execute_request(http_verb, abs_url, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 42, in execute_request
session = cls.get_session()
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 58, in get_session
adapter = HTTPAdapter(max_retries=cls.get_retries())
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 74, in get_retries
raise_on_status=False)
TypeError: __init__() got an unexpected keyword argument 'raise_on_status'


Any help would be great, thank you.










share|improve this question
















Im following a tutorial on ML and quandl and have imported quandl and dependencies for python3. When I run



import quandl

data = quandl.get("EIA/PET_RWTC_D")
print(data.head())


I have a quandl account and this code is from the quandl python docs since I wanted to make sure the tutorial was not wrong (https://www.youtube.com/watch?v=JcI5Vnw0b2c&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&index=2) (I made sure it was lowercase quandl for import since it differed due to the posted date of the video), I also tried with my api_key and using that arg in quandl.get()



I get the error:



Traceback (most recent call last):
File "ml_regression1.py", line 4, in <module>
quandl.get("EIA/PET_RWTC_D", authtoken="MyAuthTokenPlaceHolder")
File "/usr/local/lib/python3.5/dist-packages/quandl/get.py", line 48, in get
data = Dataset(dataset_args['code']).data(params=kwargs, handle_column_not_found=True)
File "/usr/local/lib/python3.5/dist-packages/quandl/model/dataset.py", line 47, in data
return Data.all(**updated_options)
File "/usr/local/lib/python3.5/dist-packages/quandl/operations/list.py", line 14, in all
r = Connection.request('get', path, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 38, in request
return cls.execute_request(http_verb, abs_url, **options)
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 42, in execute_request
session = cls.get_session()
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 58, in get_session
adapter = HTTPAdapter(max_retries=cls.get_retries())
File "/usr/local/lib/python3.5/dist-packages/quandl/connection.py", line 74, in get_retries
raise_on_status=False)
TypeError: __init__() got an unexpected keyword argument 'raise_on_status'


Any help would be great, thank you.







python python-3.x typeerror quandl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 20:03







Gabe Maurer

















asked Nov 16 '18 at 19:16









Gabe MaurerGabe Maurer

114




114













  • Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

    – gnsb
    Nov 16 '18 at 20:16











  • I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

    – Gabe Maurer
    Nov 16 '18 at 20:34













  • I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

    – Gabe Maurer
    Nov 16 '18 at 20:34



















  • Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

    – gnsb
    Nov 16 '18 at 20:16











  • I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

    – Gabe Maurer
    Nov 16 '18 at 20:34













  • I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

    – Gabe Maurer
    Nov 16 '18 at 20:34

















Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

– gnsb
Nov 16 '18 at 20:16





Have you given the authtoken or your API_KEY? If not, see docs.quandl.com/v1.0/docs/…

– gnsb
Nov 16 '18 at 20:16













I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

– Gabe Maurer
Nov 16 '18 at 20:34







I added this to the code right after importing quandl: quandl.ApiConfig.api_key = "MyKey"

– Gabe Maurer
Nov 16 '18 at 20:34















I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

– Gabe Maurer
Nov 16 '18 at 20:34





I also tried data = quandl.get("EIA/PET_RWTC_D", api_key='MyKey')

– Gabe Maurer
Nov 16 '18 at 20:34












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344078%2fgetting-a-typeerror-with-python-quandl-get-raise-on-status%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344078%2fgetting-a-typeerror-with-python-quandl-get-raise-on-status%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

The Sandy Post

Danny Elfman

Pages that link to "Head v. Amoskeag Manufacturing Co."