pip install billy issues

Showing 1-4 of 4 messages
pip install billy issues Dan R 10/16/11 4:39 PM
I've been having some real issues installing billy (actually,
jellyfish appears to be the real problem). This is on a Windows 7 box
at home with VS 2008 Express installed. I'm actually fairly new to the
pip/easy_install in Python. Before this, I had issues with the
compiler not being found, some C library files not being available,
etc.

Here is my log file. Any help would be greatly appreciated.
-----
Requirement already satisfied (use --upgrade to upgrade): billy in c:
\python26\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade):
argparse==1.1 in c:\python26\lib\site-packages (from billy)
Downloading/unpacking jellyfish>=0.1.2 (from billy)
  Running setup.py egg_info for package jellyfish
    running egg_info
    writing pip-egg-info\jellyfish.egg-info\PKG-INFO
    writing top-level names to pip-egg-info\jellyfish.egg-info
\top_level.txt
    writing dependency_links to pip-egg-info\jellyfish.egg-info
\dependency_links.txt
    reading manifest file 'pip-egg-info\jellyfish.egg-info
\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info\jellyfish.egg-info
\SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
  Source in c:\users\dan\build\jellyfish has version 0.1.2, which
satisfies requirement jellyfish>=0.1.2 (from billy)
Downloading/unpacking lxml>=2.2 (from billy)
  Running setup.py egg_info for package lxml
    Building lxml version 2.3.1.
    Building without Cython.
    ERROR: 'xslt-config' is not recognized as an internal or external
command,
    operable program or batch file.

    ** make sure the development packages of libxml2 and libxslt are
installed **

    Using build configuration of libxslt
    running egg_info
    writing pip-egg-info\lxml.egg-info\PKG-INFO
    writing top-level names to pip-egg-info\lxml.egg-info
\top_level.txt
    writing dependency_links to pip-egg-info\lxml.egg-info
\dependency_links.txt
    reading manifest file 'pip-egg-info\lxml.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'lxml.etree.c' under directory
'src\lxml'
    warning: no files found matching 'lxml.objectify.c' under
directory 'src\lxml'
    warning: no files found matching 'lxml.etree.h' under directory
'src\lxml'
    warning: no files found matching 'lxml.etree_api.h' under
directory 'src\lxml'
    warning: no files found matching 'etree_defs.h' under directory
'src\lxml'
    warning: no files found matching 'pubkey.asc' under directory
'doc'
    warning: no files found matching 'tagpython*.png' under directory
'doc'
    warning: no files found matching 'Makefile' under directory 'doc'
    writing manifest file 'pip-egg-info\lxml.egg-info\SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
  Source in c:\users\dan\build\lxml has version 2.3.1, which satisfies
requirement lxml>=2.2 (from billy)
Requirement already satisfied (use --upgrade to upgrade): name-
tools>=0.1.2 in c:\python26\lib\site-packages\name_tools-0.1.2-
py2.6.egg (from billy)
Requirement already satisfied (use --upgrade to upgrade):
pymongo>=1.8.1 in c:\python26\lib\site-packages\pymongo-2.0.1-py2.6-
win32.egg (from billy)
Requirement already satisfied (use --upgrade to upgrade):
scrapelib>=0.5.4 in c:\python26\lib\site-packages\scrapelib-0.5.5-
py2.6.egg (from billy)
Requirement already satisfied (use --upgrade to upgrade):
validictory>=0.7.1 in c:\python26\lib\site-packages\validictory-0.7.2-
py2.6.egg (from billy)
Requirement already satisfied (use --upgrade to upgrade):
httplib2>=0.7.0 in c:\python26\lib\site-packages (from
scrapelib>=0.5.4->billy)
Installing collected packages: jellyfish, lxml
  Running setup.py install for jellyfish
    Running command C:\Python26\python.exe -c "import
setuptools;__file__='C:\\Users\\Dan\\build\\jellyfish\
\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record c:\users\dan\appdata\local\temp\pip-nmh5oc-record\install-
record.txt
    running install
    running build
    running build_ext
    building 'jellyfish' extension
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /
c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python26\include -IC:
\Python26\PC /Tcjellyfishmodule.c /Fobuild\temp.win32-2.6\Release
\jellyfishmodule.obj
    jellyfishmodule.c
    c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2146: syntax
error : missing ')' before identifier 'long_tolerance'
    c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2081:
'_Bool' : name in formal parameter list illegal
    c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2061: syntax
error : identifier 'long_tolerance'
    c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2059: syntax
error : ';'
    c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2059: syntax
error : ')'
    jellyfishmodule.c(28) : error C2054: expected '(' to follow
'inline'
    jellyfishmodule.c(28) : error C2085: 'normalize' : not in formal
parameter list
    jellyfishmodule.c(28) : error C2143: syntax error : missing ';'
before '{'
    jellyfishmodule.c(71) : warning C4013: 'jaro_winkler' undefined;
assuming extern returning int
    jellyfishmodule.c(72) : warning C4013: 'isnan' undefined; assuming
extern returning int
    jellyfishmodule.c(164) : warning C4013: 'normalize' undefined;
assuming extern returning int
    jellyfishmodule.c(164) : warning C4047: '=' : 'PyObject *' differs
in levels of indirection from 'int'
    jellyfishmodule.c(195) : warning C4047: '=' : 'PyObject *' differs
in levels of indirection from 'int'
    jellyfishmodule.c(319) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'
    jellyfishmodule.c(323) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'
    jellyfishmodule.c(327) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'
    error: command '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' failed with exit status 2
    Complete output from command C:\Python26\python.exe -c "import
setuptools;__file__='C:\\Users\\Dan\\build\\jellyfish\
\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record c:\users\dan\appdata\local\temp\pip-nmh5oc-record\install-
record.txt:
    running install

running build

running build_ext

building 'jellyfish' extension

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /
nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python26\include -IC:
\Python26\PC /Tcjellyfishmodule.c /Fobuild\temp.win32-2.6\Release
\jellyfishmodule.obj

jellyfishmodule.c

c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2146: syntax
error : missing ')' before identifier 'long_tolerance'

c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2081: '_Bool' :
name in formal parameter list illegal

c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2061: syntax
error : identifier 'long_tolerance'

c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2059: syntax
error : ';'

c:\users\dan\build\jellyfish\jellyfish.h(11) : error C2059: syntax
error : ')'

jellyfishmodule.c(28) : error C2054: expected '(' to follow 'inline'

jellyfishmodule.c(28) : error C2085: 'normalize' : not in formal
parameter list

jellyfishmodule.c(28) : error C2143: syntax error : missing ';' before
'{'

jellyfishmodule.c(71) : warning C4013: 'jaro_winkler' undefined;
assuming extern returning int

jellyfishmodule.c(72) : warning C4013: 'isnan' undefined; assuming
extern returning int

jellyfishmodule.c(164) : warning C4013: 'normalize' undefined;
assuming extern returning int

jellyfishmodule.c(164) : warning C4047: '=' : 'PyObject *' differs in
levels of indirection from 'int'

jellyfishmodule.c(195) : warning C4047: '=' : 'PyObject *' differs in
levels of indirection from 'int'

jellyfishmodule.c(319) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'

jellyfishmodule.c(323) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'

jellyfishmodule.c(327) : warning C4113: 'PyObject *(__cdecl *)
(PyObject *,PyObject *,PyObject *)' differs in parameter lists from
'PyCFunction'

error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
\BIN\cl.exe"' failed with exit status 2

----------------------------------------
Command C:\Python26\python.exe -c "import setuptools;__file__='C:\
\Users\\Dan\\build\\jellyfish\
\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record c:\users\dan\appdata\local\temp\pip-nmh5oc-record\install-
record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\pip-1.0.2-py2.6.egg\pip
\basecommand.py", line 126, in main
    self.run(options, args)
  File "C:\Python26\lib\site-packages\pip-1.0.2-py2.6.egg\pip\commands
\install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "C:\Python26\lib\site-packages\pip-1.0.2-py2.6.egg\pip\req.py",
line 1100, in install
    requirement.install(install_options, global_options)
  File "C:\Python26\lib\site-packages\pip-1.0.2-py2.6.egg\pip\req.py",
line 572, in install
    cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
  File "C:\Python26\lib\site-packages\pip-1.0.2-py2.6.egg\pip
\__init__.py", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command C:\Python26\python.exe -c "import
setuptools;__file__='C:\\Users\\Dan\\build\\jellyfish\
\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record c:\users\dan\appdata\local\temp\pip-nmh5oc-record\install-
record.txt failed with error code 1
Re: pip install billy issues Dan R 10/17/11 7:36 PM
Still not 100% sure what happened, but my original problem was
something like:
    error: unable to find vcvarsall.bat

To fix that, I installed VS 2008 Express on my machine. Then I started
getting the errors listed above on the jellyfish install.

I eventually went a different route and tried compiling using mingw32.
I had to manually run setup.py for jellyfish with:
    setup.py build -c mingw32 install

That seemed to get jellyfish installed. I then did "pip install billy"
with no errors
Re: pip install billy issues James Turk 10/18/11 1:29 PM
Hi Dan,

Thanks for providing the resolution, glad to see you got it fixed.

None of the core developers (and only a select few of the contributors) have been Windows users, so you're forging new territory, I'd be happy to take patches (code or documentation) to make the process easier on windows devs. 

-James


--
You received this message because you are subscribed to the Google Groups "Open State Project" group.
To post to this group, send email to fifty-sta...@googlegroups.com.
To unsubscribe from this group, send email to fifty-state-project+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fifty-state-project?hl=en.


Re: pip install billy issues Dan R 10/19/11 3:30 PM
I usually develop on Windows to deploy on Linux, so I should be a good
guinea pig.

On Oct 18, 3:29 pm, James Turk <james.p.t...@gmail.com> wrote:
> Hi Dan,
>
> Thanks for providing the resolution, glad to see you got it fixed.
>
> None of the core developers (and only a select few of the contributors) have
> been Windows users, so you're forging new territory, I'd be happy to take
> patches (code or documentation) to make the process easier on windows devs.
>
> -James
>
>
>
>
>
>
>