kaltura / KalturaGeneratedAPIClientsPython

Python auto generated clients libs which will then be built and test by Travis CI
GNU Affero General Public License v3.0
6 stars 15 forks source link

"SyntaxError: duplicate argument" error found when using Python client API #8

Closed wirawan0 closed 3 years ago

wirawan0 commented 3 years ago

Hi,

I found error when running this initial code on Python:

from KalturaClient import *

config = KalturaConfiguration()
client = KalturaClient(config)

This is from the first code snippet in https://developer.kaltura.com/api-docs/VPaaS-API-Getting-Started/Getting-Started-VPaaS-API.html . The detailed error dump was:

Traceback (most recent call last):

  File "/Users/wpurwant/Applications/anaconda3-2020.11/envs/kaltura-test/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3437, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-1ce55f951fc6>", line 4, in <module>
    client = KalturaClient(config)

  File "/Users/wpurwant/Applications/anaconda3-2020.11/envs/kaltura-test/lib/python3.8/site-packages/KalturaClient/Client.py", line 132, in __init__
    self.loadPlugins()

  File "/Users/wpurwant/Applications/anaconda3-2020.11/envs/kaltura-test/lib/python3.8/site-packages/KalturaClient/Client.py", line 165, in loadPlugins
    self.loadPlugin(pluginFile)

  File "/Users/wpurwant/Applications/anaconda3-2020.11/envs/kaltura-test/lib/python3.8/site-packages/KalturaClient/Client.py", line 169, in loadPlugin
    pluginModule = __import__('.'.join(moduleHierarchy))

  File "/Users/wpurwant/Applications/anaconda3-2020.11/envs/kaltura-test/lib/python3.8/site-packages/KalturaClient/Plugins/Reach.py", line 2536
    def __init__(self,
    ^
SyntaxError: duplicate argument 'expectedFinishTimeGreaterThanOrEqual' in function definition

This was run under Python 3.8.5, with Anaconda python distribution, in a Mac system. But the error in line 2536 above seems to be consistent--my friend also encountered the same.

kaltura-hooks commented 3 years ago

Hi @wirawan0,

Thank for you reporting an issue and helping improve Kaltura!

To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):

For general troubleshooting see: https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.13.0/doc/kaltura-packages-faq.md#troubleshooting-help

If you only have a general question rather than a bug report, please close this issue and post at: http://forum.kaltura.org

Thank you in advance,

wirawan0 commented 3 years ago

Opps ... wrong place to report issue. I noted another person already reported this issue on https://github.com/kaltura/clients-generator/issues/653 . Closing this one.