Closed IamShubhamGupto closed 1 year ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Looks like this failed because of the same problem as #109 (which we tried to fix in #110). I hope the author can given us some useful advice.
@dhruvbalwada
it failed again for the same error, PRs from forks cannot get a preview, Im asking the authors if there's a way to go around this
Error: Resource not accessible by integration
One easy solution is to give you higher level permissions on repo, would that be fine?
Hey @dhruvbalwada
Based on the reply here - https://github.com/rossjrw/pr-preview-action/discussions/48#discussioncomment-5821256
The fork and pull method which we are using is not supported, I did not think of this when I was suggesting the idea.
We could:
Let's go with 1 for now, and we can figure something better out for the summer in June.
@dhruvbalwada
Sure, I am going to remove preview.yml
in this branch and we should be back to how things were going before
I will be keeping requirements.txt
as we now have pip dependencies
conda-lock
fileEquation discovery with Lorenz96
new
requirements.txt
file to install pip dependenciesconda-lock
does not seem to like pip dependencies:During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/src_parser/init.py", line 491, in seperator_mungeget return d[key.replace("-", "")] KeyError: 'matplotlib_base'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/shubham/opt/anaconda3/envs/L96M2lines/bin/conda-lock", line 10, in
sys.exit(main())
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/core.py", line 1128, in call
return self.main(args, kwargs)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(args, *kwargs)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), args, **kwargs)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 1353, in lock
lock_func(
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 1083, in run_lock
make_lock_files(
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 408, in make_lock_files
lock_content = lock_content | create_lockfile_from_spec(
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 801, in create_lockfile_from_spec
deps = _solve_for_arch(
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/conda_lock.py", line 737, in _solve_for_arch
pip_deps = solve_pypi(
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/pypi_solver.py", line 327, in solve_pypi
src_parser._apply_categories(requested=pip_specs, planned=planned)
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/src_parser/init.py", line 502, in _apply_categories
for dep in seperator_munge_get(planned, item).dependencies
File "/Users/shubham/opt/anaconda3/envs/L96M2lines/lib/python3.9/site-packages/conda_lock/src_parser/init.py", line 493, in seperator_mungeget
return d[key.replace("", "-")]
KeyError: 'matplotlib-base'
Updateddeploy.yml
andpreview.yml
to install fromconda-lock
andrequirements.txt
, might fail due to permission issues / cannot handle pipdeploy.yml
to install fromconda-lock
andrequirements.txt
Update:
conda-lock
andrequirements.txt
preview.yml
based on our discussion below