tankiit / pyrsvd Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pyrsvd
License: MIT License
Automatically exported from code.google.com/p/pyrsvd
License: MIT License
pyrsvd ------ A regularized singular value decomposition solver for collaborative filtering written in python. For further information see http://code.google.com/p/pyrsvd/. Installation ------------ For system wide installation use:: $ python setup.py install If you want to build the extension in place use:: $ python setup.py build_ext -i and don't forget to add the pyrsvd directory to your PYTHONPATH:: $ export PYTHONPATH=$PYTHONPATH:path/to/pyrsvd For bug reporting, please mail to: <[email protected]>
What steps will reproduce the problem?
1. Install NumPy version 1.5.0rc1 or 1.5.0b2.
2. Attempt to install PyRSVD.
3. PyRSVD installer dies with a ValueError stack trace.
What is the expected output? What do you see instead?
Expected PyRSVD install. Got a crash with stack trace. Problem near line 45
in rsvd.__init__.py.
What version of the product are you using? On what operating system?
PyRSVD 0.1 and NumPy 1.5.0rc1 on Ubuntu Linux 10.04.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2010 at 4:26
The attached patch fixes 2 issues:
1) it was not possible to install pyrsvd in a virtualenv as it was
always looking for numpy include files in the global python include path
- now it will try finding it in the virtualenv first
2) when the numpy package was missing a really bad and long error
information was displayed by the C compiler - now it will complain about
missing numpy
Pasting it inline as I had problems attaching a file:
Index: setup.py
===================================================================
--- setup.py (revision 27)
+++ setup.py (working copy)
@@ -1,9 +1,17 @@
from distutils.core import setup
from distutils.extension import Extension
+import os.path
+
+import numpy
+numpy_path = os.path.join(numpy.__path__[0], 'core', 'include')
+
setup(
name = "rsvd",
- ext_modules = [Extension("rsvd/rsvd", ["rsvd/rsvd.c"])],
+ ext_modules = [Extension("rsvd/rsvd", ["rsvd/rsvd.c"],
+ include_dirs=[numpy_path],
+ ),
+ ],
version = "0.1",
description="A regularized SVD solver for partial matrices",
author='Peter Prettenhofer',
==================
I tested in on a 64bit Linux box - both on few virtualenvs and on my
system Python
Original issue reported on code.google.com by wojciech.malinowski
on 30 Jun 2009 at 8:17
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.