#Python template issues

1 messages · Page 1 of 1 (latest)

gentle kestrel
#

Hey i made apify actor project from template (nothing is changed) and when i run apify run i get this error

C:\Users\style\justjoin-it>apify run
Run: C:\Users\style\justjoin-it\.venv\Scripts\python.exe -m src
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\style\justjoin-it\src\__main__.py", line 4, in <module>
    from apify.log import ActorLogFormatter
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\__init__.py", line 3, in <module>
    from .actor import Actor
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\actor.py", line 14, in <module>
    from ._memory_storage import MemoryStorageClient
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\_memory_storage\__init__.py", line 1, in <module>
    from .memory_storage_client import MemoryStorageClient
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\_memory_storage\memory_storage_client.py", line 12, in <module>
    from .resource_clients.dataset import DatasetClient
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\_memory_storage\resource_clients\__init__.py", line 2, in <module>
    from .base_resource_collection_client import BaseResourceCollectionClient
  File "C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify\_memory_storage\resource_clients\base_resource_collection_client.py", line 5, in <module>
    from apify_client._utils import ListPage
ImportError: cannot import name 'ListPage' from 'apify_client._utils' (C:\Users\style\justjoin-it\.venv\Lib\site-packages\apify_client\_utils.py)
Error: C:\Users\style\justjoin-it\.venv\Scripts\python.exe exited with code 1
final tangle
#

Hello @gentle kestrel What Python template have you chosen?

#

I was able to reproduce the same issue.

#

@gentle kestrel Thank you for the report, we are currently aware of this issue and we are working on it.

next galleon
#

Hi @gentle kestrel , this is a package version incompatibility issue, sorry about that, as a hotfix you can specify in the requirements.txt explicitly the following:

apify == 1.1.1
apify-client == 1.3.0

We're gonna release a new version of SDK ASAP with strictly pinned versions of our packages, which are mutually compatible.

gentle kestrel
#

Great thank you, while developing i figured out that i dont need to use your service (service have open api lol) unfortunately but i really liked it, so i will for sure come back! Good job guys keep it going