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

How to run repo on a mac with local folder? #516

Closed
Korayem opened this issue May 20, 2024 · 5 comments
Closed

How to run repo on a mac with local folder? #516

Korayem opened this issue May 20, 2024 · 5 comments

Comments

@Korayem
Copy link

Korayem commented May 20, 2024

I am having trouble due to setup not complete so I did the following

nltk

Download nltk files from https://www.nltk.org/nltk_data/
Punkt and extract to: Users › korayem > nItk_data › tokenizers > punkt
averaged_perceptron_tagger and extract to: Users › <username> > nitk_data › taggers > averaged_perceptron_tagger

Update requirements.txt

Many packages where not there. Add the following:

networkx
python-pptx
xlsxwriter
pillow
pandas
openpyxl

I am not sure what else is missing

Thought of sharing in case anyone else is stuck like I was

@Korayem Korayem changed the title updates to how to run repo on a mac with local folder How to run repo on a mac with local folder? May 20, 2024
@assafelovic
Copy link
Owner

Hey @Korayem can you share the error logs?

@Korayem
Copy link
Author

Korayem commented May 21, 2024

Hey @assafelovic
It's was all trial an error night yesterday :)

I took a fresh git clone, added .env then started to get error loading networkx
Added that to requirements, run again, get an error loading python-pptx
and so on...

As for NLTK, I got

Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource

import nltk
>>> nltk.download('punkt')
[nltk_data] Error loading punkt: <urlopen error [SSL:
[nltk_data]     CERTIFICATE_VERIFY_FAILED] certificate verify failed:
[nltk_data]     unable to get local issuer certificate (_ssl.c:1000)>

So after digging around, I found this answer that gave me a hint on how to structure the files

Btw, I still can't get it to work with local files. Last thing it asked for LibreOffice. I installed it. Then got another error. will share when I am back home tonight.

@ElishaKay
Copy link
Contributor

ElishaKay commented May 21, 2024

Welcome @Korayem ,

Perhaps a smoother path for you would be to run it through Docker Desktop.

Step 1: Install Docker Desktop

Step 2: Walk through this Tutorial

@Korayem
Copy link
Author

Korayem commented May 21, 2024

Yeah, forgot to mention docker. I want to use it with my local files as mentioned, so I tried the new File Sharing >Virtual File shares feature in docker. I added the path to my local mac folder in env users/<username>/documents/folder. Also added DOC_PATHtodocker-compose.yml` to carry the value into docker container.

I got an error
PermissionError: [Errno 13] Permission denied: '/Users'

I still have to research how to fix this issue in Docker

@ElishaKay
Copy link
Contributor

ElishaKay commented May 22, 2024

Almost there @Korayem
The path to your documents should be somewhere within the code of the project
That will enable you to skip the complexity of the Docker file sharing feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants