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

Docker fails to build #289

Closed
oralian opened this issue Oct 26, 2022 · 16 comments
Closed

Docker fails to build #289

oralian opened this issue Oct 26, 2022 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@oralian
Copy link

oralian commented Oct 26, 2022

Describe the bug
The Docker image fails to build.

$ docker build -t make_sense docker/
Sending build context to Docker daemon  2.048kB
Step 1/5 : FROM node:14.18.0
 ---> 8cf18d365a37
Step 2/5 : RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> d1f3b0fb94db
Step 3/5 : RUN mkdir /workspace &&   cd /workspace &&   git clone https://github.com/SkalskiP/make-sense.git &&   cd make-sense &&   npm install
 ---> Running in c3a61b2da2b8
Cloning into 'make-sense'...
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    linux
npm ERR! notsup Valid Arch:  arm64
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-10-26T09_35_26_519Z-debug.log
The command '/bin/sh -c mkdir /workspace &&   cd /workspace &&   git clone https://github.com/SkalskiP/make-sense.git &&   cd make-sense &&   npm install' returned a non-zero code: 1

To Reproduce
docker build -t make_sense docker/

Expected behavior
It builds without any errors 😄

Desktop (please complete the following information):

  • OS: Linux
@github-actions
Copy link

👋 Hello @aurelien-m, thank you for your interest in make-sense - free to use online tool for labelling photos! 🏷️

🐞 Bug reports

If you noticed that make-sense is not working properly, please provide us with as much information as possible. To make your life easier, we have prepared a bug report template containing all the relevant details. We know, we ask for a lot... However, please believe that knowing all that extra information - like the type of browser you use or the version of node you have installed - really helps us to solve your problems faster and more efficiently. 😉

💬 Get in touch

If you've been trying to contact us but for some reason we haven't responded to your issue yet, don't hesitate to get back to us on Gitter or Twitter.

💻 Local setup

# clone repository
git clone https://github.com/SkalskiP/make-sense.git

# navigate to main dir
cd make-sense

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm start

To ensure proper functionality of the application locally, an npm 6.x.x and node.js v12.x.x versions are required. More information about this problem is available in the #16 issue.

@oralian
Copy link
Author

oralian commented Oct 26, 2022

Building works when updating the Dockerfile with FROM node:16.18.0. However, I get "Unable to connect" in Firefox when connecting to IP:3000.

I have also tried:

$ npm install 
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@vitejs/[email protected]',
npm WARN EBADENGINE   required: { node: '>=14.18.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^14.18.0 || >=16.0.0' },
npm WARN EBADENGINE   current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }

up to date, audited 753 packages in 2s

107 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
$ npm start

> [email protected] start
> vite

file:https:///home/aurelien/Projects/GitHub/make-sense/node_modules/vite/bin/vite.js:7
    await import('source-map-support').then((r) => r.default.install())
    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

I have the following versions:

$ npm -v
8.5.1
$ node -v
v12.22.9

@SkalskiP
Copy link
Owner

Hi, @aurelien-m 👋 It looks like our Dockerfile and instructions are heavily outdated. 😱 Let me quickly fix that.

@SkalskiP SkalskiP self-assigned this Oct 26, 2022
@SkalskiP SkalskiP added the bug Something isn't working label Oct 26, 2022
@SkalskiP SkalskiP added this to To do in make-sense beta via automation Oct 26, 2022
@SkalskiP
Copy link
Owner

@aurelien-m sorry it took me so long. My changes are right now in the develop branch. Please try to test if it works for you. Make sure you follow the updated instructions in README.md.

@oralian
Copy link
Author

oralian commented Oct 26, 2022

@SkalskiP Thanks! No worries, it was not urgent for me, it works perfectly now.

I might have missed it but it doesn't look like Make Sense has an API or SDK of some sort? It would be nice to have one to be able to create projects and pre-annotate images in our custom pipelines.

I also have a suggestion, it's a bit slow for our (quite strange) use case. We're labeling very tiny objects (~ 50 px in size) in very big images (5k images). So we need to be able to zoom in more than what's possible and zoom in where the cursor is pointing. The scrolling is a bit slow when I tried it, we can gain more time and have less headaches if it's smooth 😄

@oralian oralian closed this as completed Oct 26, 2022
make-sense beta automation moved this from To do to Done Oct 26, 2022
@SkalskiP
Copy link
Owner

it works perfectly now

@aurelien-m I'm glad that the problem was solved relatively quickly!

I might have missed it, but it doesn't look like Make Sense has an API or SDK of some sort. It would be nice to have one to be able to create projects and pre-annotate images in our custom pipelines.

You can use YOLOv5 models to annotate images in Make Sense. Would that be helpful?

So we need to be able to zoom in more than what's possible and zoom in where the cursor is pointing.

We can increase max zoom if you want to.

The scrolling is a bit slow when I tried it

That is weird. Could you share with me an image example so that I could test it out on my machine?

@oralian
Copy link
Author

oralian commented Oct 27, 2022

I can't share any of our images, but this one is a pretty good example (6000 x 4000 pixels) of what we have:

pexels-irina-iriser-1379636

Here's a comparison between Make Sense and Label Studio (even though the best would be to try it out yourself):

Screencast.from.10-27-2022.10.50.53.AM.webm
Screencast.from.10-27-2022.10.49.32.AM.webm

The experience is much smoother in Label Studio, and the directed scrolling with the mouse is a really great feature! Please let me know if you have the same experience.

Regarding YOLOv5, it could help us, but we would need to be able to use our own model trained on our data. We have data pipelines that process incoming data and automatically build annotation projects from them. Meaning that you can log into the app, and quickly begin annotating and verifying the automatic annotations. That's why I'm asking.

@SkalskiP
Copy link
Owner

The experience is much smoother in Label Studio, and the directed scrolling with the mouse is a really great feature! Please let me know if you have the same experience.

This part of the editor was written quite a long time ago, and indeed it leaves much to be desired. For a long time I have been thinking of rewriting this functionality, but so far the community rarely reported problems, so I focused on other tasks. One thing in particular that annoys me is that the zoom does not take place in the direction of the cursor, but rather towards the center of the photo. Well, and of course, I can see the lag, which makes it difficult to work with the image at high zoom. 😔

Could you file a bug report on this? It would help me to keep track of this topic. Well, and hopefully I can find time to work on it.

Regarding YOLOv5, it could help us, but we would need to be able to use our own model trained on our data.

You can upload your own pre train model. You just drag and drop model files into editor and use it to infer on images. Taka a look at this video for more details:

1-10-0-alpha.mov

@oralian
Copy link
Author

oralian commented Oct 28, 2022

@SkalskiP Thanks for the video explanation and taking the time to reply! I'll open an issue today. I've also got a long 4-days week-end coming, I might take a look at the code 😄

@SkalskiP
Copy link
Owner

@aurelien-m sure! I'm always excited when people try to use makesense.ai. :D I know it is not perfect, but I'm surely trying to make it as good as possible.

@domagojhack
Copy link

Hi, I am trying to install make-sense locally however after running npm start I am getting the following error.

$ npm start

> [email protected] start
> vite --port 3000

file:https:///home/domagoj/github/make-sense/node_modules/vite/bin/vite.js:7
    await import('source-map-support').then((r) => r.default.install())
    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

I see that @aurelien-m had similar issues but it seems it shouldn't happen again.

My npm is 8.5.1 and my nodejs version is v12.22.9.

@SkalskiP
Copy link
Owner

@domagojhack, is that happening in our docker container?

@domagojhack
Copy link

no docker installation instructions are not working for me at all. I know this is a docker related issue but #289 (comment) suggested to install it using npm, and I am not keen about using docker on my setup.

@SkalskiP
Copy link
Owner

What's the setup?

@domagojhack
Copy link

Freshlly installed Ubuntu 22.04 LTS. All requirements are already installed.

@SkalskiP
Copy link
Owner

no docker installation instructions are not working for me at all.

Can I ask why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants