GithubHelp home page GithubHelp logo

Comments (11)

jrgm avatar jrgm commented on September 27, 2024 1

@tublitzed - yes. I'll close this issue now.

@pjenvey - Ah. Okay, I'll put that in a PR.

from tokenserver.

fzzzy avatar fzzzy commented on September 27, 2024

@jrconlin Have you seen anything like this before when you were trying to get the tokenserver running with changes before?

from tokenserver.

jrconlin avatar jrconlin commented on September 27, 2024

@fzzzy Not with cffi specifically, but I've seen stuff like this. The problem is that there are some other crates that may be bringing in a conflicting version of cffi. I solved mine by locking the version in my Cargo.toml, but you may need to use cargo tree to identify which crate is making the explicit request and either back versioning that crate or bumping up the local version of cffi.

(As you know, but others may not, cffi is a really thorny crate for things like this, since it handles communicating with libraries outside of rust. Minor version bumps can bring huge changes. Other libraries that are like this include libssl, protobuf, and a handful of others. If you live a mostly clean life or are particularly lucky, you can get away with doing the version specification I noted. Other times, well, it's not a lot of fun, at all.)

from tokenserver.

fzzzy avatar fzzzy commented on September 27, 2024

This is in the python version...

from tokenserver.

jrconlin avatar jrconlin commented on September 27, 2024

Ah, sorry, missed that. Let me see if I can replicate locally and see what's up. Honestly, what I said above might even be more so, since a lot of python packages are growing less and less able to run under python2.7. So we have to nail down all sorts of sub-dependencies.

from tokenserver.

jrconlin avatar jrconlin commented on September 27, 2024

So, a few things I'm seeing at least locally.

  1. I'm not hitting the cffi issue doing local builds, but pulling the docker image definitely hits it. I'm going to guess that it's probably either a build problem on the remote machines or an unfixed dependency issue. I added
    gunicorn == 19.10.0 to my requirements.txt file because the local build docker image didn't find it. That got me a bit further, but then...

  2. Looks like alpine might have switched from libmysqlclient-dev to mariadb-dev, and it's causing some problems with interpolation. Looking at what's going on in there.

Yay! this stuff is a mess and only getting worse.

from tokenserver.

fzzzy avatar fzzzy commented on September 27, 2024

Can we pin alpine to an old version to avoid this? (What's alpine? :)

from tokenserver.

jrconlin avatar jrconlin commented on September 27, 2024

Alpine is the root OS for the pypy:2.7-jesse container. (At least as I understand. When I built the docker locally, that's the core that was brought in, and what I got dumped into when I did a docker run -it --entrypoint sh tokenserver.

It's very minimal, so I'm sure that some other docker is probably building out the db dependencies, but the effect is the same. There's definitely bit rot going on in here.

from tokenserver.

jrgm avatar jrgm commented on September 27, 2024

See #189

from tokenserver.

tublitzed avatar tublitzed commented on September 27, 2024

@jrgm - can you confirm this was resolved here, or should we keep this one open?

from tokenserver.

pjenvey avatar pjenvey commented on September 27, 2024

pypy ships w/ its own cffi, so any version differing from what it provides will trigger a conflict. A more future proof way to avoid this is to only require cffi on cpython, e.g. in requirements.txt:

cffi==1.13.2 ; platform_python_implementation == "CPython"

from tokenserver.

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.