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

Missing setup.py file #165

Open
haimat opened this issue Oct 31, 2024 · 5 comments
Open

Missing setup.py file #165

haimat opened this issue Oct 31, 2024 · 5 comments

Comments

@haimat
Copy link

haimat commented Oct 31, 2024

I tried to install GOT-OCR2.0 as described on the GitHub page:

$ git clone https://github.com/Ucas-HaoranWei/GOT-OCR2.0.git
cd 'the GOT folder'
Cloning into 'GOT-OCR2.0'...
remote: Enumerating objects: 272, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 272 (delta 98), reused 64 (delta 57), pack-reused 159 (from 1)
Receiving objects: 100% (272/272), 8.98 MiB | 23.33 MiB/s, done.
Resolving deltas: 100% (132/132), done.
-bash: cd: the GOT folder: No such file or directory
$ cd GOT-OCR2.0/
$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///tmp/GOT-OCR2.0/GOT-OCR-2.0-master
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
ERROR: Project file:///tmp/GOT-OCR2.0/GOT-OCR-2.0-master has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

Any ideas what I am doing wrong?

@weishen
Copy link

weishen commented Nov 21, 2024

What is your python version?

@haimat
Copy link
Author

haimat commented Nov 21, 2024

$ python --version
Python 3.10.12

@Gypsophila123
Copy link

Same

1 similar comment
@baikeh
Copy link

baikeh commented Dec 1, 2024

Same

@baikeh
Copy link

baikeh commented Dec 3, 2024

the guide missed one step:
cd GOT-OCR-2.0-master

so the correct steps are:

git clone https://github.com/Ucas-HaoranWei/GOT-OCR2.0.git
cd GOT-OCR2.0/
cd GOT-OCR-2.0-master
pip install -e .

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

4 participants