Error when running basic example from documentation
I try to run the example from this page:
https://docs.apify.com/sdk/python/docs/overview/running-actors-locally
Created this:
apify create my-first-actor --template python-start
Try to run the created actor:
apify run
And get this error:
TypeError: unhashable type: 'list'
Error: "C:\DEV.venv\apify\Scripts\python.exe" exited with code 1
More error-log:
(apify) C:\DEV\Python-Diverses\Apify_Development\my-first-actor>apify run
Warning: The storage directory contains a previous state, the Actor will continue where it left off. To start from the initial state, use --purge parameter to clean the storage directory.
Warning: You are not logged in with your Apify Account. Some features like Apify Proxy will not work. Call "apify login" to fix that.
TypeError: unhashable type: 'list'
Error: "C:\DEV.venv\apify\Scripts\python.exe" exited with code 1
Why is the example from you documentation not working?
Running Actors locally | SDK for Python | Apify Documentation
In this page, you'll learn how to create and run Apify Actors locally on your computer.
2 Replies
Solution
Have you tried running
apify run --purge
I upgrade to the actual python-version v13 (had v9) - and then it worked without problems