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

Galaxy timelapse frame export fails in windows build #98

Open
eliasdoehne opened this issue Jan 6, 2023 · 1 comment
Open

Galaxy timelapse frame export fails in windows build #98

eliasdoehne opened this issue Jan 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@eliasdoehne
Copy link
Owner

eliasdoehne commented Jan 6, 2023

Using the windows build from this workflow run https://github.com/eliasdoehne/stellaris-dashboard/actions/runs/3848208751 with unitednationsofearth7_1529854637.zip
gives this exception

MainProcess - 2023-01-06 20:00:28,583 - stellarisdashboard.dashboard_app.timelapse_exporter - INFO - Exporting timelapse frames to C:\Users\...\stellarisdashboard-windows-latest\output\galaxy-timelapse\unitednationsofearth7_1529854637-2023-01-06-200028
  0%|                                                                                            | 0/7 [00:00<?, ?it/s]
MainProcess - 2023-01-06 20:00:28,986 - stellarisdashboard.dashboard_app - ERROR - Exception on /timeline/_dash-update-component [POST]
Traceback (most recent call last):
  File "flask\app.py", line 2525, in wsgi_app
  File "flask\app.py", line 1822, in full_dispatch_request
  File "flask\app.py", line 1820, in full_dispatch_request
  File "flask\app.py", line 1796, in dispatch_request
  File "dash\dash.py", line 1274, in dispatch
    ctx.run(
  File "dash\_callback.py", line 440, in add_context
    output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
  File "stellarisdashboard\dashboard_app\graph_ledger.py", line 309, in trigger_timeline_export
  File "stellarisdashboard\dashboard_app\timelapse_exporter.py", line 71, in create_timelapse
  File "PIL\Image.py", line 2431, in save
  File "PIL\PngImagePlugin.py", line 1396, in _save
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

@eliasdoehne eliasdoehne added the bug Something isn't working label Jan 6, 2023
@eliasdoehne
Copy link
Owner Author

actually I get the same error with that db when running from the current master directly

Traceback (most recent call last):
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\flask\app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\flask\app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\dash\dash.py", line 1274, in dispatch
    ctx.run(
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\dash\_callback.py", line 440, in add_context
    output_value = func(*func_args, **func_kwargs)  # %% callback invoked %%
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\stellarisdashboard\dashboard_app\graph_ledger.py", line 309, in trigger_timeline_export
    te.create_timelapse(
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\stellarisdashboard\dashboard_app\timelapse_exporter.py", line 71, in create_timelapse
    frame.save(
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\PIL\Image.py", line 2431, in save
    save_handler(self, fp, filename)
  File "C:\Users\elias\PycharmProjects\stellaris-dashboard\env\lib\site-packages\PIL\PngImagePlugin.py", line 1396, in _save
    o32(int(dpi[0] / 0.0254 + 0.5)),
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

so it's probably not related to the build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant