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

rtree 0.9 changes PATH incorrectly #126

Closed
icexelloss opened this issue Dec 3, 2019 · 4 comments
Closed

rtree 0.9 changes PATH incorrectly #126

icexelloss opened this issue Dec 3, 2019 · 4 comments

Comments

@icexelloss
Copy link

icexelloss commented Dec 3, 2019

Hello,

I am a dev on https://github.com/ibis-project/ibis, recently we found this issue this rtree 0.9:

(ibis-env) root@a14be6873e30:/ibis# python
Python 3.6.7 | packaged by conda-forge | (default, Nov  6 2019, 16:19:42) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ['PATH']
'/opt/conda/envs/ibis-env/bin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
>>> import rtree
>>> os.environ['PATH']
'/opt/conda/envs/ibis-env/bin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;/opt/conda/envs/ibis-env/lib'
>>> rtree.__version__
'0.9.1'

This seems to be a new bug in 0.9:

(ibis-env) root@a14be6873e30:/ibis# python
Python 3.6.7 | packaged by conda-forge | (default, Nov  6 2019, 16:19:42) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ['PATH']
'/opt/conda/envs/ibis-env/bin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
>>> import rtree
>>> import os
>>> os.environ['PATH']
'/opt/conda/envs/ibis-env/bin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
>>> rtree.__version__
'0.8.3'
>>> 

The impact of this is that our CI is failing due because it can no longer create subprocess with the incorrect PATH, and we would have to ping to 0.8.3 of rtree until this is fixed. (We picked the dependency via geopandas). I wonder if folks can take a look? Much appreciated!

@hobu
Copy link
Member

hobu commented Dec 3, 2019

Should be fixed in #125

Can you try master and see if it cures the issue for you?

@hobu hobu closed this as completed Dec 3, 2019
@icexelloss
Copy link
Author

Thanks much for the quick fix! Two followup questions:

  • What's the reason to add envs/ibis-env/lib to PATH? My understanding is that PATH is only used for executables?
  • I wonder when a 0.9.2 can be released (and I can remove the version ping from our side?)

@hobu
Copy link
Member

hobu commented Dec 3, 2019

What's the reason to add envs/ibis-env/lib to PATH? My understanding is that PATH is only used for executables?

I was trying to be cute to attempt to remove a bunch of messy path munging that was going on in 0.8.x. I think I will revert back to 0.8.x's behavior however, because a lot of people have put up scaffolding around it.

0.9.2 will be released by the end of the week.

@icexelloss
Copy link
Author

icexelloss commented Dec 3, 2019

Great! Thanks again for the quick fix.

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

2 participants