Title: 64-bit casting issue · Issue #10 · ldx/python-iptables · GitHub
Open Graph Title: 64-bit casting issue · Issue #10 · ldx/python-iptables
X Title: 64-bit casting issue · Issue #10 · ldx/python-iptables
Description: Ive tryed to use match object in a 64-bit machine and got this: In [62]: m.dport = "22" ArgumentError Traceback (most recent call last) /home/leonardo/bin/ in () ----> 1 m.dport = "22" /usr/lib/pymodules/python2.7/iptc/init.pyc in setatt...
Open Graph Description: Ive tryed to use match object in a 64-bit machine and got this: In [62]: m.dport = "22" ArgumentError Traceback (most recent call last) /home/leonardo/bin/ in () ----> 1 m.dport = "22" /usr/lib/pym...
X Description: Ive tryed to use match object in a 64-bit machine and got this: In [62]: m.dport = "22" ArgumentError Traceback (most recent call last) /home/leonardo/bin/ in () ----> 1 m.dport = &quo...
Opengraph URL: https://github.com/ldx/python-iptables/issues/10
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"64-bit casting issue","articleBody":"Ive tryed to use match object in a 64-bit machine and got this:\n## In [62]: m.dport = \"22\"\n\nArgumentError Traceback (most recent call last)\n/home/leonardo/bin/\u003cipython-input-62-7ae3ef65accd\u003e in \u003cmodule\u003e()\n----\u003e 1 m.dport = \"22\"\n\n/usr/lib/pymodules/python2.7/iptc/**init**.pyc in **setattr**(self, name, value)\n 358 def **setattr**(self, name, value):\n 359 if not name.startswith('_') and name not in dir(self):\n--\u003e 360 self.parse(name.replace(\"_\", \"-\"), value)\n 361 else:\n 362 object.**setattr**(self, name, value)\n\n/usr/lib/pymodules/python2.7/iptc/**init**.pyc in parse(self, parameter, value)\n 318 rv = _wrap_parse(self._module.parse, opt.val, argv, inv,\n 319 ct.pointer(self._flags), entry,\n--\u003e 320 ct.cast(self._ptrptr, ct.POINTER(ct.c_void_p)))\n 321 if rv != 1:\n 322 raise ValueError(\"invalid value %s\" % (value))\n\nArgumentError: argument 5: \u003ctype 'exceptions.TypeError'\u003e: expected LP_c_ulong instance instead of LP_c_uint\n\nThis patch fixed the problem but i cant test it in 32bits.\n\nEDIT: The patch misformated here: http://pastie.org/4302265\n","author":{"url":"https://github.com/leleobhz","@type":"Person","name":"leleobhz"},"datePublished":"2012-07-22T20:55:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10/python-iptables/issues/10"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:da2948bf-7994-549b-6c93-6a54e86c1746 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C028:3F6E8D:5434E64:73A8CF2:6A5E3968 |
| html-safe-nonce | 58554326123797ec370576d15fcb90148a93735c8edc69d84a48b44bdeab9bc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDI4OjNGNkU4RDo1NDM0RTY0OjczQThDRjI6NkE1RTM5NjgiLCJ2aXNpdG9yX2lkIjoiMzcyNzEyMjA1NjYwMzM4NDE2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4590d71a2a14f06ceb2010ec837f97d649543d514798aec927a1af495e8e9aa6 |
| hovercard-subject-tag | issue:5768667 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ldx/python-iptables/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21d181faf0da93ec4f3bd4fca6963043e3a02b88c6bbd8a33a4c2abdff98a81f/ldx/python-iptables/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21d181faf0da93ec4f3bd4fca6963043e3a02b88c6bbd8a33a4c2abdff98a81f/ldx/python-iptables/issues/10 |
| og:image:alt | Ive tryed to use match object in a 64-bit machine and got this: In [62]: m.dport = "22" ArgumentError Traceback (most recent call last) /home/leonardo/bin/ in () ----> 1 m.dport = "22" /usr/lib/pym... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leleobhz |
| hostname | github.com |
| expected-hostname | github.com |
| None | e4b946991e2bd4b122ac7bb3d405be22af15feed82daaafcd1fe0a1231d54061 |
| turbo-cache-control | no-preview |
| go-import | github.com/ldx/python-iptables git https://github.com/ldx/python-iptables.git |
| octolytics-dimension-user_id | 456904 |
| octolytics-dimension-user_login | ldx |
| octolytics-dimension-repository_id | 1032167 |
| octolytics-dimension-repository_nwo | ldx/python-iptables |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1032167 |
| octolytics-dimension-repository_network_root_nwo | ldx/python-iptables |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a421a3a9fbeebe1ed5ba7c8e5b803b098d65a30e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width