shoebot icon indicating copy to clipboard operation
shoebot copied to clipboard

Run shoebot with Anaconda Python on OSX?

Open karstenw opened this issue 5 years ago • 7 comments

Did anybody manage to run shoebot on osx with anaconda python?

I want to try it out without installing the usual package managers.

karstenw avatar May 05 '20 17:05 karstenw

If you want to use shoebot on a new package manager, like anaconda - see if you can install packages for pango and pygbject3, that contains most the things needed to run the commandline version, sbot.

To get going with the IDE you also need gtksourceview.

There are lists of packages in the install_dependencies.sh script, DEB_PACKAGES and HOMEBREW_PACKAGES are up to date, so if you are missing anything look there for clues.

Keep track of what you install and if you get things working we can add what you find.

Feel free to keep us up to date here.

stuaxo avatar May 05 '20 20:05 stuaxo

If that is too much hassle, then homebrew is working pretty well with the version in git.

The install_dependencies.sh script will install everything you need, and travis ensures that it stays working.

Nobody has got this working with anaconda and come and told us how to do it unfortunately, and I'm not familiar with it.

stuaxo avatar May 06 '20 13:05 stuaxo

I prob need to poke this again, I always get a bit confused every time I try, some questions you might know answers for:

Is this pygobject package "official", and is it OK to depend on it ? https://anaconda.org/conda-forge/pygobject

Should I worry about warning on that page about "non official" tags ?

If it's possible to get Shoebot working with anaconda after installing that and some of the other things, then I guess it's not too much further to work out how to make a proper Anaconda package.

stuaxo avatar May 08 '20 14:05 stuaxo

I prob need to poke this again, I always get a bit confused every time I try, some questions you might know answers for:

I am proficient with nodebox and python 2.

Is this pygobject package "official", and is it OK to depend on it ? https://anaconda.org/conda-forge/pygobject

I could install it with conda install -c conda-forge pygobject

Now it hangs with import pubsub which seem to exist only for linux in anaconda.

Should I worry about warning on that page about "non official" tags ?

I dont know.

If it's possible to get Shoebot working with anaconda after installing that and some of the other things, then I guess it's not too much further to work out how to make a proper Anaconda package.

I definitely aim for that.

karstenw avatar May 08 '20 16:05 karstenw

Can you mix anaconda with packages from pip ?

If so, I'd try installing pubsub with pip for now.

If it works, then we might be able to use vendorize to include it with a package built for anaconda.

stuaxo avatar May 08 '20 19:05 stuaxo

I'm on Linux, so I'm not sure I should be commenting on this, but... Anaconda people advise against mixing pip and conda installs https://www.anaconda.com/blog/using-pip-in-a-conda-environment

Nevertheless... I'm helpless memorizing new stuff like how to use "virtualenv" and I'm stuck with conda activate so I have done a pip install inside a conda enviroment and it's working, for now. One day everything will come crashing in my head and I'll have to start over. I feel very grateful for people like @stuaxo who can package things and think about vendorizing.

villares avatar Feb 26 '21 15:02 villares

Well... I really only can package for pip the other stuff is outside my experience.

Hopefully some of the upcoming work will make it a little easier as we untangle some of our dependencies.

stuaxo avatar Feb 27 '21 13:02 stuaxo