Giter VIP home page Giter VIP logo

Comments (3)

aguschin avatar aguschin commented on September 26, 2024

Hi @dberenbaum, thanks for reporting this. Could you please post pip freeze result? I just repeated this and everything seems to work fine:

(gto-example) ➜  gto-example git:(main) pip freeze | grep great                                                                                                                          27ms
great-tool-ops==0.0.6
(gto-example) ➜  gto-example git:(main) gto show                                                                                                                                       1.244s
                 environment
          latest     staging production
features    None         NaN        NaN
nn        v0.0.1      v0.0.1        NaN
rf        v1.0.1      v1.0.1     v1.0.0
(gto-example) ➜  gto-example git:(main) gto which rf production                                                                                                                         707ms
v1.0.0
(gto-example) ➜  gto-example git:(main) gto demote rf production                                                                                                                        511ms
Demoted rf from label production
(gto-example) ➜  gto-example git:(main) gto which rf production                                                                                                                         519ms
v1.0.1
(gto-example) ➜  gto-example git:(main) gto show                                                                                                                                        505ms
                 environment
          latest     staging production
features    None         NaN        NaN
nn        v0.0.1      v0.0.1        NaN
rf        v1.0.1      v1.0.1     v1.0.1

from gto.

aguschin avatar aguschin commented on September 26, 2024

Btw, you pushed few commits in gto-example repo. I can see there that you've installed gto from your local folder.

great-tool-ops @ file:///Users/dave/Code/gto

see this line here

Could you please try to install it from PyPi and try again? pip install great-tool-ops

from gto.

dberenbaum avatar dberenbaum commented on September 26, 2024

Btw, you pushed few commits in gto-example repo.

Sorry, I started running the showcase before realizing it was pushing back to the repo. I ended up taking out all the push and sleep commands from the showcase for now to run it locally. It might be worth having a branch like this to try the showcase without messing with the example repo.

Could you please try to install it from PyPi and try again? pip install great-tool-ops

Edit: By the way, could you update the readme to include that in the installation instructions? It wasn't clear to me it was already on PyPi.

I'm still getting an error:

$ git clone [email protected]:iterative/gto-example.git
Cloning into 'gto-example'...
remote: Enumerating objects: 196, done.
remote: Counting objects: 100% (196/196), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 196 (delta 87), reused 155 (delta 49), pack-reused 0
Receiving objects: 100% (196/196), 27.69 KiB | 914.00 KiB/s, done.
Resolving deltas: 100% (87/87), done.
$ cd gto-example
$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install great-tool-ops
Collecting great-tool-ops
  Using cached great_tool_ops-0.0.6-py3-none-any.whl (21 kB)
Collecting click
  Using cached click-8.0.4-py3-none-any.whl (97 kB)
Processing /Users/dave/Library/Caches/pip/wheels/1b/48/26/7dcbae6a5a0912a3486f7991673eba6fcd8bb87245a067b97f/numpy-1.22.3-cp39-cp39-macosx_12_0_arm64.whl
Collecting ruamel.yaml
  Using cached ruamel.yaml-0.17.21-py3-none-any.whl (109 kB)
Collecting pandas
  Using cached pandas-1.4.1.tar.gz (4.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting semver==3.0.0-dev.3
  Using cached semver-3.0.0.dev3-py3-none-any.whl (16 kB)
Collecting pydantic
  Using cached pydantic-1.9.0-py3-none-any.whl (140 kB)
Collecting gitpython
  Using cached GitPython-3.1.27-py3-none-any.whl (181 kB)
Collecting ruamel.yaml.clib>=0.2.6; platform_python_implementation == "CPython" and python_version < "3.11"
  Using cached ruamel.yaml.clib-0.2.6.tar.gz (180 kB)
Collecting pytz>=2020.1
  Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB)
Collecting python-dateutil>=2.8.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting typing-extensions>=3.7.4.3
  Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting gitdb<5,>=4.0.1
  Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting smmap<6,>=3.0.1
  Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Using legacy 'setup.py install' for ruamel.yaml.clib, since package 'wheel' is not installed.
Building wheels for collected packages: pandas
  Building wheel for pandas (PEP 517) ... done
  Created wheel for pandas: filename=pandas-1.4.1-cp39-cp39-macosx_11_0_arm64.whl size=10171347 sha256=64ea3a9bf9452f40e5c337be6c536e9cc80617b1e0280448a4405129d9489e7e
  Stored in directory: /Users/dave/Library/Caches/pip/wheels/be/58/f7/a567c0fd13ba6bd3889d081995bb3857fe3c957bb8b11eadbb
Successfully built pandas
Installing collected packages: click, numpy, ruamel.yaml.clib, ruamel.yaml, pytz, six, python-dateutil, pandas, semver, typing-extensions, pydantic, smmap, gitdb, gitpython, great-tool-ops
    Running setup.py install for ruamel.yaml.clib ... done
Successfully installed click-8.0.4 gitdb-4.0.9 gitpython-3.1.27 great-tool-ops-0.0.6 numpy-1.22.3 pandas-1.4.1 pydantic-1.9.0 python-dateutil-2.8.2 pytz-2021.3 ruamel.yaml-0.17.21 ruamel.yaml.clib-0.2.6 semver-3.0.0.dev3 six-1.16.0 smmap-5.0.0 typing-extensions-4.1.1
WARNING: You are using pip version 20.2.3; however, version 22.0.4 is available.
You should consider upgrading via the '/private/tmp/gto-example/venv/bin/python3 -m pip install --upgrade pip' command.
$ gto unregister rf v1.0.0
Unregistered rf version v1.0.0
$ gto show
Traceback (most recent call last):
  File "/private/tmp/gto-example/venv/bin/gto", line 8, in <module>
    sys.exit(cli())
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/cli.py", line 195, in show
    click.echo(gto.api.show(repo, dataframe=True))
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/api.py", line 108, in show
    for o in reg.state.objects.values()
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/registry.py", line 60, in state
    state = self.env_manager.update_state(state, index)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/tag.py", line 185, in update_state
    state.objects[tag.name] = index_tag(state.objects[tag.name], tag.tag)
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/tag.py", line 165, in index_tag
    obj.labels.append(label_from_tag(tag, obj))
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/tag.py", line 148, in label_from_tag
    version=obj.find_version(
  File "/private/tmp/gto-example/venv/lib/python3.9/site-packages/gto/base.py", line 103, in find_version
    raise GTOException(
gto.exceptions.GTOException: 0 versions of object rf found, skipping unregistered
$ pip freeze
click==8.0.4
gitdb==4.0.9
GitPython==3.1.27
great-tool-ops==0.0.6
numpy==1.22.3
pandas==1.4.1
pydantic==1.9.0
python-dateutil==2.8.2
pytz==2021.3
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.6
semver==3.0.0.dev3
six==1.16.0
smmap==5.0.0
typing-extensions==4.1.1

from gto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.