Comments (9)
Thanks for your issue.
For the missing dependencies issue, I've pushed a fix to add the required dependencies. In commit 0b43eba
Note: only puma
is required as dead_end
is only used for better error message I guess.
from chroma-db-ui.
And I'm not sure what happens for the syntax error. Did you change any code in views/index.erb
file?
I tried with the same versions as in your error log, but it works:
== Sinatra (v3.1.0) has taken the stage on 4567 for development with backup from Puma
Puma starting in single mode...
* Puma version: 6.3.0 (ruby 3.2.2-p53) ("Mugi No Toki Itaru")
* Min threads: 0
* Max threads: 5
* Environment: development
* PID: 52425
* Listening on http://127.0.0.1:4567
* Listening on http://[::1]:4567
Use Ctrl-C to stop
127.0.0.1 - - [24/Aug/2023:14:01:02 +0800] "GET / HTTP/1.1" 200 660 0.0593
from chroma-db-ui.
Note: only puma is required as dead_end is only used for better error message I guess.
Yes, makes sense. I added dead_end
based on my GSearch in hope of getting better error to resolve the issue.
And I'm not sure what happens for the syntax error. Did you change any code in views/index.erb file?
I haven't made any change to the views/index.erb
file. Infact other than Gemfile
, i haven't made any changes:
To confirm, my latest git details are:
$ pwd
..../chroma-db-ui
$ git log
commit 4c063c0d5267fb1c53956fa92857f6055fddc345 (HEAD -> main, origin/main, origin/HEAD)
Author: FENG Zhichao <[email protected]>
Date: Sun Aug 6 09:07:26 2023 +0800
A little bit of styling.
commit 3b29403f64d3de4403657f12b4b96679c8f9b858
Author: Feng Zhichao <[email protected]>
Date: Sun Aug 6 09:07:13 2023 +0800
Replace with new screenshot
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: Gemfile
modified: Gemfile.lock
no changes added to commit (use "git add" and/or "git commit -a")
git status views/index.erb
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
One more point is that I have my chromaDB running on a different node and is accessible. Thus I have imported the ENV VAR as:
export CHROMA_URL=http://<PrivateIP>:8000
Accessibly checks for ChromaDB :
Heartbeat is coming and I have used same Chroma DB with my locally running Python code and that works.
from chroma-db-ui.
The only difference I see is:
What you posted:
* Puma version: 6.3.0 (ruby 3.2.2-p53) ("Mugi No Toki Itaru")
What I have:
* Puma version: 6.3.1 (ruby 3.2.2-p53) ("Mugi No Toki Itaru")
Puma version is different. Can that be the issue ?
from chroma-db-ui.
Confirming Puma version may not be the issue, as I tried with 6.3.0 and still the same issue.
My Ruby version is:
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin20]
Whats the one that you are using ?
from chroma-db-ui.
I am running the same Ruby:
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
Are familiar with erb? Could you please change the index.erb to a very simple template to see if it works. like:
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Chroma DB UI</title>
</head>
<body>
<%- if true %>
<%= "hello world" %>
<%- end %>
</body>
</html>
from chroma-db-ui.
@flanker
Used above index.erb. That too gives issue:
Line No: .../chroma-db-ui/views/index.erb:9
ruby app.rb
== Sinatra (v3.1.0) has taken the stage on 4567 for development with backup from Puma
Puma starting in single mode...
* Puma version: 6.3.0 (ruby 3.2.2-p53) ("Mugi No Toki Itaru")
* Min threads: 0
* Max threads: 5
* Environment: development
* PID: 46097
* Listening on http://127.0.0.1:4567
* Listening on http://[::1]:4567
Use Ctrl-C to stop
2023-08-24 01:16:04 - SyntaxError - .../chroma-db-ui/views/index.erb:9: syntax error, unexpected `end'
; - end
^~~
:
/usr/local/lib/ruby/gems/3.2.0/gems/tilt-2.2.0/lib/tilt/template.rb:371:in `class_eval'
/usr/local/lib/ruby/gems/3.2.0/gems/tilt-2.2.0/lib/tilt/template.rb:371:in `eval_compiled_method'
/usr/local/lib/ruby/gems/3.2.0/gems/tilt-2.2.0/lib/tilt/template.rb:366:in `bind_compiled_method'
Further, checking online for syntaz validation for erb file, I see this:
This also point to line no. 9
https://extendsclass.com/ruby-tester.html
I am running it on MacOS.
from chroma-db-ui.
I did reproduce the issue. Looks like the following code is not standard ERB syntax:
<%- if true %>
<%= "hello world" %>
<%- end %>
It should be: (Remove the -
symbols)
<% if true %>
<%= "hello world" %>
<% end %>
It worked on my machine I think that was because I had some other gems (haven't found which one).
anyway, I've pushed a new commit (23d79cf). You can have a try.
from chroma-db-ui.
@flanker Confirming that with the latest pull (above change), UI came up just fine and shows the embedding.
Thanks for the quick and prompt fix. Much appreciated!
from chroma-db-ui.
Related Issues (1)
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 chroma-db-ui.