You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the python documents, a valid return value of platform.processor()
is an empty string. https://docs.python.org/2/library/platform.html. The gordon code in question does not handle this return value.
On my debian linux system and other I've checked, uname -p returns "unknown". Other systems, like NetBSD, do the same thing, so I've heard.
As consequence, gordon apply does work at least on Debian Linux.
If, though, one replaces the platform.processor() with platform.machine(), gordon apply works.
I'm not sure if that is the correct fix, however. It appears that python's platform lib depends heavily on uname. In the wild, though, the return values of uname is highly variable across *nix platforms.
The text was updated successfully, but these errors were encountered:
I am unable to invoke
gordon apply
on Debian Linux. Here's why.gordon's
apply
command depends on a python call toplatform.processor()
gordon/gordon/resources/lambdas.py
Line 403 in 80567b4
Per the python documents, a valid return value of
platform.processor()
is an empty string. https://docs.python.org/2/library/platform.html. The gordon code in question does not handle this return value.
platform.processor()
returns an empty string whenuname -p
returns the validvalue of "unknown". http://svn.python.org/projects/python/trunk/Lib/platform.py
On my debian linux system and other I've checked,
uname -p
returns "unknown". Other systems, like NetBSD, do the same thing, so I've heard.As consequence,
gordon apply
does work at least on Debian Linux.If, though, one replaces the
platform.processor()
withplatform.machine()
,gordon apply
works.I'm not sure if that is the correct fix, however. It appears that python's
platform
lib depends heavily onuname
. In the wild, though, the return values ofuname
is highly variable across *nix platforms.The text was updated successfully, but these errors were encountered: