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

Python Package Built in Oryx Pointing to Wrong Python Installation #2404

Open
Developer4190 opened this issue Apr 10, 2024 · 1 comment
Open

Comments

@Developer4190
Copy link

Developer4190 commented Apr 10, 2024

Hello,

I have been trying to understand this issue.

I am currently running a Azure Python Function App (On a Dedicated Plan). During the build process for the function app, I pip install a package which runs a build itself. The issue here, is that once the build process is run for the package, the package thinks that the Python interpreter location is at /tmp/oryx/platforms/python/3.10.4, rather than the user python location, when run.

Ie.

Source directory :/ tmp/....
Destination directory: /tmp/build/expressbuild

Python Version: **/tmp/oryx/platforms/python/3.10.4/**. [NOTE: This is where the package thinks Python is it seems].....

Running pip install....


Copying files to destination directory 'tmp/build/expressbuild'

Is there a way around this issue?

@Developer4190
Copy link
Author

Developer4190 commented Apr 11, 2024

So the issue is that in the module created, the shebang is the following:

#!/tmp/oryx/platforms/python/3.10.4/bin/python3.10

Is there a way to have this shebang point to 'usr/local/bin/python'? Or does this need to be manually adjusted after deployment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant