Closed ravensorb closed 3 years ago
No idea, sorry. As far as I know, jsonmerge should have no problems running from a virtual environment.
Weird. Just to double and triple check things I built a clean ubuntu server (v20.04.02) yesterday and installed pipenv. I then ran a simple test with just the python code above with a Pipfile that contains only jsonmerge and it also failed with the same error.
The only way I could get it to work was to do a pipenv install --system which seems to defeat the purpose of the virtual environments. Any chance you could double check and see if you can replicate?
Steps I followed:
Here is a gist with the Pipfile and python script
I might have found out how to get it to work. Changing the following
#!/usr/bin/python
to
#!/usr/bin/env python
seems to have gotten everything to work.
I've been hitting a roadblock recently in trying to get a few of my projects setup with virtual environments (using pipenv) and GitHub actions and I think the issue is related to jsonmerge. That said, I cannot figure out why it is related.
Here is an example of a python file:
and here is a build action file
and here is the error I get
The weird part is -- if I run a simple script with "help('modules')" -- I get back a lot of all modules and jsonmerge 1.8.0 is in the list. Which has me wondering -- am I doing something wrong?
The other interesting thing to note -- even if I skip using pipenv and just do a pip install inside the action, it still fails to run with the exact same error.
Any chance you have any thoughts/suggestions?