Git Product home page Git Product logo

Comments (7)

lmazuel avatar lmazuel commented on June 1, 2024

Hi @vpunugupati
This issue belongs there:
https://github.com/Azure/azure-uamqp-python

I'm trying to transfer it, or you can open it there at your convenience :)

@annatisch FYI

from azure-uamqp-python.

vpunugupati avatar vpunugupati commented on June 1, 2024

May be, It's some thing to do environment related as it is running locally. So, I am closing this.

from azure-uamqp-python.

cnshrenivas avatar cnshrenivas commented on June 1, 2024

I am using AWS Serverless in my development and using python to develop lambdas.

I want to use azure-servicebus and was able to import "azure-servicebus" and all its dependencies (including uamqp).
I am using a requirements.txt file to list all the dependencies needed and using a shell script to manually import all the dependencies needed. Attached my requirements.txt file which installs all the dependencies

While the lambda is executed, I am getting the error " cannot import name 'c_uamqp' from 'uamqp'"

I appreciate any help/inputs in resolving this issue. Thanks!

externaldependencies_requirements.txt

from azure-uamqp-python.

vpunugupati avatar vpunugupati commented on June 1, 2024

If I remember correctly, at that time I used wrong package on that machine. i.e 32 bit package on 64 bit machine. Later I used 32 bit package on 32 bit machine which worked perfectly. Hope the same happening in your case also.

from azure-uamqp-python.

annatisch avatar annatisch commented on June 1, 2024

Hi @cnshrenivas,
As @vpunugupati mentioned - selecting the correct bitness of the wheel will be important.
Additionally - we are also currently limited in the supported OS that are precompiled for.
You may need to build the library directly from the source.

We are in the process of porting this to a pure-Python lib to do away with the c components altogether - so longer term this should no longer be an issue :)

from azure-uamqp-python.

cnshrenivas avatar cnshrenivas commented on June 1, 2024

Thanks @vpunugupati and @annatisch for your inputs.
@annatisch : Can you please tell the release/timeline for porting as pure python lib

from azure-uamqp-python.

c0dingarchit3ct avatar c0dingarchit3ct commented on June 1, 2024

Hey guys,
We are facing the same problem now, although we imported azure-servicebus and all its dependencies in our layer, we still get that error?
Any idea on how to get around that? is this Linux related? would trying to run this code on Linux and copying the layer to lambda make a difference?

from azure-uamqp-python.

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.