Requested Telstra-Messaging from https://files.pythonhosted.org/packages/f7/b6/51054e127830df6a06791dcc895ee03ca8087a542cadf269c9ed66de64ca/Telstra_Messaging-1.0.6.1.tar.gz#sha256=e5185836ead2dfb0f0fd0ca542ff8cb05cdba06565f204b6bf85c45bd0eec564 has inconsistent version: filename has '1.0.6.1', but metadata has '1.0.6'.
ERROR: Could not find a version that satisfies the requirement Telstra-Messaging
ERROR: No matching distribution found for Telstra-Messaging
Currently have the above message when installing telstra_messaging module from command prompt for python, has anyone else run into this issue or possibly know the reason why?
Hi James,
Sorry to hear that there was version mismatch in our python package. I have forwarded this issue to our dev team to check this out.
I shall let you know once I have a response from our dev team.
Regards,
Vinodh
Hi James,
Our dev team checked your issue but could not reproduce the issue. Here is the output of our pip install, get token and send sms using python sdk. Could you please check this and send your log if you still have issues?
I've had the same issue, the problem is that the package on PyPI has mismatching metadata, and recent versions of pip will complain about this. If you visit: https://pypi.org/project/Telstra-Messaging/#files, the version in the metadata (1.0.6) does not match that in the .tar.gz file (1.0.6.1).
The script Vinodh used downloaded from the Telstra-Messaging repository on GitHub, which is version 1.0.7. PyPI is still on 1.0.6/1.0.6.1.
The Telstra-messaging package page on PyPI needs to be updated to fix the mismatch, then updated to have the latest package.
There are two workarounds.
1 - Get the package from GitHub, like Vinodh did.
2 - Roll back to a version of Pip that does not perform the metadata check. 20.1 installs Telstra-Messaging from PyPI without complaint, 20.3.1 will throw the metadata check error. Rolling back to 20.1 will allow you to install Telstra-Messaging from PyPI without needing to spend time getting and installing the wheel file, until they fix the metadata on PyPI and you can remove the version lock on pip:
$ pip install pip=20.1
$ pip install telstra-messaging
-Andy
Hi Andy,
Thanks for providing the feedback and possible workarounds to fix this issue. Really appreciate your inputs.
As informed over emal we are in the process of updating our SDKs and Python SDK is work in progress. We will definetly ensure issues such as these do not arise in the future by updating our build scripts and our documentation to support our developer community better.
Regards
Vinodh