unitaryfund / metriq-client

Fork of papers-with-code client
https://metriq.info
Apache License 2.0
3 stars 10 forks source link

Install error missing `tea_client` and `tea_console` #13

Closed willzeng closed 1 year ago

willzeng commented 3 years ago

I get this error when installing using python -m pip install . on MacOSX

(metriq) will@Wills-MacBook-Pro metriq-client % python -m pip install .  
Processing /Users/will/gdrive/code/metriq-client
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
    ERROR: Command errored out with exit status 1:
     command: /Users/will/envs/metriq/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/setup.py'"'"'; __file__='"'"'/private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-pip-egg-info-xdariaa4
         cwd: /private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/setup.py", line 3, in <module>
        from metriq import __version__
      File "/private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/metriq/__init__.py", line 3, in <module>
        from metriq.client import MetriqClient
      File "/private/var/folders/mn/b5nskstn4l5bkjkk8gxtd9y40000gn/T/pip-req-build-cv0dtkx_/metriq/client.py", line 5, in <module>
        from tea_client.http import HttpClient
    ModuleNotFoundError: No module named 'tea_client'
    ----------------------------------------

After pip install tea_client I get a message that tea_console is missing. After pip installing that then the install completes.

vprusso commented 3 years ago

I think one would need to activate the environment that has all the dependencies for this to work. So, for instance:

pipenv install
pipenv shell

And then, you can go ahead and run whatever examples you like from the examples/ directory.

I see that you were able to run some examples before, so I'm assuming that your comment here is that perhaps the REAMDE is misleading? if so, I can go ahead and change that to include the pipenv instructions, assuming you can replicate it.

I'm also on MacOS, so hopefully we should be able to figure this out. Let me know, and thanks in any case for spotting this.

vprusso commented 3 years ago

I believe this should be resolved by the (hopefully) more clear instructions in the README from https://github.com/unitaryfund/metriq-client/pull/16

Opt to close the issue is @willzeng agrees.