Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more

crowdAI is shutting down - please read our blog post for more information

OpenSNP Height Prediction



random_predict.py is giving error

Posted by amit_yadav over 4 years ago


I am trying to run random_predict.py by issuing following command, as suggested on github. python random_predict.py –api_key==«MY_CROWDAPI_KEY»

But i am getting the following error message:

CrowdAI.Event.Authentication : Authenticating for challenge = OpenSNPChallenge2017 CrowdAI.Event.Connection.CONNECTED CrowdAI.Event.Authentication.ERROR : [object Object] Traceback (most recent call last): File “random_predict.py”, line 13, in challenge = crowdai.Challenge("OpenSNPChallenge2017", args.api_key) File "/home/amit/.local/lib/python2.7/site-packages/crowdai/__init__.py", line 5, in Challenge return config['challenges'][challenge_id]['class'](API_KEY, config) File "/home/amit/.local/lib/python2.7/site-packages/crowdai/challenges/opensnp_challenge_2017.py", line 9, in __init__ self._authenticate() File "/home/amit/.local/lib/python2.7/site-packages/crowdai/challenges/base_challenge.py", line 68, in _authenticate self.socketio.wait_for_callbacks(seconds=self.config['TIMEOUT_AUTHENTICATE']) File "/home/amit/.local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 450, in wait_for_callbacks self.wait(seconds, for_callbacks=True) File "/home/amit/.local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 245, in wait self._process_packets() File "/home/amit/.local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 269, in _process_packets self._process_packet(engineIO_packet) File "/home/amit/.local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 496, in _process_packet delegate(packet) File "/home/amit/.local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 516, in _on_event packet.namespace._find_packet_callback(event)(*args) File "/home/amit/.local/lib/python2.7/site-packages/crowdai/challenges/base_challenge.py", line 53, in _authenticate_response raise CrowdAIAuthenticationError(args["message"]) crowdai.challenges.crowdai_errors.CrowdAIAuthenticationError: [object Object]

Please help me in resolving it.

Posted by spMohanty  over 4 years ago |  Quote

Hi @amit-yadav,

Are you sure you used the right API Key ? You can find your API Key on your profile page here : https://www.crowdai.org/participants/amit-yadav

Cheers, Mohanty


Posted by amit_yadav  over 4 years ago |  Quote

@spMohanty, i was making an error in issuing the command. Thanks a lot.

Posted by Alex_Claussen  about 4 years ago |  Quote

I am seeing the same error. Amit what was the error in your command?