Giter Club home page Giter Club logo

Comments (4)

sirosen avatar sirosen commented on September 22, 2024

Could you share the results of pip freeze in the environment you've built? I wasn't able to reproduce this.
My test environment was Linux x86_64 with py 3.11 and

$ pip freeze                                                                        
attrs==23.1.0
certifi==2023.11.17
charset-normalizer==3.3.2
check-jsonschema==0.27.3
click==8.1.7
idna==3.6
jsonschema==4.20.0
jsonschema-specifications==2023.11.2
referencing==0.31.1
regress==0.4.2
requests==2.31.0
rpds-py==0.13.2
ruamel.yaml==0.18.5
ruamel.yaml.clib==0.2.8
urllib3==2.1.0

So this seems to me like a case of some kind of unusual broken environment build.

I notice that the error report says 0.27.1 and 0.27.3, but the error text refers to 0.25.0 . Is that just a discrepancy between various tested versions, or is it a potential indicator that you aren't running the version you intend to run?

from check-jsonschema.

l0b0 avatar l0b0 commented on September 22, 2024

Could you share the results of pip freeze in the environment you've built?

No, because Nix doesn't use pip, building everything from source.

I notice that the error report says 0.27.1 and 0.27.3, but the error text refers to 0.25.0 . Is that just a discrepancy between various tested versions, or is it a potential indicator that you aren't running the version you intend to run?

😮 You're right! Turns out I had forgotten about direnv installing check-jsonschema when cd-ing into the project directory, and even if I was running /path/to/nixpkgs/result/bin/check-jsonschema it used the site-packages from direnv in the emergency-management-tools repo.

from check-jsonschema.

sirosen avatar sirosen commented on September 22, 2024

Glad you worked it out!

Could you share the results of pip freeze in the environment you've built?

No, because Nix doesn't use pip, building everything from source.

Just for my own edification, is there some equivalent I should ask for when interacting with Nix users? In such cases, I really just want a list of installed packages and their versions. A listing on site-packages would probably work... Is there a site-packages dir?

from check-jsonschema.

l0b0 avatar l0b0 commented on September 22, 2024

Could you share the results of pip freeze in the environment you've built?

No, because Nix doesn't use pip, building everything from source.

Just for my own edification, is there some equivalent I should ask for when interacting with Nix users? In such cases, I really just want a list of installed packages and their versions. A listing on site-packages would probably work... Is there a site-packages dir?

Actually, I'm wrong. I just have to install pip in the environment (it's not necessary in Nix environments in general), then it does have insight into which packages have been built:

pip freeze
aiodns @ file:///tmp/nix-build-python3.10-aiodns-3.0.0.drv-0/source/dist/aiodns-3.0.0-py3-none-any.whl
aiohttp @ file:///tmp/nix-build-python3.10-aiohttp-3.8.5.drv-0/aiohttp-3.8.5/dist/aiohttp-3.8.5-cp310-cp310-linux_x86_64.whl
[…]

from check-jsonschema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.