Coder Social home page Coder Social logo

Comments (10)

rosmo avatar rosmo commented on September 27, 2024

Thanks, I've seen that before but weirdly it doesn't happen on the container build. What Python version are you using, the default?

from pubsub2inbox.

coachtinho avatar coachtinho commented on September 27, 2024

On the Cloud Function, "python38". However, now that you mentioned it, I noticed that requirements.txt was generated using Python 3.9, and when I ran pip-compile myself, I used Python 3.10. Maybe it's related to that.

from pubsub2inbox.

rosmo avatar rosmo commented on September 27, 2024

It wasn't a Python issue, but some additional dependencies needed to be pinned and --allow-unsafe flag to be passed. I've fixed it now and also improved the Terraform code a bit.

from pubsub2inbox.

coachtinho avatar coachtinho commented on September 27, 2024

It's working fine now. Thank you!

Closing this issue.

from pubsub2inbox.

coachtinho avatar coachtinho commented on September 27, 2024

I'm running into this issue again. I tried updating the branch with your most recent changes but it didn't work. Also tried running the pip-compile command again. The error message is the exact same as before, but it displays a different link for the googleapis-common-protos package:

googleapis-common-protos<2.0dev,>=1.56.2 from https://files.pythonhosted.org/packages/76/b9/fc6a31a90e3c78cea00d209d48f1e5c6c9edc6b14f3039470c3f7fae60a1/googleapis_common_protos-1.57.1-py2.py3-none-any.whl (from google-api-core[grpc]==2.10.2->-r requirements.txt (line 194)); Error ID: 0ea8a540

from pubsub2inbox.

rosmo avatar rosmo commented on September 27, 2024

Yeah, it's pretty strange. It seems to work fine when the pipeline builds the container or whenever I do it locally. I have googleapis-common-protos also both in requirements.txt.in and the generated requirements.txt. What Python runtime version are you using?

from pubsub2inbox.

coachtinho avatar coachtinho commented on September 27, 2024

On my machine, I'm running Python 3.10. The Cloud Function is using "python38".

from pubsub2inbox.

rosmo avatar rosmo commented on September 27, 2024

Well, that was a bit of an issue. I think the root cause is because pip-compile generates a dependency to googleapis-common-protos[grpc] no matter how much you try to force it use the one without the grpc qualifier. I fixed it by manually editing the requirements.txt to remove the [grpc] part. I think it's a pip bug but you can't fix it inside the Cloud Function environment.

I've pushed the fix and tagged a new release 1.4.7.

(just leaving the comment here in case someone stumbled upon this by search)

from pubsub2inbox.

rosmo avatar rosmo commented on September 27, 2024

@coachtinho Did you get this to work?

from pubsub2inbox.

coachtinho avatar coachtinho commented on September 27, 2024

Sorry for the late response, I've been away for a while. Just tested it and seems to be working properly.

Thank you for the updates, closing the issue.

from pubsub2inbox.

Related Issues (14)

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.