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

Build of the initial app failing due to dist_builder.py #143

Open
lasagnats opened this issue Feb 19, 2024 · 1 comment
Open

Build of the initial app failing due to dist_builder.py #143

lasagnats opened this issue Feb 19, 2024 · 1 comment

Comments

@lasagnats
Copy link

Currently, when attempting to build the auto-generated app, the following error is thrown (see the attached image)
image

Starfyre version: 0.21.0

Steps to reproduce it:

  1. Clean install v0.21.0 via pip
  2. Execute starfyre --create="starfyre", which generates a default app
  3. Without making any adjustments or changes to the generated code, navigate to the created folder and from it run python3 -m starfyre --build --path="."

The issue is related to the piece of code shown in the picture below.
For the autogenerated application, in dist_builder.py, line 144, the value of data["js_modules"] is ['is_even'].
But then, there is an attempt to retrieve a value from this list by a key of type string:
url = data["js_modules"][js_module] , where js_module value is 'is_even' on the first (and in this case - only) iteration of the loop.
Hence, the error - Indices of lists cannot be str.

image

It seems that toml.load() returns data in a different format than is expected.

line 137, data = toml.load(f)
image

@goSeeFuture
Copy link

back to v0.19.4 will ok

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

2 participants