[GRASS-dev] pip install grass-session - No matching distribution found for grass-session

Hi Pietro, all,

with joy I have seen the new “grass-session” magic in the Wiki.

I tried to install it but

pip install grass-session
Collecting grass-session
Could not find a version that satisfies the requirement
grass-session (from versions: )
No matching distribution found for grass-session

With strace I see

write(1, “Collecting grass-session\n”, 25) = 25
stat(“/home/mneteler/tmp/pip-build-hTGeiS”, {st_mode=S_IFDIR|0700,
st_size=4096, …}) = 0
stat(“/home/mneteler/tmp/pip-build-hTGeiS/grass-session/setup.py”,
0x7ffd283bcb30) = -1 ENOENT (No such file or directory)
stat(“https://pypi.python.org/simple/grass-session/”, 0x7ffd283bc3b0)
= -1 ENOENT (No such file or directory)

Checking the web site:

https://pypi.python.org/simple/grass-session
→ Not Found (grass-session does not exist)

Is there another trick needed?

thanks
Markus

On Sun, Dec 17, 2017 at 2:44 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi Pietro, all,

with joy I have seen the new "grass-session" magic in the Wiki.

I tried to install it but

pip install grass-session
Collecting grass-session
  Could not find a version that satisfies the requirement
grass-session (from versions: )
No matching distribution found for grass-session

Ah, just discovered the trick:

https://grasswiki.osgeo.org/w/index.php?title=Working_with_GRASS_without_starting_it_explicitly&diff=0&oldid=24906

Now it works fine.

Markus

Hi Markus,

···

On Sun, Dec 17, 2017 at 5:11 PM, Markus Neteler <neteler@osgeo.org> wrote:

[…]

No matching distribution found for grass-session

Ah, just discovered the trick:

https://grasswiki.osgeo.org/w/index.php?title=Working_with_GRASS_without_starting_it_explicitly&diff=0&oldid=24906

Now it works fine.

Sorry if I didn’t replied to you, but I thought that the “best” reply was fix the missing information on the wikipage.
Thank you to pointing out the missing information, it is still under testing on my side.
I’m going to test and use for an analyses in the next weeks, after this I would like to publish it on pypi, and therefore should be installable with “pip install grass-session”.
Hopefully for the beginning of the next year.

Today, I found out: https://github.com/perrygeo/mower that it seems similar, my approach should be more flexible for multiprocessing (this is my impression).

If it works well for my use case, I will publish it on pypi, and I will write to grass-user.

Thank you for your interest.

Have a nice night.

All the best.

Pietro