xebialabs-community / xlr-jython-code-snippets

XLR code snippets using python and jython API
12 stars 11 forks source link

Update jython jar with python library fails with jython-standalone-2.7.2.patch2618.jar #6

Open arouger opened 3 years ago

arouger commented 3 years ago

Hello,

I have an error trying to follow these instructions with jython-standalone-2.7.2.patch2618.jar add a python library in jython-standalone-2.7.2.patch2618.jar adding: Lib/(in = 0) (out= 0)(stored 0%) adding: Lib/packaging/(in = 0) (out= 0)(stored 0%) adding: Lib/packaging/about.py(in = 726) (out= 394)(deflated 45%) adding: Lib/packaging/init.py(in = 562) (out= 276)(deflated 50%) adding: Lib/packaging/_compat.py(in = 1128) (out= 578)(deflated 48%) adding: Lib/packaging/_structures.py(in = 2022) (out= 414)(deflated 79%) adding: Lib/packaging/_typing.py(in = 1812) (out= 863)(deflated 52%) adding: Lib/packaging/markers.py(in = 9455) (out= 2930)(deflated 69%) adding: Lib/packaging/py.typed(in = 0) (out= 0)(stored 0%) adding: Lib/packaging/requirements.py(in = 5089) (out= 1895)(deflated 62%) adding: Lib/packaging/specifiers.py(in = 32208) (out= 7012)(deflated 78%) adding: Lib/packaging/tags.py(in = 28938) (out= 8297)(deflated 71%) adding: Lib/packaging/utils.py(in = 1915) (out= 789)(deflated 58%) adding: Lib/packaging/version.py(in = 15974) (out= 4202)(deflated 73%) jar: Package org.objectweb.asm.signature missing from ModulePackages class file attribute updated module-info: module-info.class

There is no problem when I do the same with jython-standalone-2.7.1.patch2618.jar

I'm using the 11.0.5 version of Java.

Could you help ? Thank you in advance.

Regards Alexandre

pekkaklarck commented 3 years ago

We encountered same problem with Robot Framework (robotframework/robotframework#3780). It seems that module-info.class file in the root of jython-standalone.2.7.2.jar is causting the problem. Older jar versions don't contain that file and I assume it's there by an accident.