c9 / c9.ide.language.codeintel

The repository for c9.ide.language.codeintel, a Cloud9 core plugin
https://c9.io/packages/c9.ide.language.codeintel
Other
10 stars 12 forks source link

installation error #7

Open MrMoronIV opened 5 years ago

MrMoronIV commented 5 years ago

On CentOS 7:

  Downloading https://files.pythonhosted.org/packages/c5/d3/7825dfa48460fead643dc88db9884a247124bebcd3ffa050037b56f82819/Inflector-3.0.0.tar.gz
  Saved /tmp/codeintel/Inflector-3.0.0.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /root/.c9/python2/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-download-yZfacq/inflector/setup.py'"'"'; __file__='"'"'/tmp/pip-download-yZfacq/inflector/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 pip-egg-info
         cwd: /tmp/pip-download-yZfacq/inflector/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-download-yZfacq/inflector/setup.py", line 6, in <module>
        README = open(os.path.join(here, 'README.md'), 'r', encoding='utf-8').read()
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------

using python 36

python36 -m pip download -d /tmp/codeintel codeintel==0.9.3
Collecting codeintel==0.9.3
  File was already downloaded /tmp/codeintel/CodeIntel-0.9.3.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python36 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-download-qnk8vp4e/codeintel/setup.py'"'"'; __file__='"'"'/tmp/pip-download-qnk8vp4e/codeintel/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 pip-egg-info
         cwd: /tmp/pip-download-qnk8vp4e/codeintel/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-download-qnk8vp4e/codeintel/setup.py", line 7, in <module>
        import codeintel
      File "/tmp/pip-download-qnk8vp4e/codeintel/codeintel/__init__.py", line 204
        resource.setrlimit(resource.RLIMIT_AS, (2 * GB, -1L))
                                                          ^
    SyntaxError: invalid syntax
    ----------------------------------------

I continued the installation using

cd /tmp/codeintel
tar xf CodeIntel-0.9.3.tar.gz
mv CodeIntel-0.9.3/SilverCity CodeIntel-0.9.3/silvercity
tar czf CodeIntel-0.9.3.tar.gz CodeIntel-0.9.3
pip install -U --no-index --find-links=/tmp/codeintel codeintel

and got:

Looking in links: /tmp/codeintel
Collecting codeintel
Collecting six (from codeintel)
Collecting zope.cachedescriptors (from codeintel)
Collecting inflector (from codeintel)
    ERROR: Command errored out with exit status 1:
     command: /root/.c9/python2/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bkGIW3/inflector/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bkGIW3/inflector/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 pip-egg-info
         cwd: /tmp/pip-install-bkGIW3/inflector/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-bkGIW3/inflector/setup.py", line 6, in <module>
        README = open(os.path.join(here, 'README.md'), 'r', encoding='utf-8').read()
    TypeError: 'encoding' is an invalid keyword argument for this function
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.