Code Monkey home page Code Monkey logo

Comments (8)

Lykathia avatar Lykathia commented on July 21, 2024

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.

flothesof avatar flothesof commented on July 21, 2024

@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.

alemangui avatar alemangui commented on July 21, 2024

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.

flothesof avatar flothesof commented on July 21, 2024

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 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

β€”
Reply to this email directly or view it on GitHub
#14 (comment).

from sms-tools.

flothesof avatar flothesof commented on July 21, 2024

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.

bzamecnik avatar bzamecnik commented on July 21, 2024

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.

greekgoddj avatar greekgoddj commented on July 21, 2024

Nice work Florian!

from sms-tools.

xserra avatar xserra commented on July 21, 2024

closing this one.

from sms-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.