laura-barluzzi / django-user-language-middleware

Django middleware to translate with language in user model
Apache License 2.0
12 stars 2 forks source link

TypeError: object() takes no parameters #4

Closed Ravi9562 closed 4 years ago

Ravi9562 commented 5 years ago

Hi All,

I am getting below error C:\Users\tejaw\PycharmProjects\CRM\venv\Scripts\python.exe C:/Users/tejaw/PycharmProjects/CRM/CRM_Integration.py Traceback (most recent call last): File "C:/Users/tejaw/PycharmProjects/CRM/CRM_Integration.py", line 10, in sugarcrm_conn = sugarcrm.Sugarcrm(url = sugarcrm_url, username = sugarcrm_user, password = sugarcrm_pass) TypeError: object() takes no parameters

when I am trying to execute the below script which will help me authenticating to suite crm import sugarcrm

sugarcrm_user = "xxx" sugarcrm_pass = "xxxx" sugarcrm_url = "xxxxxxxxxxxxxx"

sugarcrm_conn = None

try: sugarcrm_conn = sugarcrm.Sugarcrm(url = sugarcrm_url, username = sugarcrm_user, password = sugarcrm_pass) except ValueError: print("can't connect to " + sugarcrm_url) exit(1)

It will be great if someone can give me some suggestions on how to clear this error.

laura-barluzzi commented 5 years ago

@Ravi9562 sorry for the late reply, but I believe this issue has nothing to do with the middleware. Why do you think they are linked? I don't see my middleware being mentioned in any of your errors.

laura-barluzzi commented 4 years ago

@Ravi9562 since I haven't heard back from you for over a year I assume this issue was not related to the middleware. Therefore, I close it. Thanks.