question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build with -Pexperimental

See original GitHub issue

I tried to build with the following command under bash in Mac:

CPG_PYTHON_VIRTUALENV=py39; gradlew -Pexperimental build

where py39 is environment where I have installed jep. My default java version is 15

$ java -version
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

When building, the following errors occur

> Task :cpg-library:test

PythonFrontendTest > testSimpleClass() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:251
        Caused by: java.lang.UnsatisfiedLinkError at ClassLoader.java:2447

PythonFrontendTest > testCtor() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:455
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

PythonFrontendTest > testSelf() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:369
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

PythonFrontendTest > testIf() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:207
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

PythonFrontendTest > testLiteral() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:56
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

PythonFrontendTest > testFunctionDeclaration() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:111
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

PythonFrontendTest > testIfExpr() FAILED
    java.util.concurrent.ExecutionException at PythonFrontendTest.kt:312
        Caused by: java.lang.UnsatisfiedLinkError at Jep.java:-2

225 tests completed, 7 failed

I traced the errors, for example, the first one. The first line reads:

java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: no jep in java.library.path: /Users/chenjie/lab/SDG/cpg/cpg-library/src/main/golang

I am not a go programmer and do not understand what it means. I only need the support of experimental language python and I have installed jep under the environment used for this build. Could you help me?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jiechenjiechencommented, May 26, 2021

@oxisto I confirm that --enable-experimental-python works. I guess the implementation is incomplete, but at least it generates a graph.

$ bin/cpg-neo4j --enable-experimental-python /Users/chenjie/lab/SDG/examples/counter.py
10:32:18,870 INFO  TranslationManager Parsing /Users/chenjie/lab/SDG/examples/counter.py
10:32:19,066 ERROR Jep visit_ClassDef	1182:	This is not (yet) implemented.
10:32:19,321 WARN  TypeManager No frontend available. Be aware that typedef resolving cannot currently be done
10:32:19,324 ERROR Jep visit_ClassDef	1182:	This is not (yet) implemented.

Thank you for the efforts!

1reaction
jiechenjiechencommented, May 20, 2021

@oxisto I confirm that using the suggested way to setup environments, I can successfully build and install.

It would be good to support also the conda way of environments, but I understand that you may have different priorities.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug: Cannot download experimental React build from CI ...
Following the instructions for local development of react-devtools, it's not possible to download the experimental build from CI.
Read more >
experimental cant build into damage area's : r/SatisfactoryGame
I hope people have encountered this already and have solutions: I cant build in any area that at that time has a damage...
Read more >
experimental::filesystem linker error - c++ - Stack Overflow
With clang 4.0+, you need to link against libc++experimental.a. Make sure you're building with libc++ (not libstdc++) with the -stdlib=libc++ (as mentioned ...
Read more >
Osiris: New Dawn (Experimental Branch) กระดานสนทนาทั่วไป
Can't turn off the animals anymore. Can't change the day/night cycle. Biggest problem is the lack of building recipes even though I have...
Read more >
Experimental channel release notes for the Windows App SDK
Learn about the latest experimental releases of the Windows App SDK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found