Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

adding py-earth to a conda repository #123

Closed
mehdidc opened this issue Jun 27, 2016 · 37 comments
Closed

adding py-earth to a conda repository #123

mehdidc opened this issue Jun 27, 2016 · 37 comments

Comments

@mehdidc
Copy link
Contributor

mehdidc commented Jun 27, 2016

@fabianp @mblondel I think it could be nice to add py-earth to the conda repository you built for lightning in https://anaconda.org/scikit-learn-contrib. What do you think ? is there a way to access that account to upload new packages ? otherwise I can take care of compiling the code and send you the tarball if it is ok for you.

@mehdidc mehdidc changed the title adding py-earth to conda repository adding py-earth to a conda repository Jun 27, 2016
@fabianp
Copy link
Member

fabianp commented Jun 28, 2016

Hi,

I could add you to that organization on conda so you ads packages, but I
was myself thinking of migrating to conda-forge as they take care of the
build infrastructure
On Jun 27, 2016 11:43 PM, "Mehdi Cherti" notifications@github.com wrote:

@fabianp https://github.com/fabianp @mblondel
https://github.com/mblondel I think it could be nice to add py-earth to
the conda repository you built for lightning in
https://anaconda.org/scikit-learn-contrib. What do you think ? is there a
way to access that account to upload new packages ? otherwise I can take
care of compiling the code and send you the tarball if it is ok for you.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#123, or mute
the thread
https://github.com/notifications/unsubscribe/AAQ8hyQD4-61K1_zHlUElcvNFYj0zXGwks5qQEPwgaJpZM4I_iYi
.

@mehdidc
Copy link
Contributor Author

mehdidc commented Jun 28, 2016

Thanks @fabianp, I was not aware of conda-forge, if they take care of the build infastructure (moreover, I have seen that they support windows as well as osx and linux) then let's use it.

@jimmywan
Copy link

Any news on this front? Would like to have this available via conda. :)

@jcrudy
Copy link
Collaborator

jcrudy commented Jan 18, 2017

I've been pretty busy with other things lately, so not much progress has been made in terms of releasing version 0.1 (which would then go on pypi and conda). It's been a long time since anyone has found a serious bug in py-earth, so probably I should just call what we now have 0.1 and release it. I'll try to do that soon. Feel free to bug me about it.

@jimmywan
Copy link

jimmywan commented Feb 21, 2017

Feel free to bug me about it.

:)

@jcrudy
Copy link
Collaborator

jcrudy commented Feb 26, 2017

Feel free to bug me about it.

:)

@jimmywan Keep up the good work! I'm going to try to get to this soon, but it never hurts to prod me further.

@jimmywan
Copy link

jimmywan commented May 5, 2017

bump

@jcrudy
Copy link
Collaborator

jcrudy commented May 10, 2017

I should have time next week! @jimmywan, if I don't update next week, feel free to bump this thread again.

@jimmywan
Copy link

jimmywan commented Jun 2, 2017

Any progress? I'm still interested because I ran into problems trying to install this by hand.

I found a few links from others mentioning the same difficulties related to one of the dependencies and getting the right version of gcc (forgot which one).

@jcrudy
Copy link
Collaborator

jcrudy commented Jun 3, 2017

@jimmywan I made some progress, but hit a snag with a bug that shows up on Windows 32 bit systems and ran out of time to work on it. I'll try to move forward soon, though. Can you describe the problems you ran into, and share any links you think are relevant?

@tomarharsh14
Copy link

bump

@onacrame
Copy link

onacrame commented Oct 4, 2017

Another bump. A conda package would be great.

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 4, 2017

Thanks for the encouragement, everyone. I've been super busy, and unfortunately am unfamiliar with enough with the process of creating a conda repo that it would probably take me at least a full day to figure out. If anyone reading this has experience with conda repos and wants to help, it would of course be welcome and appreciated. Otherwise, I'll try to get to this as soon as I can, and please feel free to keep bumping this thread to remind me.

@jameschartouni
Copy link

Is the conda package out? I am having a hell of a time trying to install this package on a Windows 10 machine. Do you have any suggestions? Can't wait to use the package. Thanks.

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

@jameschartouni It is not, and probably won't be for some time. If you post your errors I may be able to help with the installation.

@jameschartouni
Copy link

I cloned the repo, cd in the py-earth directory and ran 'python setup.py install' using python3. I want to refrain from pasting all the processing messages, but the final result is: Using c:\users\james\appdata\local\programs\python\python36-32\lib\site-packages
Finished processing dependencies for py-earth==0+untagged.491.gbc830fb . When I launch python3 and try to import pyearth, it fails. The only warning message is 'no files found matching 'pyearth\test\pathological_data'

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

@jameschartouni That's a problem I haven't seen before. Three questions:

  1. When you launch python3 and try the import, are you still in the cloned repo? If so, that could be a problem. Changing to another directory might fix it or at least give a better error message.

  2. Can you post the full stack trace from the error when you try to import?

  3. Can you post specifics about your platform: Is it 32 bit or 64? What C compiler are you using? Are you using Anaconda or something else?

I primarily use python 2 on linux and mac, so it's entirely possible this is a bug in py-earth that I need to fix. I do test on Windows and python 3, but there are many different configurations.

@jameschartouni
Copy link

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import pyearth
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\py_earth-0+untagged.491.gbc830fb-py3.6-win32.egg\pyearth_init_.py", line 6, in
from .earth import Earth
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\py_earth-0+untagged.491.gbc830fb-py3.6-win32.egg\pyearth\earth.py", line 1, in
from ._forward import ForwardPasser
File "pyearth/_basis.pxd", line 5, in init pyearth._forward
cdef class BasisFunction:
File "pyearth/_basis.pyx", line 15, in init pyearth._basis
ModuleNotFoundError: No module named 'six'

@jameschartouni
Copy link

I am also using Anaconda. Trying to figure out which C compiler I am using. I normally use a mac, but am using Windows 10 for work.

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

@jameschartouni Do you have the package six installed? If not, you'll need to install it. I thought it was a standard module, but a quick search shows I was wrong.

@jameschartouni
Copy link

Installed package six.

from pyearth import Earth
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\py_earth-0+untagged.491.gbc830fb-py3.6-win32.egg\pyearth_init_.py", line 6, in
from .earth import Earth

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

@jameschartouni I think that stack trace got cut off?

@jameschartouni
Copy link

oh sorry. this is the last line.

ModuleNotFoundError: No module named 'pyearth.earth'

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

@jameschartouni I suggest you uninstall the package and then reinstall. Perhaps installing without six messed you up. It seems like there could possibly be some issue with paths or with different versions of python coming into play, but I'm not sure. If you give me the full sequence of commands and output I might have a better guess.

@jameschartouni
Copy link

Deleted the pyearth folder in my users directory as well as the accompanying folder under site packages.
Cloned from git, cd into the folder. Ran setup with python 3.6.

C:\Users\james>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import pyearth
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\py_earth-0+untagged.491.gbc830fb-py3.6-win32.egg\pyearth_init_.py", line 6, in
from .earth import Earth
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\py_earth-0+untagged.491.gbc830fb-py3.6-win32.egg\pyearth\earth.py", line 1, in
from ._forward import ForwardPasser
File "pyearth/_qr.pxd", line 4, in init pyearth._forward
cdef class UpdatingQT:
File "pyearth/_qr.pyx", line 1, in init pyearth.qr
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\linalg_init
.py", line 175, in
from .misc import *
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\linalg\misc.py", line 5, in
from .blas import get_blas_funcs
File "C:\Users\james\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scipy\linalg\blas.py", line 155, in
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.

@jameschartouni
Copy link

I could post the full install trace if you want. It is just very long.

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 18, 2017

It looks like your scipy isn't installed correctly. Are you able to use scipy? Specifically, a compiled module within scipy, scipy.linalg._fblas, is failing to load. It seems similar to this:
https://stackoverflow.com/questions/25406492/importing-scipy-or-scikit-image-from-scipy-linalg-import-fblas-import-error

@jameschartouni
Copy link

What seemed to fix it was deleting everything, installing numpy+mkl, then scipy. Thanks!

@jameschartouni
Copy link

Do you have any recommendations for how to add the pyearth package to my conda install of python?

@jcrudy
Copy link
Collaborator

jcrudy commented Oct 19, 2017

@jameschartouni Glad it's working. I'm not sure what you mean by add it to your conda install? If you're referring to a conda environment, it should be installed in whichever one you were using when you installed it.

@Fish-Soup
Copy link

Hi any news on if py-earth has been added to conda?

cheers

@jcrudy
Copy link
Collaborator

jcrudy commented Feb 15, 2018

@Fish-Soup @rth has generously taken charge of this, and I think might be finished or nearly finished. See the following:

conda-forge/staged-recipes#5108

#178

Also, py-earth is already on pypi and can be installed with pip install sklearn-contrib-py-earth.

@rth
Copy link

rth commented Feb 16, 2018

Yes, py-earth was added to conda-forge, and can now be installed with,

conda install -c conda-forge sklearn-contrib-py-earth

cf https://github.com/conda-forge/sklearn-contrib-py-earth-feedstock for more details.

@Fish-Soup
Copy link

Cheers this helped a lot. My team are setting up a conda environment and this was very helpful.

@MacYeh
Copy link

MacYeh commented Jun 22, 2018

Thanks for the development on conda repo. It helps me a lot

@jens120
Copy link

jens120 commented May 23, 2019

would someone be so kind as to release a binary for 3.7?
I could not compile on windows with Visual C++ Build Tools. The error was cl.exe exit status 2
In the end I ended up installing the precompiled wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/

@rth
Copy link

rth commented Jul 16, 2019

Closing since py-earth can now be installed from conda-forge.

would someone be so kind as to release a binary for 3.7?

@jens120 #191 would need to be resolved first. Probably better a separate issue about wheels for 3.7.

@rth rth closed this as completed Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests