-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stuck at make for elm - does not find jinja2 #35
Comments
I don't have a proper environment to test this with, but hopefully this works:
Then make sure the dir is in the path (
to
Please let me know if this works. |
If you don't want to alter the Makefile, you can also run make and override the JINJA variable like this:
|
your first solution worked, adding jinja2-cli. Now i am running into what looks like an authentication issue with the API key - but it is the right key and and user key. Is here is a syntax maybe i am missing?
Anything specific to look at? |
Note - i verified the API key an access key via postman - they are valid and functional |
Hi sarohayan, I've tried to recreate the issue, but it's very hard to test. I'm not sure if the key/id is being mangled in some way when it's being read from the config file. I've tried changing perms etc and none of the testing I've done results in a 1401 error except when I mangle the API key on purpose. I've made a small change to show the api info, if you pull down the latest version you could try running with debug flags to get more info, eg: Another thing you could try is suppling the credentials from the CLI itself:
If this doesn't help, you could you try some code examples from LM. Most of the code in this repo started using their example code as a jumping off point. Any of the "GET" examples would be worth trying. https://www.logicmonitor.com/support/rest-api-developers-guide/v1/rest-api-v1-examples If their examples don't work you could raise the issue with LM support. If their examples do work and my code still doesn't and you can't find the issue using the above tips, I'm sorry but there's not much more I can do to help. |
Running Ubuntu 22.04.3 on WSL2 in windows
I am unable to get elm to make
myusername@mylaptop:~/elm$ make
which curl
/usr/bin/curl
which jq
/usr/bin/jq
which python3
/usr/bin/python3
which jinja2
make: *** [Makefile:127: JINJA-exists] Error 1
Jinja2 is installed via pip
myusername@mylaptop~/elm$ pip install jinja2
WARNING: The directory '/home/mysername/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: jinja2 in /home/mysername/.local/lib/python3.11/site-packages (3.1.3)
Requirement already satisfied: MarkupSafe>=2.0 in /home/mysername/.local/lib/python3.11/site-packages (from jinja2) (2.1.4)
The text was updated successfully, but these errors were encountered: