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.

ValueError: The 'rex' package was not installed in a way that PackageLoader understands.

See original GitHub issue

Environment

OS: Ubuntu 21.04.4 LTS python3: 3.8.10

Problem Description

I cloned rex, ran python3 setup.py install --user, and manually installed the following dependencies:

  • povsim (v9.2.1)
  • cle (v9.2.1)
  • claripy (v9.2.1)
  • archer (v9.2.1)
  • ailment (v9.2.1)
  • angr/tracer (master 4fe840c).

I finally got rex to install.

Using /home/aesophor/.local/lib/python3.8/site-packages
Finished processing dependencies for rex==0.2

However, running rex triggers the following exceptions (jinja2?) I’m not sure what to do next to get rex to run. Here’s the error message I got:

/home/aesophor/Code/rex [git::master] [aesophor@aesophor-vm] [13:59]
> python3 tests/test_explore.py
Traceback (most recent call last):
  File "tests/test_explore.py", line 4, in <module>
    import rex
  File "/home/aesophor/.local/lib/python3.8/site-packages/rex/__init__.py", line 2, in <module>
    from rex.crash import Crash, NonCrashingInput
  File "/home/aesophor/.local/lib/python3.8/site-packages/rex/crash.py", line 20, in <module>
    from .exploit import CannotExploit, CannotExplore, ExploitFactory, CGCExploitFactory
  File "/home/aesophor/.local/lib/python3.8/site-packages/rex/exploit/__init__.py", line 4, in <module>
    from .exploit import Exploit, ExploitException
  File "/home/aesophor/.local/lib/python3.8/site-packages/rex/exploit/exploit.py", line 12, in <module>
    from ..scripter import Scripter
  File "/home/aesophor/.local/lib/python3.8/site-packages/rex/scripter/__init__.py", line 10, in <module>
    loader=jinja2.PackageLoader('rex', 'scripter/templates'),
  File "/home/aesophor/.local/lib/python3.8/site-packages/jinja2/loaders.py", line 319, in __init__
    raise ValueError(
ValueError: The 'rex' package was not installed in a way that PackageLoader understands.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Apr 27, 2022

In that case, this is an issue for @twizmwazin 😃

0reactions
aesophorcommented, Apr 29, 2022

@twizmwazin Thanks!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 'yourapp' package was not installed in a way that ... - GitHub
I use the example provided in the documentation at https://jinja.palletsprojects.com/en/3.0.x/api/#basics The file yourapp.py contains: #!
Read more >
Cannot import ligo-followup-advocate with jinja2>=3.0.0 (#66)
jinja' package was not installed in a way that PackageLoader understands. This is because the PackageLoader is being given the wrong package ...
Read more >
need to package jinja2 template for python - Stack Overflow
I've discovered a WORKAROUND, here. In this usage, the template is not part of a module or package; it is loaded directly from...
Read more >
[SOLVED]Error Compiling Firefox (Jinja2 PackageLoader Issue)
0:02.84 ValueError: The 'run_glean_parser' package was not installed in a way that PackageLoader understands.
Read more >
The 'build_report' package was not installed in a way ... - GitLab
The 'build_report' package was not installed in a way that PackageLoader understands. The command snakemake build_report produces following ...
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