Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maristal opened this issue Oct 19, 2018 · 3 comments

Comments

@maristal
Copy link

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
Copy link
Owner

Which java version do you have?

@maristal
Copy link
Author

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
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants