[1.1.0] Jython 2.7: urllib.FancyURLopener only works the first time after import urllib --- Jython problem --- workaround
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Confirmed
|
Medium
|
RaiMan |
Bug Description
************ workaround
run script from command line after having edited and saved it in IDE
-------
I use SikliX 1.1.0
Code like this:
import urllib
opener = urllib.
f = opener.open("http://
print f.read()
六月 11, 2015 11:29:24 上午 org.python.
警告: Force-closing a channel whose registration task was not accepted by an event loop: [id: 0x1d496cfb]
java.util.
at org.python.
...
at _socket$
at _socket$
...
at httplib$
at httplib$
...
at urllib$
at urllib$
...
at org.python.
at org.python.
...
[error] script [ testpost ] stopped with error in line 3
[error] IOError ( [Errno socket error] error(-1, u'Unmapped exception: java.util.
.core.PyCode.
at org.python.
at org.python.
at org.python.
at org.sikuli.
at org.sikuli.
at org.sikuli.
I guess this may connect with Jython.
summary: |
- when I use Python package to post some message, it'll throw exception + [1.1.0] Jython 2.7: urllib.FancyURLopener only works the first time + after import urllib |
description: | updated |
summary: |
[1.1.0] Jython 2.7: urllib.FancyURLopener only works the first time - after import urllib + after import urllib --- Jython problem |
summary: |
[1.1.0] Jython 2.7: urllib.FancyURLopener only works the first time - after import urllib --- Jython problem + after import urllib --- Jython problem --- workaround |
for such special Python/Jython module problems you have to go to the Jython homepage and look out for a solution or bug report.