lithops: Errors running testpywren.py

I am getting errors when run python testpywren.py.

I am able run python testpywren.py init and i get the following outout

Uploading test files...
Upload file: __pywren.test/test0 - SUCCESS
Upload file: __pywren.test/test1 - SUCCESS
Upload file: __pywren.test/test2 - SUCCESS
Upload file: __pywren.test/test3 - SUCCESS
Upload file: __pywren.test/test4 - SUCCESS
Upload file: __pywren.test/result - SUCCESS
ALL DONE

I can verify that these files have been created from the dashboard.

However, when I run python testpywren.py. I get the following,

IBM Cloud Functions init for Namespace: myemail@gmail.com_dev
IBM Cloud Functions init for Host: https://us-south.functions.cloud.ibm.com
IBM Cloud Functions init for Runtime: ibmfunctions/action-python-v3.7 - 256MB (Installing...)
The filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.
EThe filename, directory name, or volume label syntax is incorrect.

Pretty much copied an pasted the config variables from, https://cloud.ibm.com/openwhisk/learn/api-key

image

I made sure that I prefixed https:// to endpoint, endpoint : https://us-south.functions.cloud.ibm.com

I was also able to run the “hello world” example from https://console.bluemix.net/docs/openwhisk/openwhisk_actions.html#creating-python-actions

I am not sure what I am doing wrong other than I have entered the wrong config variables, which looks like,

pywren: 
    storage_bucket: spif-pywren-bucket

ibm_cf:
    # Obtain all values from https://cloud.ibm.com/openwhisk/learn/api-key
    endpoint    : https://us-south.functions.cloud.ibm.com
    namespace   : myemail@gmail.com_dev
    api_key     : copied_from_above_link
   
ibm_cos:
    # Region endpoint example: https://s3.us-east.cloud-object-storage.appdomain.cloud
    endpoint   : https://s3.us-east.cloud-object-storage.appdomain.cloud
    # this is preferable authentication method for IBM COS
    api_key    :  copied_from_cos_dashboard
    # alternatively you may use HMAC authentication method
    # access_key : <ACCESS_KEY>
    # secret_key : <SECRET_KEY>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

This fixes the issue.