function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
irfan azizirfan aziz 

I just tried to login using bulk api python but it fails?

Here is  code
from salesforce_bulk import SalesforceBulk
bulk = SalesforceBulk(username='user@abc.com', password='passwd')
after executing this line i get the error 
Traceback (most recent call last):
  File "<pyshell#7>", line 2, in <module>
    cid,sls,sru = SalesforceBulk(username='user@agc.com', password='passwd')
  File "C:\Python27\lib\site-packages\salesforce_bulk\salesforce_bulk.py", line 60, in __init__
    username, password)
  File "C:\Python27\lib\site-packages\salesforce_bulk\salesforce_bulk.py", line 87, in login_to_salesforce
    ', '.join(missing_env_vars)))
RuntimeError: You must set SALESFORCE_CLIENT_ID, SALESFORCE_CLIENT_SECRET, SALESFORCE_REDIRECT_URI to use username/pass login
What could be wrong here. I am following simple examples.
 
NagendraNagendra (Salesforce Developers) 
Hi Irfan,

From the above error, it states that you need to get the client id, client secret key, and instance URL. 

Please check with below link from the forums community on how to get the same. Hope this helps.

Regards,
Nagendra.