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

stlite Desktop Errors: no such file or directory "stlite-manifest.json" #958

Closed
slowflower opened this issue Jun 8, 2024 · 1 comment
Closed

Comments

@slowflower
Copy link

Hi,

when doing the stlite Desktop tutorial to convert my Streamlit application to a desktop application I am facing an error.
Essentially, npm dump does not create a stlite-manifest.json file:

(node:199364) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'D:\python_projects\streamlit_app\build\stlite-manifest.json'
(Use electron --trace-warnings ... to show where the warning was created)
(node:199364) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

i am using following package.json, tried also with version 0.57.0 of @stlite/desktop:

{
  "name": "streamlit_app",
  "version": "0.1.0",
  "main": "./build/electron/main.js",
  "scripts": {
    "dump": "dump-stlite-desktop-artifacts",
    "serve": "cross-env NODE_ENV=production electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder",
    "postinstall": "electron-builder install-app-deps"
  },
  "build": {
    "files": [
      "build/**/*"
    ],
    "directories": {
      "buildResources": "stlite"
    }
  },
  "devDependencies": {
    "@stlite/desktop": "^0.58.0",
    "cross-env": "^7.0.3",
    "electron": "30.0.8",
    "electron-builder": "^24.13.3"
  },
  "stlite": {
    "desktop": {
      "files": [
        "app.py"
      ],
      "entrypoint": "app.py",
      "dependencies": [
        "yfinance",
        "numpy",
        "pandas",
        "matplotlib",
        "streamlit-option-menu",
        "forex_python"
      ],
      "requirementsTxtFiles": [
        "requirements.txt"
      ]
    }
  }
}
@whitphx
Copy link
Owner

whitphx commented Jun 10, 2024

@slowflower Hi, thank you for the report, but unfortunately I couldn't reproduce it.
Can you provide a whole repo and env info, and the log from npm run dump?

@whitphx whitphx closed this as completed Oct 9, 2024
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