kiwiz / gkeepapi

An unofficial client for the Google Keep API.
MIT License
1.54k stars 114 forks source link

Changes to requirements.txt and setup.py for enum34 on breaks pyinstaller - stops creation of exe #125

Closed boardshorts closed 1 year ago

boardshorts commented 2 years ago

Using your sample code in README.md

My understanding of enum34 is that is only required for Python versions prior to 3.4 and the recent change in the requirements.txt and setup.py needs to be reinstated to of "enum34>=1.1.6; python_version < '3.0'"

Additionally, please provide the following information:

kiwiz commented 2 years ago

Opps, thanks for opening this issue. I've cleaned up the version specifiers for enum34 and uploaded a new release.

boardshorts commented 2 years ago

I also found I needed to add the --copy-metadata parameter to pyinstaller command to produce an exe that runs without the "from_name importlib.metadata.PackageNotFoundError: No package metadata was found for gpsoauth error"

pyinstaller --copy-metadata gpsoauth --onefile --clean TestKeep.py produces an exe of your sample code creates a red note to Eat Breakfast.

gkeepapi is a very useful module - I do appreciate your efforts and sharing this.

kiwiz commented 2 years ago

I suspect this might have to do with the dynamic version here: https://github.com/kiwiz/gkeepapi/blob/master/setup.py#L17. Could you try hardcoding a version to see if that allows you to build an executable correctly?

(I'm also curious what you're using the lib for, if you don't mind sharing)

kiwiz commented 1 year ago

Closing inactive issues.