codon icon indicating copy to clipboard operation
codon copied to clipboard

pip installer on linux

Open vavrines opened this issue 3 years ago • 4 comments

The Python decorator part mentions the codon library can be installed via pip install. The example only shows a workaround on macOS via python3 -m pip install codon-0.13.0-cp39-cp39-macosx_12_0_arm64.whl It doesn't seem to work on linux yet. A direct python3 -m pip install codon throws the following error

ERROR: Command errored out with exit status 1:
     command: /opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xek5nan9/cogent/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xek5nan9/cogent/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-27df80_7
         cwd: /tmp/pip-install-xek5nan9/cogent/
    Complete output (6 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-xek5nan9/cogent/setup.py", line 61
        print "Failed to build html due to ImportErrors for sphinx"
              ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Failed to build html due to ImportErrors for sphinx")?
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

vavrines avatar Dec 10 '22 13:12 vavrines

To install the codon library on Linux, you will need to compile the library from source. you can do this by doing git clone from Github repository and inside that repository do the pip install:

Use the following-

git clone https://github.com/openai/codon.git cd codon pip install .

Cyberarray avatar Dec 11 '22 07:12 Cyberarray

good idea

layerkugou avatar Dec 11 '22 07:12 layerkugou

To install the codon library on Linux, you will need to compile the library from source. you can do this by doing git clone from Github repository and inside that repository do the pip install:

No 'setup.py' or 'pyproject.toml' is in the '.' directory. Why do you think this should work? There is a script 'scripts/install.sh', but that's another story.

vavrines avatar Dec 11 '22 08:12 vavrines

Thanks for the report—we are aware of quite a few issues with the Python package. The new version (to be released shortly) will fix the Python package.

inumanag avatar Dec 11 '22 19:12 inumanag