Code Monkey home page Code Monkey logo

Comments (6)

freddyaboulton avatar freddyaboulton commented on July 30, 2024

Hi @FlyingCarlos ! It's likely that the gradio cc dev command can't find the AiEnv environment.

No custom components were found in D:\project\editablechatbot. It is likely that dev mode does not work properly. Please pass the --gradio-path
and --python-path CLI arguments so that gradio uses the right executables.

Can you please set the --gradio-path and --python-path arguments to the correct location (and verify that your custom component has been installed there beforehand please)

from gradio.

FlyingCarlos avatar FlyingCarlos commented on July 30, 2024

Thanks @freddyaboulton. I tried, and it seems to solve one problem, but then another one arises. The front server still failed to GET something.
the server log:

(AIenv)PS D:\project\editablechatbot> gradio cc dev --gradio-path D:\ProgramData\anaconda3\envs\AIenv\Scripts\gradio.exe --python-path D:\ProgramData\anaconda3\envs\AIenv\python.exe
♻ Launching demo\app.py in reload mode

Watching: 'D:\project\editablechatbot\demo' 'D:\project\editablechatbot'
'D:\project\editablechatbot\frontend',


Backend Server:  http://127.0.0.1:7861



Frontend Server (Go here): http://localhost:7862/

X [ERROR] Could not resolve "virtual:component-loader"



    frontend/node_modules/@gradio/utils/src/utils.ts:237:10:

      237 │       import("virtual:component-loader").then((module) => {

          ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~



  You can mark the path "virtual:component-loader" as external to exclude it from the bundle, which will remove this error and leave the
unresolved path in the bundle. You can also add ".catch()" here to handle this failure at run-time instead of bundle-time.



[2m20:05:26[22m [31m[1m[22m[39m [31merror while updating dependencies:

Error: Build failed with 1 error:

frontend/node_modules/@gradio/utils/src/utils.ts:237:10: ERROR: Could not resolve "virtual:component-loader"

    at failureErrorWithLog (D:\project\editablechatbot\frontend\node_modules\vite\node_modules\esbuild\lib\main.js:1472:15)

    at D:\project\editablechatbot\frontend\node_modules\vite\node_modules\esbuild\lib\main.js:945:25

    at D:\project\editablechatbot\frontend\node_modules\vite\node_modules\esbuild\lib\main.js:1353:9

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)[39m

gradio_bug_2

from gradio.

freddyaboulton avatar freddyaboulton commented on July 30, 2024

Hmm that should have been fixed. Can you please check what version of @gradio/preview got installed? (in frontend/package.json) It should be 0.10.1

from gradio.

FlyingCarlos avatar FlyingCarlos commented on July 30, 2024

Yes, it is "@gradio/preview": "0.10.1",

{
  "name": "gradio_editablechatbot",
  "version": "0.12.1",
  "description": "Gradio UI packages",
  "type": "module",
  "author": "",
  "license": "ISC",
  "private": false,
  "dependencies": {
    "@gradio/atoms": "0.7.6",
    "@gradio/client": "1.3.0",
    "@gradio/gallery": "0.11.2",
    "@gradio/icons": "0.6.0",
    "@gradio/markdown": "0.8.1",
    "@gradio/plot": "0.6.0",
    "@gradio/statustracker": "0.7.1",
    "@gradio/theme": "0.2.3",
    "@gradio/upload": "0.11.5",
    "@gradio/utils": "0.5.1",
    "@gradio/wasm": "0.11.0",
    "@types/dompurify": "^3.0.2",
    "@types/katex": "^0.16.0",
    "@types/prismjs": "1.26.4",
    "dequal": "^2.0.2"
  },
  "devDependencies": {
    "@gradio/audio": "0.12.2",
    "@gradio/image": "0.12.2",
    "@gradio/preview": "0.10.1",
    "@gradio/video": "0.9.2"
  },
  "main_changeset": true,
  "main": "./Index.svelte",
  "exports": {
    ".": "./Index.svelte",
    "./package.json": "./package.json"
  }
}

from gradio.

freddyaboulton avatar freddyaboulton commented on July 30, 2024

Ok thanks @FlyingCarlos - cc @pngwn in case you have ideas

from gradio.

freddyaboulton avatar freddyaboulton commented on July 30, 2024

@FlyingCarlos - can you use WSL in the meantime? It should work there

from gradio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.