Sort:  

In my case (and my pumpkins), the problem was the high heat during the summer, when the pumpkin seeds are ripe (April,May-October).
Greenhouses are used here for some other crops.