Comments (8)
I'd weigh in that installing into a virtualenv should be the standard way of installation. Much cleaner on the system. (I also installed to a vitualenv on archlinux, no issues).
from sms-tools.
@seansay : could you give a little more details on how you did it on OSX? I'm stuck after cloning the repo, because the compilation of the C functions stops with the following error message:
'''
gcc -bundle -undefined dynamic_lookup -L/Users/kappamaki/anaconda/envs/py27-opencv/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/utilFunctions.o build/temp.macosx-10.5-x86_64-2.7/cutilFunctions.o -L/Users/kappamaki/anaconda/envs/py27-opencv/lib -lm -o /Users/kappamaki/workspace/coursera-aspma/sms-tools/software/models/utilFunctions_C/utilFunctions_C.so
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
'''
Thanks a bunch for your help!
from sms-tools.
Hello,
I agree with @Lykathia, virtualenv is the way to go.
@flothesof, here's what I did on Mac OS:
- Install virtualenv:
sudo pip install virtualenv
- Go to the folder where you have sms-tools and create an environment by typing:
virtualenv venv
- To activate the environment (which you'll have to do when you work on sms-tools) do:
. venv/bin/activate
- With the environment active install all the stuff you need
pip install ipython numpy matplotlib scipy cython
- And normally you should have no errors (only several warnings) when compiling the C functions
cd software/models/utilFunctions_C
python compileModule.py build_ext --inplace
from sms-tools.
Hey!
Thanks for your reply.
Actually, even though I'm not doing a virtualenv, I'm doing something
similar: using conda to create a python 2.7 installation from which I tried
to compile the cython functions.
The part I don't get is where the errors come from. What libraries is the
compiler missing? It's just not clear to me.
Thanks for posting your code. I'll try to make it work like this.
Regards
Florian
Le 26 sept. 2015 21:50, "Alejandro Mantecon Guillen" <
[email protected]> a Γ©crit :
Hello,
I agree with @Lykathia https://github.com/Lykathia, virtualenv is the
way to go.Here's what I did on Mac OS:
Install virtualenv:
sudo pip install virtualenvGo to the folder where you have sms-tools and create an environment by
typing:
virtualenv venvTo activate the environment (which you'll have to do when you work on
sms-tools) do:
. venv/bin/activateWith the environment active install all the stuff you need
pip install ipython numpy matplotlib scipy cythonAnd normally you should have no errors (only several warnings) when
compiling the C functions
cd software/models/utilFunctions_C
python compileModule.py build_ext --inplaceβ
Reply to this email directly or view it on GitHub
#14 (comment).
from sms-tools.
I finally managed to do it using Anaconda. It's very similar to the virtualenv way of doing it.
I wrote the procedure up here:
http://flothesof.github.io/sms-tools-MacOSX-Anaconda.html
Best,
Florian
from sms-tools.
Nice guide, Forian!
I'm happy to announce a quite simple installation process thanks to packaging sms-tools so that it can be installed via pip.
https://class.coursera.org/audio-002/forum/thread?thread_id=865#comment-1630
from sms-tools.
Nice work Florian!
from sms-tools.
closing this one.
from sms-tools.
Related Issues (20)
- module 'utilFunctions_C' has no attribute 'twm' HOT 3
- Sms
- HPS Morph transformation error HOT 1
- some button labels invisible in osx
- Sjd
- problem with cutilFunctions.pyx
- SMS
- Why the STFT calculated by SMS tool and Librosa is different? HOT 1
- Ubuntu installation instructions seem to not be working HOT 2
- Inconsistent use of tabs and spaces
- models_GUI.py and models_transformations_GUI.py don't run in python3 HOT 2
- Python 3.9 changes for compatibility and to remove exceptions. HOT 2
- Bad indices in stochastic and hpsmorph transformations HOT 1
- A4Part3 instruction exercice should be fixed
- NameError: name 'filedialog' is not defined HOT 1
- module 'numpy' has no attribute 'float' HOT 2
- Transformations_GUI issues on Python 3.11.1 (and 3.9.6) HOT 1
- utilsFunctions c function not compiling correctly on MacOSX? HOT 1
- ValueError: operands could not be broadcast together with shapes (100,) (0,)
- Transformation-GUI - HPS Morph
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 sms-tools.