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

ERROR: Could not find a version that satisfies the requirement anvil-stubs ... #6

Closed
nmvega opened this issue Jun 19, 2022 · 3 comments

Comments

@nmvega
Copy link

nmvega commented Jun 19, 2022

Hello Friends:

I followed the amoni Readme and performed the following steps. The exception at the bottom of this issue is being emitted.
I'll add some context first to set things up:

(pyvenv.d) nmvega@fedora$ pwd
/home/nmvega/DOCKER.d/ANVIL.AMONI.SANDBOX.d/ # AFTER: amoni init <thisDir>

(pyvenv.d) nmvega@fedora$ ls -la
drwxr-xr-x 9 nmvega nmvega 4096 Jun 18 15:01 .
drwxr-xr-x 3 nmvega nmvega 4096 Jun 18 14:53 ..
drwxr-xr-x 3 nmvega nmvega 4096 Jun 18 14:53 anvil-stubs
drwxr-xr-x 4 nmvega nmvega 4096 Jun 18 15:01 app
drwxr-xr-x 4 nmvega nmvega 4096 Jun 18 14:53 docker
-rw-r--r-- 1 nmvega nmvega 1191 Jun 18 14:53 docker-compose.yaml
drwxr-xr-x 8 nmvega nmvega 4096 Jun 18 15:01 .git
-rw-r--r-- 1 nmvega nmvega 1823 Jun 18 14:53 .gitignore
-rw-r--r-- 1 nmvega nmvega  248 Jun 18 15:01 .gitmodules
drwxr-xr-x 2 nmvega nmvega 4096 Jun 18 14:55 logs
drwxr-xr-x 3 nmvega nmvega 4096 Jun 18 14:56 tests
drwxr-xr-x 2 nmvega nmvega 4096 Jun 18 14:53 theme

(pyvenv.d) nmvega@fedora$ ls -la ./app  # AFTER: amoni install app ssh://[...]
drwxr-xr-x 4 nmvega nmvega 4096 Jun 18 15:01 .
drwxr-xr-x 9 nmvega nmvega 4096 Jun 18 15:01 ..
-rw-r--r-- 1 nmvega nmvega  192 Jun 18 15:01 config.yaml
drwxr-xr-x 4 nmvega nmvega 4096 Jun 18 14:53 hello_world
drwxr-xr-x 4 nmvega nmvega 4096 Jun 18 15:01 MY_ANVIL_APP  <--ADDED--
-rw-r--r-- 1 nmvega nmvega    0 Jun 18 14:53 requirements.txt

(pyvenv.d) nmvega@fedora$ python -V
Python 3.10.4

(pyvenv.d) nmvega@fedora$ pip --version
pip 22.1.2 from /home/nmvega/PYVENVS.and.JUPYTER.d/pyvenv.d/lib64/python3.10/site-packages/pip (python 3.10)

(pyvenv.d) nmvega@fedora$ pip freeze | grep -i anvil
anvil-app-server==1.7.3
anvil-uplink==0.3.42

(pyvenv.d) nmvega@fedora$ pip install anvil-stubs
ERROR: Could not find a version that satisfies the requirement anvil-stubs (from versions: none)
ERROR: No matching distribution found for anvil-stubs

(pyvenv.d) nmvega@fedora$ cd /tmp # cd /tmp -- just in case.
(pyvenv.d) nmvega@fedora$ ls -la
total 12
-r--r--r--   1 root   root     11 Jun 13 23:48 .X0-lock
drwxrwxrwt   2 root   root     60 Jun 13 23:48 .X11-unix
drwxrwxrwt   2 root   root     40 Jun 13 23:48 .XIM-unix

(pyvenv.d) nmvega@fedora$ pip install anvil-stubs
ERROR: Could not find a version that satisfies the requirement anvil-stubs (from versions: none)
ERROR: No matching distribution found for anvil-stubs

Any ideas? Thank you in advance! =:)

@meatballs
Copy link
Member

meatballs commented Jun 19, 2022

There's a problem loading that package to pypi. Install it from github instead and I'll fix the docs to match.

pip install git+https://github.com/anvilistas/anvil-stubs

@nmvega
Copy link
Author

nmvega commented Jun 19, 2022

Thank you sir. Appreciate it. ☺️

@meatballs
Copy link
Member

This is now fixed and the anvil-stubs package is available on pypi.

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

2 participants