rdemaria / pytimber

Python Wrapping of CALS API
12 stars 23 forks source link

Package cern.lhc.commons.cals.PrimitiveDataSets.unixTimestamps is not Callable #63

Open maristal opened 5 years ago

maristal commented 5 years ago

I get the following error when trying to use pytimber.

pytimber-2.6.2 cmmnbuild-dep-manager-2.2.2 JPype1-0.6.3

File "C:\Users\mtali\AppData\Local\Continuum\anaconda3\lib\site-packages\pytimber\pytimber.py", line 216, in processDataset timestamps = np.array(PrimitiveDataSets.unixTimestamps(dataset)[:], dtype=float) File "C:\Users\mtali\AppData\Local\Continuum\anaconda3\lib\site-packages\jpype_jpackage.py", line 62, in call raise TypeError("Package {0} is not Callable".format(self.__name)) TypeError: Package cern.lhc.commons.cals.PrimitiveDataSets.unixTimestamps is not Callable

rdemaria commented 5 years ago

Which java version do you have?

maristal commented 5 years ago

java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

I downgraded to pytimber 2.6.1 and now it works.

rdemaria commented 5 years ago

It is possible the jars are not updated. You could try to:

import commnbuild-dep-manager as mg
mg.Manager().resolve()