Replicate module suddenly not working in Pickaxe Actions

Hey @Ned.Malki @danny_support @abhi1 @nathaniel

I’ve been using the Replicate Python client inside my Pickaxe Action for a long time without any issues.
But today my tool started failing with this error:

ModuleNotFoundError: No module named ‘replicate’

Nothing in my code has changed — it was working perfectly before.and also running perfectly in google colab

It looks like the Pickaxe execution environment no longer includes the “replicate” Python package.
Can you please confirm if something changed in the environment, or if the module was removed?

I need to know whether:

  1. Replicate library will be added back, OR
  2. I should switch completely to the REST API instead.

Thank you!

1 Like

Hi @kenlyle,

I see seems to not work if the import is not in the global scope but should be fixed! Please try again.

2 Likes

Hey @stephenasuncion the same issue again ,it was working perfectly before now i am back and trying to test but its not working . i does not even touch the code or anything But now its not working .

Can you please solve it ? here is the pickaxe Link https://start.designplatform.shop/RGU5LH3H4X2

Thanks in Advance

1 Like

Ahh ! this issue is resolved , but i am now facing a new issue ,

{‘error’: ‘REPLICATE_API_KEY not configured in environment variables’}

No files found.

and the key is set perfectly in my action environment Variables , Means now this is the pickaxe side problem because the code is running see ,

Logs ,

{‘error’: ‘REPLICATE_API_KEY not configured in environment variables’}

No files found.

Please solve this @abhi @stephenasuncion @danny_support

1 Like

Hi @kenlyle ,

Thank you for the update.

On our side, environment variables set in Custom Actions are working as expected. Could you please email us with the details of your action setup, including the action details page and what your action code looks like, so we can take a closer look and report anything relevant to our engineering team?