Comments (16)
I just got the same issue as @dtsmith2001 with scikit-learn
. I had to write manually a recipe for scikit-learn
because I needed the package compatible with numpy=1.6
, which was not a big deal.
In OSX:
$ conda skeleton pypi scikit-learn
Warning, the following versions were found for scikit-learn
0.17b1
0.16.1
0.16.0
0.16b1
0.15.2
0.15.1
0.15.0
0.15.0b2
0.15.0b1
0.14.1
0.14
0.14a1
0.13.1
0.13
0.12.1
0.12
0.11
0.10
0.9
Using 0.17b1
Use --version to specify a different version.
Using url https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.17b1.tar.gz (7.5 MB) for scikit-learn.
Downloading scikit-learn
Using cached download
Unpacking scikit-learn...
done
working in /var/folders/55/nbg15c6j4k3cg06tjfhqypd40000gn/T/tmpf5347bconda_skeleton_scikit-learn-0.17b1.tar.gz
Fetching package metadata: ..........
Solving package specifications: ...............
The following NEW packages will be INSTALLED:
pyyaml: 3.11-py27_1 defaults
yaml: 0.1.6-0 defaults
The following packages will be UPDATED:
numpy: 1.6.2-py27_4 defaults --> 1.10.1-py27_0 defaults
Unlinking packages ...
[ COMPLETE ]|###################################################| 100%
Linking packages ...
[ COMPLETE ]|###################################################| 100%
Applying patch: '/var/folders/55/nbg15c6j4k3cg06tjfhqypd40000gn/T/tmpf5347bconda_skeleton_scikit-learn-0.17b1.tar.gz/pypi-distutils.patch'
patching file core.py
Hunk #1 succeeded at 169 with fuzz 2 (offset 2 lines).
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "setup.py", line 247, in <module>
setup_package()
File "setup.py", line 243, in setup_package
setup(**metadata)
File "/Users/rolando/miniconda/envs/_build/lib/python2.7/site-packages/numpy/distutils/core.py", line 130, in setup
if dist.help or not _command_line_ok():
AttributeError: 'NoneType' object has no attribute 'help'
$PYTHONPATH = /var/folders/55/nbg15c6j4k3cg06tjfhqypd40000gn/T/tmpf5347bconda_skeleton_scikit-learn-0.17b1.tar.gz/scikit-learn-0.17b1
Error: command failed: /Users/rolando/miniconda/envs/_build/bin/python setup.py install
$ conda info
Current conda install:
platform : osx-64
conda version : 3.18.3
conda-build version : 1.18.1
python version : 2.7.10.final.0
requests version : 2.7.0
In Linux:
$ conda skeleton pypi scikit-learn
Warning, the following versions were found for scikit-learn
0.17b1
0.16.1
0.16.0
0.16b1
0.15.2
0.15.1
0.15.0
0.15.0b2
0.15.0b1
0.14.1
0.14
0.14a1
0.13.1
0.13
0.12.1
0.12
0.11
0.10
0.9
Using 0.17b1
Use --version to specify a different version.
Using url https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.17b1.tar.gz (7.5 MB) for scikit-learn.
Downloading scikit-learn
Using cached download
Unpacking scikit-learn...
done
working in /tmp/tmp4Ngct2conda_skeleton_scikit-learn-0.17b1.tar.gz
Fetching package metadata: ......
Solving package specifications: .................
Applying patch: '/tmp/tmp4Ngct2conda_skeleton_scikit-learn-0.17b1.tar.gz/pypi-distutils.patch'
patching file core.py
Hunk #1 succeeded at 168 with fuzz 2 (offset 2 lines).
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "setup.py", line 247, in <module>
setup_package()
File "setup.py", line 237, in setup_package
.format(scipy_req_str, instructions))
ImportError: Scientific Python (SciPy) is not installed.
scikit-learn requires SciPy >= 0.9.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html
$PYTHONPATH = /tmp/tmp4Ngct2conda_skeleton_scikit-learn-0.17b1.tar.gz/scikit-learn-0.17b1
Error: command failed: /home/rolando/miniconda/envs/_build/bin/python setup.py install
$ conda info
Current conda install:
platform : linux-64
conda version : 3.18.3
conda-build version : 1.18.1
python version : 2.7.10.final.0
requests version : 2.8.1
from conda-build.
Fixed that problem. The real issue is this
$conda skeleton pypi numpy
More than one source version is available for numpy:
0: https://pypi.python.org/packages/source/n/numpy/numpy-1.8.0.tar.gz (3.6 MB)
1: https://pypi.python.org/packages/source/n/numpy/numpy-1.8.0.zip (4.1 MB)
Which version should I use? 0
Using url https://pypi.python.org/packages/source/n/numpy/numpy-1.8.0.tar.gz (3779617) for numpy.
This is the license for numpy
BSD
What license string should I use? BSD
Downloading numpy (use --no-download to skip this step)
Using cached download
Unpacking numpy...
done
working in /var/folders/yc/8wpl9rlx47qgzxqpcf003k280000gn/T/tmp30makxconda_skeleton
Running from numpy source directory.
Traceback (most recent call last):
File "setup.py", line 217, in <module>
setup_package()
File "setup.py", line 210, in setup_package
configuration=configuration )
File "/private/var/folders/yc/8wpl9rlx47qgzxqpcf003k280000gn/T/tmp30makxconda_skeleton/numpy-1.8.0/numpy/distutils/core.py", line 130, in setup
if dist.help or not _command_line_ok():
AttributeError: 'NoneType' object has no attribute 'help'
$PYTHONPATH = /var/folders/yc/8wpl9rlx47qgzxqpcf003k280000gn/T/tmp30makxconda_skeleton/numpy-1.8.0
Error: command failed: /Users/aaronmeurer/anaconda/bin/python setup.py install
from conda-build.
Update; My problem was user error. I'm keeping the comment so I can navigate between my hints :). 2014-05-04Sun.19:51:06
Is this the same as my error , I couldn't the numpy version to change? http://stackoverflow.com/questions/23458593/conda-example-does-not-work-it-shows-newer-not-older-numpy
This was part of my long saga of trials, see #100 Cannot access specific Binstar version.
//AnneTheAgile
from conda-build.
The issue is that we patch distutils, but numpy has its own distutils, which expects the real distutils to work.
from conda-build.
Got bitten by this today, trying to build a package which uses numpy.distutils. Any possible workaround?
from conda-build.
Packages that use numpy.distutils generally work. Which package were you trying to build?
from conda-build.
This one specifically (v0.2.0):
http://github.com/Pybonacci/poliastro
In the end it was a minor problem, I just wrote the meta.yaml by hand.
On Dec 27, 2014 9:43 PM, "Aaron Meurer" [email protected] wrote:
Packages that use numpy.distutils generally work. Which package were you
trying to build?Reply to this email directly or view it on GitHub
#76 (comment).
from conda-build.
I see. We may have to patch numpy.distutils as well. Or maybe there is a simpler workaround.
from conda-build.
I intended to create a NumPy package compiled against OpenBLAS and ran this command which failed the same way. This is a Miniconda3 installation. The strange thing is that this exception, once encountered, breaks my IPython:
Traceback (most recent call last):
File "/home/ozan/miniconda3/bin/ipython", line 6, in <module>
sys.exit(start_ipython())
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/__init__.py", line 120, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/config/application.py", line 563, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/config/application.py", line 92, in catch_config_error
return method(app, *args, **kwargs)
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/terminal/ipapp.py", line 332, in initialize
self.init_shell()
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/terminal/ipapp.py", line 348, in init_shell
ipython_dir=self.ipython_dir, user_ns=self.user_ns)
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/config/configurable.py", line 354, in instance
inst = cls(*args, **kwargs)
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/terminal/interactiveshell.py", line 328, in __init__
**kwargs
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 483, in __init__
self.init_readline()
File "/home/ozan/miniconda3/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 1843, in init_readline
self.readline_startup_hook = readline.set_startup_hook
AttributeError: 'module' object has no attribute 'set_startup_hook'
Any clues?
from conda-build.
Hmm removing conda-bld
folder fixed my ipython back.
from conda-build.
Pff, actually it was caused because I was in conda-recipes
folder which also includes an ipython
folder. I hate this import caused non-intuitive Python exceptions :)
from conda-build.
Same problems as Juanlu001 when using numpy.distutils.
Specific conda command:
conda skeleton pypi anuga
Package http://github.com/stoiver/anuga_core
My setup.py is quite similar to the one used by Juanlu001 in the package http://github.com/Pybonacci/poliastro
Here is the error
(anuga_clean)steve@bottineau:~/Sandpit$ conda skeleton pypi anuga
Using url https://pypi.python.org/packages/source/a/anuga/anuga-1.3.8.tar.gz (12.4 MB) for anuga.
Downloading anuga (use --no-download to skip this step)
Using cached download
Unpacking anuga...
done
working in /tmp/tmpelPQqqconda_skeleton_anuga-1.3.8.tar.gz
Fetching package metadata: ......
Solving package specifications: .
Applying patch: '/tmp/tmpelPQqqconda_skeleton_anuga-1.3.8.tar.gz/pypi-distutils.patch'
patching file core.py
Hunk #1 succeeded at 168 with fuzz 2 (offset 2 lines).
Running from anuga source directory.
Traceback (most recent call last):
File "setup.py", line 184, in <module>
setup_package()
File "setup.py", line 178, in setup_package
setup(**metadata)
File "/home/steve/miniconda/envs/_build/lib/python2.7/site-packages/numpy/distutils/core.py", line 130, in setup
if dist.help or not _command_line_ok():
AttributeError: 'NoneType' object has no attribute 'help'
$PYTHONPATH = /tmp/tmpelPQqqconda_skeleton_anuga-1.3.8.tar.gz/anuga-1.3.8
Error: command failed: /home/steve/miniconda/envs/_build/bin/python setup.py install
from conda-build.
Any work-around or fix?
Have the same problem with
conda skeleton pypi openopt
from conda-build.
I am not able to run
conda skeleton pypi scikit-learn
either. This issue was reported in May 2014. I haven't been able to find a work-around after doing numerous searches. Is there indeed a work-around or fix?
I am using Anaconda 3 version 2.2.0 with scikit-learn 0.16.1. I did a fresh installation of Anaconda and followed the recipe in http://conda.pydata.org/docs/build_tutorials/pkgs.html to build pyinstrument. Building pandas with
conda skeleton pypi pandas
worked just fine. It's scikit-learn that has a problem. I am running Windows 7 x64.
I finally got a working version on my non-networked box by using
conda update scikit-learn
on my networked box and then copying the Lib\site-package\sklearn + egg file over to the other box.
from conda-build.
Hi there, thank you for your contribution to conda-build
!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
-
Verify that you can still reproduce the issue in the latest version of
conda-build
-
Comment that the issue is still reproducible and include:
- What version of
conda-build
you reproduced the issue on - What OS and version you reproduced the issue on
- What steps you followed to reproduce the issue
- It would also be helpful to have the output of the following commands available:
conda info
conda config --show-sources
conda list --show-channel-urls
NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue.
In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again.
Thanks!
from conda-build.
Hi again!
This issue has been closed since it has not had recent activity.
Please don't hesitate to leave a comment if that was done prematurely.
Thank you for your contribution.
from conda-build.
Related Issues (20)
- ENH: Improve stdlib-handling HOT 3
- conda build fails to parse version containing dash '-' HOT 5
- `conda-build` Mind Map HOT 3
- screen flickering issue
- Continued incorrect rpath fixups for libraries symlinked into `$PREFIX/lib` HOT 5
- Remove or update warnings related to "conda-build 4.0"
- Release 24.3.x HOT 1
- Don't bother to produce repodata.json.bz2 when calling conda-index internally
- Update conda-build to remove libarchive-style zstd:compression-level compression tuple
- Stdlib: c_stdlib_version falsely determined as unset HOT 9
- conda constructor never exits when "No space left on device" HOT 1
- Conda-build tutorial needs to be updated HOT 1
- FileNotFoundError: [WinError 2]
- Recipe rendering very slow in certain cases HOT 3
- conda-build not yet compatible with LIEF 0.14 API changes
- windows build failure trying to rename directory held by different process HOT 1
- Conda index CLI reference page maybe should be updated to reference separate conda-index tool HOT 1
- Conda mis-resolved the python version requirement the excluded the specified one HOT 1
- Remove `sys.exit` calls HOT 2
- noarch generic doesn't work as expected when python in host in multi-output HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-build.