You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/09 04:32:10 UTC

[GitHub] [cloudstack] rohityadavcloud opened a new issue, #6962: Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible

rohityadavcloud opened a new issue, #6962:
URL: https://github.com/apache/cloudstack/issues/6962

   Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible. On my attempt to migrating CI to Github Actions with Python 3.9 I hit this:
   ```
   2022-12-09 04:16:00,759 - ERROR - __sendCmdToCS: Exception:['Traceback (most recent call last):\n', '  File "/home/runner/.local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 217, in __sendCmdToCS\n    payload["signature"] = self.__sign(payload)\n', '  File "/home/runner/.local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 150, in __sign\n    signature = base64.encodestring(\n', "AttributeError: module 'base64' has no attribute 'encodestring'\n"]
   Traceback (most recent call last):
     File "/home/runner/.local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 217, in __sendCmdToCS
       payload["signature"] = self.__sign(payload)
     File "/home/runner/.local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 150, in __sign
       signature = base64.encodestring(
   AttributeError: module 'base64' has no attribute 'encodestring'
   ```
   
   On further investigation I found this particular method in base64 module was deprecated and removed in Py 3.9;
   https://docs.python.org/3.8/library/base64.html#base64.decodestring
   
   It's possible there are other things not supported/removed in even newer Python (3.10/3.11) versions. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6962: Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #6962:
URL: https://github.com/apache/cloudstack/issues/6962#issuecomment-1537880393

   Closing the encodestring issue was fixed in https://github.com/apache/cloudstack/pull/7027


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud commented on issue #6962: Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #6962:
URL: https://github.com/apache/cloudstack/issues/6962#issuecomment-1514195939

   Related issue: https://github.com/apache/cloudstack/issues/7443
   Smoketests are failing if run on Ubuntu 22.04 and python version (3.10.6)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] rohityadavcloud closed issue #6962: Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud closed issue #6962: Marvin and CloudStack integration tests aren't fully Python v3.9-3.11 compatible
URL: https://github.com/apache/cloudstack/issues/6962


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org