Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_connections errors on OS X #105

Closed
giampaolo opened this issue May 23, 2014 · 5 comments
Closed

get_connections errors on OS X #105

giampaolo opened this issue May 23, 2014 · 5 comments

Comments

@giampaolo
Copy link
Owner

From [email protected] on August 06, 2010 02:14:29

======================================================================
ERROR: test_get_connections_all (__main__.LimitedUserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 480, in test_get_connections_all
    cons = p.get_connections()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/__init__.py",
 line 334, in get_connections
    return _platform_impl.get_connections(self.pid)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psosx.py",
 line 116, in get_connections
    return _psposix.LsofParser(pid).get_process_connections()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psposix.py",
 line 113, in get_process_connections
    local_addr = self._normaddress(peers, family)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psposix.py",
 line 191, in _normaddress
    return (ip, int(port))
ValueError: invalid literal for int() with base 10: '*'



======================================================================
ERROR: test_get_connections_all (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 480, in test_get_connections_all
    cons = p.get_connections()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/__init__.py",
 line 334, in get_connections
    return _platform_impl.get_connections(self.pid)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psosx.py",
 line 116, in get_connections
    return _psposix.LsofParser(pid).get_process_connections()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psposix.py",
 line 113, in get_process_connections
    local_addr = self._normaddress(peers, family)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psposix.py",
 line 191, in _normaddress
    return (ip, int(port))
ValueError: invalid literal for int() with base 10: '*'

Original issue: http://code.google.com/p/psutil/issues/detail?id=105

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From [email protected] on September 20, 2010 16:12:02

For now I've disabled these in the test suite in OS X until we have 
time to fix the parsing code.

@giampaolo
Copy link
Owner Author

From [email protected] on September 20, 2010 16:12:36

Labels: Type-Enhancement

@giampaolo
Copy link
Owner Author

From g.rodola on October 26, 2010 06:43:03

I suspect port == "*" refers to a remote (non local) UDP endpoint in 
which case the address tuple should be manually set to ().

@giampaolo
Copy link
Owner Author

From g.rodola on November 11, 2010 14:55:47

Fixed in r782 , r783 and r784 .

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 03:54:03

Updated csets after the SVN -> Mercurial migration: r782 == revision 0128cc5e790b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant