Comments (6)
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.
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
from gradio.
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.
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.
Ok thanks @FlyingCarlos - cc @pngwn in case you have ideas
from gradio.
@FlyingCarlos - can you use WSL in the meantime? It should work there
from gradio.
Related Issues (20)
- Gradio-lite v4.38.1 fails to import PydanticV2 HOT 1
- ValueError: source code string cannot contain null bytes HOT 4
- Add the ability to switch between waveform display and the standard audio player. HOT 1
- Incorrect LaTeX formula display in gr.chatbot and gr.ChatInterface HOT 2
- Unable to Build Website Locally and Outdated Contributing Guide HOT 3
- gradio cc dev fails for component with a space in the directory
- Ability to move tabs HOT 1
- Remove use of emojis 👻 HOT 2
- Redesign tabs
- Improve drag and drop area UX
- Refresh button designs
- Dataframe refresh HOT 3
- Better data capture story? HOT 3
- Gradio Demo and FastAPI Docs are executed simultaneously despite having the queue set up. HOT 1
- gr.DateTime documentation issue <- duplicated TextBox, not DateTime. HOT 3
- Gradio Chatbot Doesn't Have Outputs HOT 3
- SSR
- Markdown latex bmatrix wrapped error
- MultimodalTextbox - file_types seems not to be working? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradio.