rdemaria / pytimber

Python Wrapping of CALS API
12 stars 23 forks source link

pytimber not working with miniconda (python 3.8) #81

Open giadarol opened 4 years ago

giadarol commented 4 years ago

I install the new miniconda an pytimber by doing the following:

cd ~/Desktop
mkdir test_pytimber
cd test_pytimber
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /home/giadarol/Desktop/test_pytimber/miniconda3

source miniconda3/bin/activate
pip install numpy scipy matplotlib ipython pandas h5py
pip install pytimber

When running in python:

import pytimber
ldb = pytimber.LoggingDB()

I obtain the following error message:

In [2]: ldb = pytimber.LoggingDB()
---------------------------------------------------------------------------
SystemError                               Traceback (most recent call last)
<ipython-input-2-6092927aa563> in <module>
----> 1 ldb = pytimber.LoggingDB()

~/Desktop/test_pytimber/miniconda3/lib/python3.8/site-packages/pytimber/pytimber.py in __init__(self, appid, clientid, source, loglevel)
    101         # Start JVM
    102         mgr = cmmnbuild_dep_manager.Manager("pytimber")
--> 103         mgr.start_jpype_jvm()
    104         self._mgr = mgr
    105

~/Desktop/test_pytimber/miniconda3/lib/python3.8/site-packages/cmmnbuild_dep_manager/cmmnbuild_dep_manager.py in start_jpype_jvm(self, extra_jars)
    226                     convertStrings=True,
    227                 )
--> 228             jpype.startJVM(
    229                 javalibpath,
    230                 '-Xss2m',   # Required for kernels patching CVE-2017-1000364

~/Desktop/test_pytimber/miniconda3/lib/python3.8/site-packages/jpype/_core.py in startJVM(*args, **kwargs)
    209
    210     try:
--> 211         _jpype.startup(jvmpath, tuple(args),
    212                        ignoreUnrecognized, convertStrings)
    213         _JVM_started = True

SystemError: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
rdemaria commented 4 years ago

This issue is fixed with cmmnbuild-dep-manager 2.6.0.