question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing doccano from source

See original GitHub issue

How to reproduce the problem

Hi i got same error as #138 . I run the following commands inside frontend/ folder but when I tried to run those commands inside app/server/static/ it’s not working. npm run build or npm start

And in the django server it’s showing the error

OSError at /
Error reading /home/sharmila/new_doccano/doccano/app/server/static/webpack-stats.json. Are you sure webpack has generated the file and the path is correct?

Your Environment

  • Operating System:18.04
  • Python Version Used:3.7
  • When you install doccano: one mouth before
  • How did you install doccano (Heroku button etc): git clone + docker-compose

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
sivaprakash123commented, Mar 12, 2020

Hey,

I missed that part. You need to copy the bundle folder as well. Not sure why the bundle is not generated as well.

docker cp 0877bd5ff882:/doccano/app/server/static/bundle bundle

Now copy the bundle folder under doccano/app/server/static/

Thanks, Sivaprakash R

Get Outlook for iOShttps://aka.ms/o0ukef


From: Sharmila Polamuri notifications@github.com Sent: Thursday, March 12, 2020 11:42 AM To: doccano/doccano Cc: Sivaprakash Ramasamy; Comment Subject: Re: [doccano/doccano] Installing doccano from source (#608)

I run those commands

docker run -d --name doccano -p 80:8000 chakkiworks/doccano docker exec doccano tools/create-admin.sh “admin” “email” “password” docker cp doccano:/doccano/app/server/static/webpack-stats.json .

and then copy webpack-stats.json file to my own directory and then open app folder and run below python manage.py runserver that gave frontend page but when i open any thing like trydemo and after logging projects that gives empty like below image

i found one thing in webpack-stats.json file , in webpack-stats.json file path mentioned as “path”:“/doccano/app/server/static/bundle/projects.js” i searched for bundle folder in side static folder but there is no bundle folder . But what files are mentioned in side webpack-stats.json file like /bundle/projects.js or /bundle/user.js all those files are available in /static/pages/ folder . I changed path variable value like “path”:“/doccano/app/server/static/pages/projects.js”

but frontend didn’t changed.

<script type="text/javascript" src="/static/bundle/projects.js"></script>

Please suggest me , how to fix this problem ?

[Screenshot (1)]https://user-images.githubusercontent.com/28034607/76491257-4c192180-6453-11ea-939e-4e940baaa1de.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/doccano/doccano/issues/608#issuecomment-598023981, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF3ID245SUD67JVPRFQRJMDRHB4NJANCNFSM4LFRU3YA.

3reactions
sivaprakash123commented, Mar 11, 2020

The webpack-stats.json is supposed to be in the repository. But it is not there. I fixed by running doccano in docker and copied it to my location. Follow these steps and check if its working for you docker run -d --name doccano -p 80:8000 chakkiworks/doccano docker exec doccano tools/create-admin.sh “admin” “email” “password” [This is not required, you can use if you want to continue using docker] Copy the file from docker container to your local docker cp doccano:/doccano/app/server/static/webpack-stats.json .

Now copy the webpack-stats.json to your server location <ROOT_PATH>/doccano/app/server/static

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install and upgrade doccano
Install with Docker Compose; Install from source ... System requirements. You can install doccano on a Linux, Windows, or macOS machine running Python...
Read more >
doccano/doccano: Open source annotation tool for ... - GitHub
doccano is an open source text annotation tool for humans. It provides annotation features for text classification, sequence labeling and sequence to sequence ......
Read more >
doccano - doccano
doccano is an open source annotation tools for machine learning practitioner.
Read more >
Doccano - :: Anaconda.org
Open source text annotation tool for machine learning practitioner. copied from cf-staging / doccano ... conda install -c conda-forge doccano ...
Read more >
doccano: Open source text annotation tool for machine ... - Gitee
Install doccano · Option 1: Pull the production Docker image · Option 2: Setup Python environment · Option 3: Pull the development Docker-Compose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found