dingykhan1 / scoop

Automatically exported from code.google.com/p/scoop
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Specify zmq location on the command line #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download 0.7.1 tarball, open it and cd into the directory 

2. Try to install it with:

python setup.py install --prefix=$MY_INSTALL_DIR

Tells to use the --zmq option. 

3. Using the --zmq option says there is not such an option:

python setup.py install --prefix=$MY_INSTALL_DIR 
--zmq=/glade/apps/opt/zeromq/3.2.2/intel/12.1.5/ 

What is the expected output? What do you see instead?

ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ python 
setup.py install --prefix=$MY_INSTALL_DIR

(....a bunch of irrelevant output....)

error: command 'gcc' failed with exit status 1

Failed with default libzmq, trying again with /usr/local
************************************************
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       /usr/local
Assembler messages:
Fatal error: can't create 
build/temp.linux-x86_64-2.7/scratch/tmp/easy_install-L0czGy/pyzmq-14.3.1/temp/ti
mer_create9prql0.o: No such file or directory
build/temp.linux-x86_64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No such 
file or directory
 #include "zmq.h"
                 ^
compilation terminated.

error: command 'gcc' failed with exit status 1

************************************************
Warning: Failed to build or run libzmq detection test.

If you expected pyzmq to link against an installed libzmq, please check to make 
sure:

    * You have a C compiler installed
    * A development version of Python is installed (including headers)
    * A development version of ZMQ >= 2.1.4 is installed (including headers)
    * If ZMQ is not in a default location, supply the argument --zmq=<path>
    * If you did recently install ZMQ to a default location,
      try rebuilding the ld cache with `sudo ldconfig`
      or specify zmq's location with `--zmq=/usr/local`

You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:

    `--zmq=bundled`

I will now try to build libzmq as a Python extension
unless you interrupt me (^C) in the next 10 seconds...

 9...error: Setup script exited with interrupted

ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ python 
setup.py install --prefix=$MY_INSTALL_DIR 
--zmq=/glade/apps/opt/zeromq/3.2.2/intel/12.1.5/ 

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --zmq not recognized

ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ python 
setup.py --zmq=/glade/apps/opt/zeromq/3.2.2/intel/12.1.5/ install 
--prefix=$MY_INSTALL_DIR                                                        

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --zmq not recognized

ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ python -c 
"import zmq; print 'It is there'"
It is there
ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ 

What version of the product are you using? On what operating system?
ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ python -V
Python 2.7.7
ddvento@geyser07 /glade/scratch/ddvento/build/scoop-0.7.1.release $ lsb_release 
-a
LSB Version:    
:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd6
4:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release:        6.4
Codename:       Santiago

Please provide any additional information below.

Original issue reported on code.google.com by ddve...@ucar.edu on 10 Jul 2014 at 9:55

GoogleCodeExporter commented 8 years ago
When you install SCOOP, it checks if the prerequisites (such as greenlets, 
pyzmq, etc.) are installed. If they aren't, they will be installed.

What happens is that you don't have pyzmq installed in your Python environment, 
the SCOOP setup tries to install it. What you saw is actually the pyzmq 
installer which claims that you can pass a --zmq parameter to it.

The way to fix this problem is to install pyzmq beforehand, to which you will 
be able to pass the --zmq parameter. Either download the tarball or clone the 
github ( https://github.com/zeromq/pyzmq ), install it and then SCOOP will 
install without problem.

Original comment by yannickh...@gmail.com on 15 Jul 2014 at 3:23

GoogleCodeExporter commented 8 years ago
Ok, the part of the --zmq is not a scoop error. However, pyzmq is
installed and available as demonstrated by the line

python -c "import zmq; print 'It is there'"

(which I pasted in the output) and scoop does not pick it. Why?

Original comment by ddve...@ucar.edu on 15 Jul 2014 at 3:40