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

Conflicting file while installing python packages #67193

Closed
zokrezyl opened this issue Aug 21, 2019 · 2 comments
Closed

Conflicting file while installing python packages #67193

zokrezyl opened this issue Aug 21, 2019 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@zokrezyl
Copy link
Contributor

zokrezyl commented Aug 21, 2019

Describe the bug


/nix/store/my9s36hmlg79nic1v8fcf6w28mz0s3ys-python3-3.7.4-env.drv
building '/nix/store/my9s36hmlg79nic1v8fcf6w28mz0s3ys-python3-3.7.4-env.drv'...
collision between `/nix/store/kjw53bn6h89clwjq2v9w2dhg9zcwxn9j-python3.7-uvicorn-0.8.6/LICENSE.md' and `/nix/store/gs2hkkg9qygybv4pnqh0q45gmdlh8rrz-python3.7-starlette-0.12.6/LICENSE.md'
builder for '/nix/store/my9s36hmlg79nic1v8fcf6w28mz0s3ys-python3-3.7.4-env.drv' failed with exit code 25

To Reproduce
nix-env -if build.nix, with build.nix exerpt:

with import <nixpkgs> {};                                                                                                                                                                          
  let                                 
     uvicorn = python37.pkgs.buildPythonPackage rec {                                                        
       pname = "uvicorn";                                                                                    
       version = "0.8.6";                                                                                    
       src = fetchurl {                                                                                      
         sha256 = "8aa44f9d9c3082ef693950387ea25d376e32944df6d4071dbd8edc3c25a40c74";                        
         url = "https://files.pythonhosted.org/packages/c3/e5/5aa944f5b0f6987b7f9d629fd876ffe59815958e3a7f0d1  336c552f409d3/uvicorn-0.8.6.tar.gz";                                                                        
       };                                                                                                    
                                                                                                             
       doCheck = false;                                                                                      
       propagatedBuildInputs = [httptools uvloop h11 websockets Click];                                      
                                                                                                             
       meta = {                                                                                              
         homepage = "https://github.com/encode/uvicorn";                                                     
         description = "The lightning-fast ASGI server.";                                                    
       };                                                                                                    
     }; 
     starlette = python37.pkgs.buildPythonPackage rec {                                                      
        pname = "starlette";                                                                                          version = "0.12.6";                                                                                   
        src = python37.pkgs.fetchPypi {                                                                       
          inherit pname version;                                                                              
          sha256 = "c270f78af93c4ff4d7fbb9c10f9d9e15be1726284c39805f93ea48e3f45997d7";                        
        };                                                                                                    
                                                                                                              
        doCheck = false;                                                                                      
                                                                                                              
        meta = {                                                                                              
          homepage = "https://www.starlette.io/";                                                             
          description = "Starlette is a lightweight ASGI framework/toolkit, which is ideal for building high p  erformance asyncio services";                                                                               
        };                                                                                                    
      }; 

******
******
******
in python37.withPackages (ps: [ps.jedi ps.ordered-set ps.ipython ps.bpython ps.ptpython ps.hvac ps.influxd  b ps.lxml ps.mistune ps.cryptography ps.requests ps.pyyaml ps.rpyc ps.ujson ps.aiohttp ps.netaddr ps.paramik  o ps.jedi ps.jmespath ps.scapy ps.pip starlette stringcase deepdiff mmh3 itsdangerous httptools uvicorn ])  
                                                                                                                             

Expected behavior
Not sure... but there should be a way to avoid the conflict? Maybe a hook for the buildPythonPackage where one could delete a certain file to avoid the conflict

@zokrezyl zokrezyl added the 0.kind: bug Something is broken label Aug 21, 2019
@FRidh
Copy link
Member

FRidh commented Aug 31, 2019

This is an upstream bug, #23438. Closing as duplicate.

@FRidh FRidh closed this as completed Aug 31, 2019
@zokrezyl
Copy link
Contributor Author

Thanks for your time. I think I saw that report after i filed this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants