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

Add PyLadies Praha podzim 2023 #737

Merged
merged 4 commits into from
Sep 4, 2023

Conversation

brabemi
Copy link
Contributor

@brabemi brabemi commented Sep 1, 2023

mi-pyt seems to be broken and build is failing on it, this line seems to be culprit https://github.com/pyvec/naucse-python/blob/compiled/mi-pyt/install/windows.html#L21 since it is the only occurrence that is pointing to problematic slug.

Error with some additional print statements added:

<Course course_slug=courses/mi-pyt>
beginners/venv-setup
{'beginners/venv-setup'}
{'advanced/generators': <Lesson course_slug=courses/mi-pyt lesson_slug=advanced/generators>, 'beginners/cmdline': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/cmdline>, 'beginners/install': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/install>, 'beginners/testing': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/testing>, 'fast-track/http': <Lesson course_slug=courses/mi-pyt lesson_slug=fast-track/http>, 'fast-track/install': <Lesson course_slug=courses/mi-pyt lesson_slug=fast-track/install>, 'git/git-collaboration-2in1': <Lesson course_slug=courses/mi-pyt lesson_slug=git/git-collaboration-2in1>, 'intro/async': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/async>, 'intro/click': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/click>, 'intro/cython': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/cython>, 'intro/deployment': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/deployment>, 'intro/distribution': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/distribution>, 'intro/docs': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/docs>, 'intro/flask': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/flask>, 'intro/magic': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/magic>, 'intro/micropython': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/micropython>, 'intro/notebook': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/notebook>, 'intro/numpy': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/numpy>, 'intro/pandas': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/pandas>, 'intro/pyqt': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/pyqt>, 'intro/requests': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/requests>, 'intro/testing': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/testing>}
{'intro/docs': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/docs>, 'intro/flask': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/flask>, 'intro/async': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/async>, 'intro/notebook': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/notebook>, 'fast-track/install': <Lesson course_slug=courses/mi-pyt lesson_slug=fast-track/install>, 'intro/magic': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/magic>, 'intro/micropython': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/micropython>, 'intro/distribution': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/distribution>, 'advanced/generators': <Lesson course_slug=courses/mi-pyt lesson_slug=advanced/generators>, 'intro/requests': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/requests>, 'intro/cython': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/cython>, 'intro/numpy': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/numpy>, 'intro/pyqt': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/pyqt>, 'intro/click': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/click>, 'intro/deployment': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/deployment>, 'intro/pandas': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/pandas>, 'intro/testing': <Lesson course_slug=courses/mi-pyt lesson_slug=intro/testing>, 'beginners/install': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/install>, 'beginners/testing': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/testing>, 'beginners/cmdline': <Lesson course_slug=courses/mi-pyt lesson_slug=beginners/cmdline>, 'fast-track/http': <Lesson course_slug=courses/mi-pyt lesson_slug=fast-track/http>}
ERROR:naucse:Exception on /static/css/body.css [GET]
Traceback (most recent call last):
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/models.py", line 857, in load_lessons
    lesson = new_lessons[slug]
KeyError: 'beginners/venv-setup'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask/app.py", line 1514, in full_dispatch_request
    rv = self.preprocess_request()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask/app.py", line 1857, in preprocess_request
    rv = self.ensure_sync(before_func)()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/views.py", line 51, in _get_model
    g.model.freeze()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/models.py", line 1100, in freeze
    course.freeze()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/models.py", line 896, in freeze
    self.load_all_lessons()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/models.py", line 878, in load_all_lessons
    self.load_lessons(self._requested_lessons)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/models.py", line 860, in load_lessons
    raise ValueError(f'{slug} missing from rendered lessons')
ValueError: beginners/venv-setup missing from rendered lessons
Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/__main__.py", line 3, in <module>
    main()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/naucse/cli.py", line 7, in main
    elsa.cli(app, base_url='https://naucse.python.cz')
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/elsa/_cli.py", line 174, in cli
    return command()
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/elsa/_cli.py", line 125, in freeze
    freeze_app(app, freezer, path, base_url, verbose=verbose)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/elsa/_cli.py", line 56, in freeze_app
    for page in freezer.freeze_yield():
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask_frozen/__init__.py", line 189, in freeze_yield
    new_filename = self._build_one(url, last_modified)
  File "/home/brabemi/Documents/projekty/naucse.python.cz/venv/lib64/python3.9/site-packages/flask_frozen/__init__.py", line 337, in _build_one
    raise ValueError('Unexpected status %r on URL %s' \
ValueError: Unexpected status '500 INTERNAL SERVER ERROR' on URL /static/css/body.css

@brabemi
Copy link
Contributor Author

brabemi commented Sep 1, 2023

@encukou any idea how to fix the issue with mi-pyt?

@encukou
Copy link
Member

encukou commented Sep 4, 2023

MI-PYT fixed. Sorry for the trouble!

@encukou encukou merged commit 0a0983f into pyvec:master Sep 4, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants