Skip to content
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

Broken environment definition file #1564

Closed
1 of 2 tasks
Molkree opened this issue May 12, 2021 · 2 comments
Closed
1 of 2 tasks

Broken environment definition file #1564

Molkree opened this issue May 12, 2021 · 2 comments

Comments

@Molkree
Copy link
Contributor

Molkree commented May 12, 2021

Describe the bug
In #1549 compilers was removed from the env file.
As a result conda environment build fails on the pip stage: CondaEnvException: Pip failed. This is because pickle5 can't be built without gcc.

  unable to execute 'gcc': No such file or directory
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pickle5

Full console log.

To Reproduce
Just follow tardis installation steps up to conda env create -f tardis_env3.yml step.

Screenshots
image
...
image

System

  • OS:
    • GNU/Linux
    • macOS

Additional context
You can actually activate tardis environment even after this conda exception. But of course it will lack pip dependencies (though they are only used to build docs according to comment in the file?) and I'm not sure if conda does any steps after pip which could cause something else breaking.

I'm also using Python 3.8, so pickle5 is not even needed as it's a port of Python 3.8.3 pickle to Python 3.5-3.7. Maybe pickle5 ; python_version < '3.8' will work. We also don't need to redefine pickle on all Python versions, only < 3.8:

import pickle5
sys.modules["pickle"] = pickle5

P.S. Maybe add CI check to try and build environment (and install tardis in it?) when env file (and setup.py?) change. It's in the documentation-build workflow.

@Molkree Molkree added the bug Something isn't working label May 12, 2021
@andrewfullard andrewfullard added install priority - high 🔥 bug 🐞 and removed bug Something isn't working labels May 12, 2021
@epassaro
Copy link
Member

I think this is not failing for us (or at the pipelines) because almost every Linux distro has gcc installed by default (or at some point) through the package manager.

I would try to move pickle5 to the conda dependencies (instead of pip section) and compilers should be pulled automatically @andrewfullard.

Remeber the reason of pickle5 is explained here #1535 and would be solved once we get rid of pyne (or pyne gets updated on macOS).

@epassaro
Copy link
Member

Closed by #1566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants