indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.51k stars 239 forks source link

PyOxidizer Hangs when Handling Text Encoding (SentenceTransformers) #728

Open bm777 opened 12 months ago

bm777 commented 12 months ago

Issue Summary

@indygreg I am experiencing difficulties with PyOxidizer while generating an executable for my Python project. Specifically, the process seems to get stuck during text encoding, and ~I suspect it may be related to the loading of "file".~ (I wrote a python script to verify every file in the sentence-transformers libraries, it doesn't contains file string) Because all libraries like numpy, huggingface-cli work well in the bundle.

Steps to Reproduce

Expected Behavior

I want the app to encode the text using the sentenceTransformers lib, that I successfully loaded in the lib close to the exec.

Actual Behavior

When it comes to encode the text, it stuck it do nothing. I detected that by ainserting a simple print before and after the line. And it never reach the after-print.

Environment Information

bm777 commented 11 months ago

Issue solved. closing to not make it stale.

saraswatpuneet commented 7 months ago

@bm777 how was your issue resolved, trying something similar but not success so far

bm777 commented 7 months ago

Are you also using library like PyTorch or numpy and pandas?

saraswatpuneet commented 7 months ago

Yes I am using torch, so guessing it's related,

Thank you for quick response though

bm777 commented 7 months ago

can you share pyoxidezer config file? it will be easy for me to point out what is missing or wrong. (without the comments part :) )

saraswatpuneet commented 7 months ago

Here my config file as well dependencies, I am able to build without torch

pyoxidizer.bzl.txt requirements.txt

bm777 commented 7 months ago

would you wait for this weekend, because i'm about to write a hello-world and how to add libraries like torch. I will post it there #738 and also here.

saraswatpuneet commented 7 months ago

Most definitely, thank you so much