[Ironpython-users] trouble installing Pylint

George Nychis gnychis at gmail.com
Wed Jul 22 15:52:14 CEST 2015


Hi Danny,

I actually was able to get it installed in the end.  But it doesn't seem to
know of the methods in my C# library.  I'm wondering if it's because I
haven't setup my paths properly, or if Pylint is unable to recognize the C#
libraries and methods.  I'm continuing to try and set it up properly, but
does Pylint for sure work with C# libraries imported by IronPython?

Thanks a bunch for your help.

Best,
George

On Tue, Jul 21, 2015 at 11:26 PM, Daniel Fernandez <
fernandez_dan2 at hotmail.com> wrote:

> Hi George,
>
> I ran the same command line arguments and it installed correctly.
>
> Here is my output
>
> c:\IronPython27>ipy.exe -X:Frames -m pip install pylint
> Downloading/unpacking pylint
> C:\IronPython27\Lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py:1:
> DeprecationWarning: object.__new__() takes no parameters
>   # urllib3/connectionpool.py
> c:\IronPython27\Lib\weakref.py:1: DeprecationWarning: object.__init__()
> takes no parameters for type KeyedRef
>   """Weak reference support for Python.
> Downloading/unpacking six (from pylint)
>   Downloading six-1.9.0-py2.py3-none-any.whl
> Downloading/unpacking astroid>=1.3.6 (from pylint)
> Downloading/unpacking logilab-common>=0.53.0 (from pylint)
>   Running setup.py
> (path:c:\users\dafern1\appdata\local\temp\pip_build_DAFERN1\logilab-common\setup.py)
> egg_info for package logilab-common
>     c:\IronPython27\Lib\weakref.py:1: DeprecationWarning:
> object.__init__() takes no parameters for type KeyedRef
>       """Weak reference support for Python.
>     warning: no files found matching '*.py' under directory 'test\input'
>     warning: no files found matching '*' under directory 'doc\html'
> Requirement already satisfied (use --upgrade to upgrade): setuptools in
> c:\ironpython27\lib\site-packages (from logilab-common>=0.53.0->pylint)
> Downloading/unpacking colorama (from logilab-common>=0.53.0->pylint)
>   Downloading colorama-0.3.3.tar.gz
>   Running setup.py
> (path:c:\users\dafern1\appdata\local\temp\pip_build_DAFERN1\colorama\setup.py)
> egg_info for package colorama
>     c:\IronPython27\Lib\weakref.py:1: DeprecationWarning:
> object.__init__() takes no parameters for type KeyedRef
>       """Weak reference support for Python.
> Installing collected packages: pylint, six, astroid, logilab-common,
> colorama
>   Running setup.py install for logilab-common
>     c:\IronPython27\Lib\weakref.py:1: DeprecationWarning:
> object.__init__() takes no parameters for type KeyedRef
>       """Weak reference support for Python.
>     warning: build_py: byte-compiling is disabled, skipping.
>     Skipping installation of
> c:\IronPython27\Lib\site-packages\logilab\__init__.py (namespace package)
>     warning: install_lib: byte-compiling is disabled, skipping.
>
>     warning: no files found matching '*.py' under directory 'test\input'
>     warning: no files found matching '*' under directory 'doc\html'
>     Installing
> c:\IronPython27\Lib\site-packages\logilab_common-1.0.2-py2.7-nspkg.pth
>   Running setup.py install for colorama
>     c:\IronPython27\Lib\weakref.py:1: DeprecationWarning:
> object.__init__() takes no parameters for type KeyedRef
>       """Weak reference support for Python.
>     warning: build_py: byte-compiling is disabled, skipping.
>     warning: install_lib: byte-compiling is disabled, skipping.
>
> Successfully installed pylint six astroid logilab-common colorama
> Cleaning up...
>
> c:\IronPython27>
>
>
> I see this in my output
> c:\IronPython27\Lib\weakref.py:1: DeprecationWarning: object.__init__()
> takes no parameters for type KeyedRef
>   """Weak reference support for Python.
>
>
> At the moment I'm trying to see if I can reproduce the issue but not luck.
>
> Danny
>
> ------------------------------
> Date: Mon, 20 Jul 2015 17:40:41 -0400
> From: gnychis at gmail.com
> To: ironpython-users at python.org
> Subject: [Ironpython-users] trouble installing Pylint
>
>
> I am trying to install Pylint with IronPython, but I'm running in to the
> following issue below.  Is there something special that I need to do to
> install pylint?
>
> $ ./ipy.exe -X:Frames -m pip install pylint
> Downloading/unpacking pylint
> C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py:1:
> DeprecationWarning: object.__new__() takes no parameters
>   # urllib3/connectionpool.py
> C:\Program Files (x86)\IronPython 2.7\Lib\weakref.py:1:
> DeprecationWarning: object.__init__() takes no parameters for type KeyedRef
>   """Weak reference support for Python.
> Requirement already satisfied (use --upgrade to upgrade): six in
> c:\program files (x86)\ironpython 2.7\lib\site-packages (from pylint)
> Downloading/unpacking astroid>=1.3.6 (from pylint)
> Cleaning up...
> Exception:
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\basecommand.py", line 122, in main
>     status = self.run(options, args)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\commands\install.py", line 278, in run
>     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
> bundle=self.bundle)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\req.py", line 1201, in prepare_files
>     self.unpack_url(
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\req.py", line 1376, in unpack_url
>     unpack_http_url(
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\download.py", line 546, in unpack_http_url
>     resp = session.get(target_url, stream=True)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get
>     return self.request('GET', url, **kwargs)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\download.py", line 237, in request
>     return super(PipSession, self).request(method, url, *args, **kwargs)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in
> request
>     resp = self.send(prep, **send_kwargs)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send
>     r = adapter.send(request, **kwargs)
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send
>     resp = conn.urlopen(
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py",
> line 502, in urlopen
>     response = HTTPResponse.from_httplib(httplib_response,
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py",
> line 256, in from_httplib
>     headers = HTTPHeaderDict()
>   File "C:\Program Files (x86)\IronPython
> 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\_collections.py",
> line 155, in __init__
>     self.update(headers, **kwargs)
>   File "C:\Program Files (x86)\IronPython 2.7\Lib\_abcoll.py", line 492,
> in update
>     if isinstance(other, Mapping):
>   File "C:\Program Files (x86)\IronPython 2.7\Lib\abc.py", line 132, in
> __instancecheck__
>     if subclass is not None and subclass in cls._abc_cache:
>   File "C:\Program Files (x86)\IronPython 2.7\Lib\_weakrefset.py", line
> 70, in __contains__
>     wr = ref(item)
> ValueError: Index was out of range. Must be non-negative and less than the
> size of the collection.
> Parameter name: index
>
>
> _______________________________________________ Ironpython-users mailing
> list Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150722/de616f1c/attachment.html>


More information about the Ironpython-users mailing list