Skip to content

Compiling with pyinstaller does not work if "--collect-all hanja" is not used #32

@sbkocoglu

Description

@sbkocoglu

Hello! Unfortunately, I am not an advanced python coder so I'm not sure if I can provide the best feedback but here is what I encountered.

  1. Compile my app using pyinstaller
    pyinstaller -F -w main.py
  2. Run the application using the main.exe
  3. The 'hanja' corresponding function is not working. The app does not crash, the app does not throw any error at all. It just does nothing.
  4. I go back to my IDE and test it. Everything is working perfectly fine without any errors.
  5. I start to use additional commands with pyinstaller. I try --hidden-import, it does not work. Then, I try --collect-all and it works.
  6. I get confused. I have no idea why it didn't work previously but it worked after.

This is the only bit of hanja I use in my code:
converted_source = hanja.translate(source_value, 'substitution')

I do not know what info/files/logs to share with you to provide more information, please let me know if you want more specific details. It might be a rare issue, I might be the only person encountering this type of problem.

Edit: I'm using python 3.11 and a venv. Also, I am able to reproduce this problem 100% of the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions