Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storyteller not running on python 3.10 or 3.9 #25

Open
Echsecutor opened this issue Jan 11, 2025 · 0 comments
Open

storyteller not running on python 3.10 or 3.9 #25

Echsecutor opened this issue Jan 11, 2025 · 0 comments

Comments

@Echsecutor
Copy link

Echsecutor commented Jan 11, 2025

Describe the bug
Following the howto in the readme, storyteller does not run but throws an error.

To Reproduce
https://github.com/jaketae/storyteller?tab=readme-ov-file#quickstart

$ python --version
Python 3.10.16
$ pip install storyteller-core
...

$ storyteller

Traceback (most recent call last):
  File "...storyteller/venv/bin/storyteller", line 5, in <module>
    from storyteller.cli import main
  File "...storyteller/src/storyteller/__init__.py", line 4, in <module>
    from storyteller.model import StoryTeller
  File "...storyteller/src/storyteller/model.py", line 6, in <module>
    from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
  File "...storyteller/venv/lib/python3.10/site-packages/diffusers/__init__.py", line 46, in <module>
    from .pipeline_utils import DiffusionPipeline
  File "...storyteller/venv/lib/python3.10/site-packages/diffusers/pipeline_utils.py", line 35, in <module>
    from .dynamic_modules_utils import get_class_from_dynamic_module
  File "...storyteller/venv/lib/python3.10/site-packages/diffusers/dynamic_modules_utils.py", line 29, in <module>
    from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (...storyteller/venv/lib/python3.10/site-packages/huggingface_hub/__init__.py)

Different error in a python 3.9 environment:

$ python --version
Python 3.9.21

$ pip install storyteller-core
...

$ storyteller 
Traceback (most recent call last):
  File "...storyteller/venv/bin/storyteller", line 5, in <module>
    from storyteller.cli import main
  File "...storyteller/venv/lib/python3.9/site-packages/storyteller/__init__.py", line 3, in <module>
    from storyteller.config import StoryTellerConfig
  File "...storyteller/venv/lib/python3.9/site-packages/storyteller/config.py", line 46, in <module>
    class StoryTellerConfigArgparseHelpText:
  File "...storyteller/venv/lib/python3.9/site-packages/storyteller/config.py", line 53, in StoryTellerConfigArgparseHelpText
    _get_dataclass_var_name_from_f_string_eq(
TypeError: 'staticmethod' object is not callable

Expected behavior
Programm starts

Desktop (please complete the following information):

Ubuntu 24.04.1 LTS

@Echsecutor Echsecutor changed the title storyteller not running on python 3.10 storyteller not running on python 3.10 or 3.9 Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant