basemap icon indicating copy to clipboard operation
basemap copied to clipboard

Consider moving the pip package away from sourceforge

Open FLamparski opened this issue 8 years ago • 15 comments

Currently, the url for basemap in pypi points at https://downloads.sourceforge.net/project/matplotlib/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz. This means that in order to install basemap, one has to type the rather scary-looking and lengthy pip3 install --allow-external basemap --allow-unverified basemap basemap. Given this and some relatively shady stuff sourceforge have engaged in recently, I think it's a good idea for you to move the distribution and update the pypi listing accordingly.

FLamparski avatar Aug 09 '15 19:08 FLamparski

I've found this too, it makes installation of basemap a bit of a pest when using pip. And I'd echo the sentiments about sourceforge as well.

markmuetz avatar Aug 11 '15 09:08 markmuetz

These are valid points, and it is something to consider. Previously, the limitation in hosting the basemap package on pypi has been its size. Perhaps that can be revisited?

On Tue, Aug 11, 2015 at 5:17 AM, Mark Muetzelfeldt <[email protected]

wrote:

I've found this too, it makes installation of basemap a bit of a pest when using pip. And I'd echo the sentiments about sourceforge as well.

— Reply to this email directly or view it on GitHub https://github.com/matplotlib/basemap/issues/198#issuecomment-129785550.

WeatherGod avatar Aug 11 '15 14:08 WeatherGod

Relevant thread : https://github.com/matplotlib/matplotlib/issues/2715 Maybe file size limit of 50MB?

matthew-brett avatar Aug 11 '15 15:08 matthew-brett

Thread rezz-ing. @dstufft, you have helped us out before with file-size limits for matplotlib on PyPi (https://github.com/matplotlib/matplotlib/issues/2715). The problem is significantly worse for basemap, as the tarball is just under 130MB. What are our options?

WeatherGod avatar Oct 30 '15 18:10 WeatherGod

If you can wait until Warehouse is ready (scheduled to be early 2016), we'll have the ability to allow larger file sizes for specific projects so we can whitelist particular ones to have larger upload limits (our theoretical maximum will be several GB... but at some point we start running into problems with the cost of storing multiple releases of giant packages). In any case, 130MB for a well established project like matplotlib shouldn't be an issue once we can loosen the restrictions on a per project basis.

dstufft avatar Oct 30 '15 21:10 dstufft

@dstufft Is Warehouse ready to be used for basemap now? As far as I can see it's still in development but at least partially operational. @WeatherGod Would it be a good idea to test hosting basemap there now?

fbender avatar May 18 '16 16:05 fbender

Yea, you can upload to Warehouse now, but you'll want to be aware of pypa/warehouse#1194.

dstufft avatar May 18 '16 16:05 dstufft

Is that true even if the package was never hosted on pypi directly? basemap was always hosted from sourceforge.

On Wed, May 18, 2016 at 12:45 PM, Donald Stufft [email protected] wrote:

Yea, you can upload to Warehouse now, but you'll want to be aware of pypa/warehouse#1194 https://github.com/pypa/warehouse/issues/1194.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/matplotlib/basemap/issues/198#issuecomment-220087525

WeatherGod avatar May 18 '16 16:05 WeatherGod

Yea, but you only have to do it once each time you upload (and once the issue is fixed, never again).

dstufft avatar May 18 '16 16:05 dstufft

What is the current stage of this issue? I an trying to write some tutorials using basemap, and I want to minimilise the effort of installing it.

quang-ha avatar Aug 25 '16 13:08 quang-ha

any news, @WeatherGod ?

I'm also in a similar situation of @quang-ha:

$ pip search basemap
basemap (1.0.7)         - Plot data on map projections with matplotlib
projmap (0.7.2)         - High level wrapper of matplotlib-Basemap
tilemapbase (0.4.3)     - Use OpenStreetMap tiles as basemaps in python / matplotlib
basemap_Jim (0.1.1)     - basemap of Northwestern Atlantic Coastline for python plotting  .
Circles (0.1)           - Draw correctly-projected circles on a Basemap plot
daynight2geojson (0.1)  - Get day and night global geometry and dumps to a GeoJSON file. Builded on top of
                          Matplotlib Basemap Toolkit Library.
(venv) 
$ pip install basemap
Collecting basemap
  Could not find a version that satisfies the requirement basemap (from versions: )
No matching distribution found for basemap
(venv)

heitorPB avatar Oct 16 '18 11:10 heitorPB

any news, @WeatherGod ?

I'm also in a similar situation of @quang-ha:

$ pip search basemap
basemap (1.0.7)         - Plot data on map projections with matplotlib
projmap (0.7.2)         - High level wrapper of matplotlib-Basemap
tilemapbase (0.4.3)     - Use OpenStreetMap tiles as basemaps in python / matplotlib
basemap_Jim (0.1.1)     - basemap of Northwestern Atlantic Coastline for python plotting  .
Circles (0.1)           - Draw correctly-projected circles on a Basemap plot
daynight2geojson (0.1)  - Get day and night global geometry and dumps to a GeoJSON file. Builded on top of
                          Matplotlib Basemap Toolkit Library.
(venv) 
$ pip install basemap
Collecting basemap
  Could not find a version that satisfies the requirement basemap (from versions: )
No matching distribution found for basemap
(venv)
  • Installing from the URL should work:
# v1.2.0rel
$ pip install https://github.com/matplotlib/basemap/archive/v1.2.0rel.tar.gz
# v1.1.0
$ pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz

da115115 avatar Nov 02 '18 21:11 da115115

PR #433 discusses about this issue.

heitorPB avatar Nov 02 '18 22:11 heitorPB

I solved this by uninstalling the conda and reinstalling, defining on installation the conda path on variable environment. After, at settings on your project, set the project interpreter to C:\Users\the_user_name\anaconda3\python.exe, then try to install the basemap. It was the only way I got this, after many tries and bugs with pip I tried with conda and that's it.

ver0z avatar May 13 '20 17:05 ver0z

I'm not sure I understand. I have just installed anaconda after a few days of pip problems. not sure where to go from here

remycloyd avatar Jun 17 '20 22:06 remycloyd