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

Can no longer build wheel for timezonefinder on Windows #243

Open
kylemacfarlan opened this issue Aug 29, 2024 · 5 comments
Open

Can no longer build wheel for timezonefinder on Windows #243

kylemacfarlan opened this issue Aug 29, 2024 · 5 comments

Comments

@kylemacfarlan
Copy link

kylemacfarlan commented Aug 29, 2024

Over the last couple of days I seem to have lost the ability to build wheels for timezonefinder. This includes 6.5.2 and 6.1.3 (6.1.3 is what we were on, but I also tried upgrading). I thought it might have been due to setuptools releasing a new version, but I put my setuptools back with no effect.

Here is the error I get after running pip install timezonefinder==6.5.2 (in a clean venv after removing cached wheels from my appdata directory):

File "*****\Local\Temp\pip-build-env-7y50dsrk\overlay\Lib\site-packages\cffi\_shimmed_dist_utils.py", line 33, in <module> from distutils.msvc9compiler import MSVCCompiler ModuleNotFoundError: No module named 'distutils.msvc9compiler'

My system information:
Python 3.10.11 x64
VS2022 installed
Windows 11

Is anyone else seeing this issue or have any idea what could have caused this?

@dbushong
Copy link

Caused by this, I believe: python-cffi/cffi#117
which is caused by the setuptools 74.x update.

It seems like when timezonefinder goes to do its build, it installs its own copy of the latest setuptools, so even if you try to pin it to an earlier version while the cffi issue is being worked on, it doesn't help.

I haven't found a workaround yet.

@bkandel-edf
Copy link

I have the same issue. I upgraded my computer this week and have to reinstall several projects. Pip now fails to install timezonfinder in all my environments that need this package...

@bkandel-edf
Copy link

bkandel-edf commented Aug 30, 2024

Currently solving the problem with an earlier version
>> pip install timezonefinder<6.1

@jannikmi
Copy link
Owner

Thanks for bringing this up. Can someone check if the build dependencies can be updated/pinned to fix this please? I currently don't have time to look into this.

@Mariusthvdb
Copy link

Mariusthvdb commented Sep 26, 2024

not sure if this is the exact same issue, but please note the mention by pnbruckner above.
As of Home Assistant 2024.10 beta, we get at least a related error which I will paste here, and maybe open a separate issue for?

Setup failed for custom integration 'entity_tz': Requirements for entity_tz not found: ['timezonefinder==5.2.0'].

HA devs tell me that this means timezonefinder didnt properly distribute the library via PyPi.

as there are no valid wheels available: https://pypi.org/project/timezonefinder/#files

hope this makes sense, and you can fix that
thanks

edit

nevermind, this was probably caused by a very old 5.2.0 requirement, I changed to latest "timezonefinder==6.5.3" and we're good now.
sorry.

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

No branches or pull requests

5 participants