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

pytimber not working with miniconda (python 3.8) #81

Open
giadarol opened this issue Aug 26, 2020 · 1 comment
Open

pytimber not working with miniconda (python 3.8) #81

giadarol opened this issue Aug 26, 2020 · 1 comment

Comments

@giadarol
Copy link

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

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

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