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 template.c file #48

Open
activedecay opened this issue Oct 26, 2022 · 4 comments
Open

missing template.c file #48

activedecay opened this issue Oct 26, 2022 · 4 comments

Comments

@activedecay
Copy link

ls ./.local/lib/python3.10/site-packages/docopt_c/
docopt_c.py docopt.py init.py main.py pycache

python3 -m docopt_c -o lol haha
[Errno 2] No such file or directory: '/home/me/.local/lib/python3.10/site-packages/docopt_c/_data/template.c'

@activedecay
Copy link
Author

me@beastmode:~$ locate docopt_c
/home/me/.local/lib/python3.10/site-packages/docopt_c
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info
/home/me/.local/lib/python3.10/site-packages/docopt_c/init.py
/home/me/.local/lib/python3.10/site-packages/docopt_c/main.py
/home/me/.local/lib/python3.10/site-packages/docopt_c/pycache
/home/me/.local/lib/python3.10/site-packages/docopt_c/docopt.py
/home/me/.local/lib/python3.10/site-packages/docopt_c/docopt_c.py
/home/me/.local/lib/python3.10/site-packages/docopt_c/pycache/init.cpython-310.pyc
/home/me/.local/lib/python3.10/site-packages/docopt_c/pycache/main.cpython-310.pyc
/home/me/.local/lib/python3.10/site-packages/docopt_c/pycache/docopt.cpython-310.pyc
/home/me/.local/lib/python3.10/site-packages/docopt_c/pycache/docopt_c.cpython-310.pyc
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/INSTALLER
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/LICENSE-MIT
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/METADATA
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/RECORD
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/REQUESTED
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/WHEEL
/home/me/.local/lib/python3.10/site-packages/docopt_c-0.0.3.dist-info/top_level.txt
/home/me/.local/lib/python3.9/site-packages/docopt_c
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/docopt.c
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/example.c
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/example.docopt
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/log.h
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/template.c
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/template.h
/home/me/.local/lib/python3.9/site-packages/docopt_c/_data/test_docopt.c
/usr/local/lib/python3.10/dist-packages/docopt_c
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info
/usr/local/lib/python3.10/dist-packages/docopt_c/init.py
/usr/local/lib/python3.10/dist-packages/docopt_c/main.py
/usr/local/lib/python3.10/dist-packages/docopt_c/pycache
/usr/local/lib/python3.10/dist-packages/docopt_c/docopt.py
/usr/local/lib/python3.10/dist-packages/docopt_c/docopt_c.py
/usr/local/lib/python3.10/dist-packages/docopt_c/pycache/init.cpython-310.pyc
/usr/local/lib/python3.10/dist-packages/docopt_c/pycache/main.cpython-310.pyc
/usr/local/lib/python3.10/dist-packages/docopt_c/pycache/docopt.cpython-310.pyc
/usr/local/lib/python3.10/dist-packages/docopt_c/pycache/docopt_c.cpython-310.pyc
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/INSTALLER
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/LICENSE-MIT
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/METADATA
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/RECORD
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/REQUESTED
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/WHEEL
/usr/local/lib/python3.10/dist-packages/docopt_c-0.0.3.dist-info/top_level.txt
/usr/local/lib/python3.9/site-packages/docopt_c
/usr/local/lib/python3.9/site-packages/docopt_c/_data
/usr/local/lib/python3.9/site-packages/docopt_c/_data/docopt.c
/usr/local/lib/python3.9/site-packages/docopt_c/_data/example.c
/usr/local/lib/python3.9/site-packages/docopt_c/_data/example.docopt
/usr/local/lib/python3.9/site-packages/docopt_c/_data/log.h
/usr/local/lib/python3.9/site-packages/docopt_c/_data/template.c
/usr/local/lib/python3.9/site-packages/docopt_c/_data/template.h
/usr/local/lib/python3.9/site-packages/docopt_c/_data/test_docopt.c

@activedecay
Copy link
Author

activedecay commented Oct 26, 2022

what in the world is going on? i don't have python3.9

I do have python3.10, but there are only docopt_c packages in 3.9

me@beastmode:~$ ll /usr/local/lib/python3.9/
total 12K
drwxr-xr-x 3 root root 4.0K Oct 26 17:24 ./
drwxr-xr-x 4 root root 4.0K Oct 26 17:24 ../
drwxr-xr-x 3 root root 4.0K Oct 26 17:24 site-packages/
me@beastmode:~$ ll /usr/local/lib/python3.9/site-packages/
total 12K
drwxr-xr-x 3 root root 4.0K Oct 26 17:24 ./
drwxr-xr-x 3 root root 4.0K Oct 26 17:24 ../
drwxr-xr-x 3 root root 4.0K Oct 26 17:24 docopt_c/

@activedecay
Copy link
Author

created a brand new venv and got the same behavior. it seems there's a hard-coded 3.9 string somewhere.

(venv) me@beastmode:~/ion/afirs$ pip install docopt_c
Collecting docopt_c
  Using cached docopt_c-0.0.3-py3-none-any.whl (24 kB)
Installing collected packages: docopt-c
Successfully installed docopt-c-0.0.3
WARNING: You are using pip version 21.3.1; however, version 22.3 is available.
You should consider upgrading via the '/home/me/ion/afirs/venv/bin/python -m pip install --upgrade pip' command.
(venv) me@beastmode:~/ion/afirs$ find . -name docopt_c
./venv/lib/python3.9/site-packages/docopt_c
./venv/lib/python3.10/site-packages/docopt_c

@activedecay
Copy link
Author

workaround mv ./python3.9/site-packages/docopt_c/_data/ ./python3.10/site-packages/docopt_c

works for me

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

1 participant