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

pip package incompatible with numpy 1.25 #81

Open
dataspider opened this issue Jul 26, 2023 · 2 comments
Open

pip package incompatible with numpy 1.25 #81

dataspider opened this issue Jul 26, 2023 · 2 comments

Comments

@dataspider
Copy link

  • partridge version: 1.1.1
  • Python version: 3.10
  • Operating System: macOS Ventura 13.4

Description

I was trying to use partridge, first from peartree, then directly, in a mamba/conda environment with numpy 1.25.
I ran into the same issue documented by another peartree user here:
The code available on pip still uses np.unicode in gtfs.py, which was deprecated in numpy 1.20 and removed in numpy 1.24.

I was able to fix this for myself by replacing the pip version of partridge with the repository version because the repository version appears to have already fixed this bug.
So you could make many people's life a tiny bit easier by releasing the bug-fixed version on pip :)

What I Did

file = "my_awesome_gtfs_data.zip"
ptg.read_busiest_date(file)
Traceback: See https://github.com/kuanb/peartree/issues/178 (my trace was the same in all important respects)
@tweska
Copy link

tweska commented Aug 31, 2023

I also encountered this issue today. Would be nice if someone can update the pypi package.

Meanwhile, for anyone who wants to install the latest version from GitHub, you can use this command:

pip install git+https://github.com/remix/partridge.git

@kuanb
Copy link

kuanb commented Nov 8, 2023

See issue notes here: kuanb/peartree#178

TLDR is that you can get around this by installing numpy==1.23.5 or earlier.

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

3 participants