hacklabr / timtec

MOOC platform built with Django and Angular to deliver and manage courses, classes and student activities
GNU Affero General Public License v3.0
73 stars 64 forks source link

Alguém poderia me ajudar a montar o enviroment no Mac OS? #516

Closed fellipeh closed 10 years ago

fellipeh commented 10 years ago

Olá, estou tentando usar o sistema, porém não estou conseguindo realizar o início, o make foi feito para linux, tentei migrar para o MacOS mas não está funcionando.. está dando este erro: env: lessc: No such file or directory

já mudei o path do static para: MEDIA_ROOT = "/Users/fellipeh/webfiles/media/" STATIC_ROOT = "/Users/fellipeh/webfiles/static/"

porém.. ao rodar collectstatic, dá este erro:

pipeline.exceptions.CompressorError: env: yuglify: No such file or directory

O que poderia ser?

Obrigado.

fellipeh commented 10 years ago

Amigos, consegui instalar tudo no mac, tudo funcionando perfeito.. mas ainda continua dando o erro abaixo:

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/

Django Version: 1.6.5 Python Version: 2.7.6 Installed Applications: ('django_extensions', 'south', 'pipeline', 'suit', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.flatpages', 'django.contrib.admin', 'django.contrib.admindocs', 'rest_framework', 'rosetta', 'autoslug', 'core', 'accounts', 'activities', 'administration', 'forum', 'course_material', 'notes', 'reports', 'metron', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'django_markdown', 'raven.contrib.django.raven_compat', 'debug_toolbar') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware')

Template error: In template /Users/fellipeh/Developer/django/timtec/themes/timtec/templates/_assets.html, error at line 5 env: lessc: No such file or directory

1 : {% load compressed %}

2 : {% load staticfiles %}

3 :

4 : {% compressed_css 'common' %}

5 : {% compressed_css 'public' %}

6 :

7 :

8 :

14 :

15 : {% compressed_js 'all' %}

Traceback: File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = response.render() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/response.py" in render
  2. self.content = self.rendered_content File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/response.py" in rendered_content
  3. content = template.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  4. return self._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  5. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  6. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  7. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  8. return compiled_parent._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  9. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  10. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  11. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  12. result = block.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  13. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  14. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render
  15. output = self.filter_expression.resolve(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in resolve
  16. obj = self.var.resolve(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in resolve
  17. value = self._resolve_lookup(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in _resolve_lookup
  18. current = current() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in super
  19. return mark_safe(self.render(self.context)) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  20. result = block.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  21. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  22. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  23. return self.render_template(self.template, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render_template
  24. output = template.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  25. return self._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  26. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  27. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  28. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/templatetags/compressed.py" in render
  29. return self.render_compressed(package, 'css') File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/templatetags/compressed.py" in render_compressed
  30. paths = packager.compile(package.paths) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/packager.py" in compile
  31. return self.compiler.compile(paths, force=force) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/compilers/init.py" in compile
  32. return list(executor.map(_compile, paths)) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in map
  33. yield future.result() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in result
  34. return self.get_result() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in get_result
  35. raise self._exception

Exception Type: CompilerError at / Exception Value: env: lessc: No such file or directory

brunosmartin commented 10 years ago

Olá Felipe,

Me parece que vc precisa instalar um compilador de less (o lessc, no caso) para funcionar. Caso não consiga, por favor nos avise.

luzfcb commented 10 years ago

esta falando que esta faltando o compilador LESS no PATH do seu Mac.

Você vai ter que instalar o Node.js e depois instalar o lessc conforme a documentação[1]

[1] http://lesscss.org/#using-less-installation

2014-08-06 14:21 GMT-03:00 Fellipe Henrique notifications@github.com:

Amigos, consegui instalar tudo no mac, tudo funcionando perfeito.. mas ainda continua dando o erro abaixo:

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/

Django Version: 1.6.5 Python Version: 2.7.6 Installed Applications: ('django_extensions', 'south', 'pipeline', 'suit', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.flatpages', 'django.contrib.admin', 'django.contrib.admindocs', 'rest_framework', 'rosetta', 'autoslug', 'core', 'accounts', 'activities', 'administration', 'forum', 'course_material', 'notes', 'reports', 'metron', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'django_markdown', 'raven.contrib.django.raven_compat', 'debug_toolbar') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware')

Template error: In template /Users/fellipeh/Developer/django/timtec/themes/timtec/templates/_assets.html, error at line 5 env: lessc: No such file or directory

1 : {% load compressed %}

2 : {% load staticfiles %}

3 :

4 : {% compressed_css 'common' %}

5 : {% compressed_css 'public' %}

6 :

7 :

8 :

9 : window.STATIC_URL = '{{ STATIC_URL }}';

10 : window.MEDIA_URL = '{{ MEDIA_URL }}';

11 : window.DEBUG = '{{ DEBUG }}';

12 : window.LANGUAGE_CODE = '{{ LANGUAGE_CODE }}';

13 :

14 :

15 : {% compressed_js 'all' %}

Traceback: File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1. response = response.render() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/response.py" in render
  2. self.content = self.rendered_content File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/response.py" in rendered_content
  3. content = template.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  4. return self._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  5. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  6. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  7. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  8. return compiled_parent._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  9. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  10. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  11. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  12. result = block.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  13. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  14. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render
  15. output = self.filter_expression.resolve(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in resolve
  16. obj = self.var.resolve(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in resolve
  17. value = self._resolve_lookup(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in _resolve_lookup
  18. current = current() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in super
  19. return mark_safe(self.render(self.context)) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  20. result = block.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  21. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  22. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  23. return self.render_template(self.template, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/loader_tags.py" in render_template
  24. output = template.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  25. return self._render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/test/utils.py" in instrumented_test_render
  26. return self.nodelist.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/base.py" in render
  27. bit = self.render_node(node, context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/django/template/debug.py" in render_node
  28. return node.render(context) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/templatetags/compressed.py" in render
  29. return self.render_compressed(package, 'css') File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/templatetags/compressed.py" in render_compressed
  30. paths = packager.compile(package.paths) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/packager.py" in compile
  31. return self.compiler.compile(paths, force=force) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/pipeline/compilers/ init.py" in compile
  32. return list(executor.map(_compile, paths)) File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in map
  33. yield future.result() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in result
  34. return self.get_result() File "/Users/fellipeh/Developer/venv/timtec/lib/python2.7/site-packages/concurrent/futures/_base.py" in get_result
  35. raise self._exception

Exception Type: CompilerError at / Exception Value: env: lessc: No such file or directory

— Reply to this email directly or view it on GitHub https://github.com/hacklabr/timtec/issues/516#issuecomment-51367171.

Fábio C. Barrionuevo da Luz Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins - FACTO Palmas - Tocantins - Brasil - América do Sul

http://pythonclub.com.br/

Blog colaborativo sobre Python e tecnologias Relacionadas, mantido totalmente no https://github.com/pythonclub/pythonclub.github.io .

Todos são livres para publicar. É só fazer fork, escrever sua postagem e mandar o pull-request. Leia mais sobre como publicar em README.md e contributing.md. Regra básica de postagem: "Você" acha interessante? É útil para "você"? Pode ser utilizado com Python ou é útil para quem usa Python? Está esperando o que? Publica logo, que estou louco para ler...

santagada commented 10 years ago

Realmente vc esqueceu de rodar o make setup_js ou rodar os comandos sem root se vc tiver o node do homebrew.

fellipeh commented 10 years ago

Bom, o node eu instalei manualmente mesmo, e os comando foram dados usando sudo.. pode ser aí o problema? Porque sem usar o sudo ele nao deixa, problemas de permissão.

Se eu digitar less abre o compilador, tanto quanto ao node.. fazendo collectstatic --noinput ele compila tudo e não dá erro algum..

O que pode ser mais?

santagada commented 10 years ago

No osx a gente recomenda fortemente que você instale tudo pelo homebrew: http://brew.sh/

Você tem certeza que instalou todos os pacotes do node necessários: less yuglify uglify-js cssmin karma karma-cli karma-phantomjs-launcher karma-jasmine jshint ngmin grunt-cli ?

Se tiver instalado todos globalmente você pode rodar no seu terminal: $ lessc -v lessc 1.7.0 (LESS Compiler) [JavaScript] $ yuglify -v 0.1.4 $which uglifyjs /usr/local/share/npm/bin/uglifyjs

santagada commented 10 years ago

lembrando que /usr/local/share/npm/bin/ precisa estar no seu $PATH

fellipeh commented 10 years ago

Certo,

Removi o node, e estou tentando pelo brew, mas só continua se usar "sudo"... então continuei e executei o make.. não deu erro em nada...

$ lessc -v lessc 1.7.4 (Less Compiler) [JavaScript]

$ yuglify -v 0.1.4

$ which uglifyjs uglifyjs is /usr/local/bin/uglifyjs uglifyjs is /usr/local/bin/uglifyjs

$ which npm npm is /usr/local/bin/npm

$ echo $PATH /usr/local/sbin:/usr/local/bin:/Users/fellipeh/.rvm/gems/ruby-2.1.1/bin:/Users/fellipeh/.rvm/gems/ruby-2.1.1@global/bin:/Users/fellipeh/.rvm/rubies/ruby-2.1.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/fellipeh/.rvm/bin:/Users/fellipeh/.rvm/bin:/Library/Frameworks/Firebird.framework/Resources/bin

Ainda permanece o problema..

o que posso estar fazendo de errado?

fellipeh commented 10 years ago

Amigos, agora consegui instalar o node e tudo sem usar sudo... e está legal, todos os comando estão funcionando...

$ lessc -v lessc 1.7.4 (Less Compiler) [JavaScript] $ yuglify -v 0.1.4 $ which uglifyjs uglifyjs is /usr/local/bin/uglifyjs uglifyjs is /usr/local/bin/uglifyjs

$ which npm npm is /usr/local/bin/npm npm is /usr/local/bin/npm

O que to achando estranho é que eu não tenho o path /usr/local/share/npm/bin/ em minha maquina..

Será por isso que permanece o mesmo erro? CompilerError at / env: lessc: No such file or directory

fellipeh commented 10 years ago

Estou finalizando este issue porque acredito que o problema não seja no mac, e sim algo errado nos arquivos ou instalação, irei abrir um issue próprio para isso..

santagada commented 10 years ago

então, parece sim o mesmo problema... muito estranho o lessc estar em /usr/local/bin...

se você puder delete todo o diretório /usr/local e/ou rode o 'brew doctor' que vai te dizer possiveis problemas na instalação do homebrew. Depois de resolvido os problemas do o brew doctor (ou reinstalar todo o homebrew) coloque o /usr/local/share/npm/bin/ no começo do seu path (em ~/.bashrc ou ~/.zshrc).

Vamos criar uma issue para começar a usar pacotes instalado local no timtec... mas a prioridade vai ser baixa (temos uma entrega nas próximas 2 semanas) então vai ser mais rápido resolver os problemas com o seu node ai mesmo.

fellipeh commented 10 years ago

Olha, desinstalei meu homebrew todo.. e continua a instalar no /usr/local/bin não vai pra outro local de jeito nenhum, deve ser porque to usando o Maverics, sei lá..

Repare que tudo foi instalado corretamente..e sem o uso do sudo

E... continua o problema! Realmente tem algo muito errado... não sei mais onde olhar para solucionar o problema.

Tem como eu desabilitar o uso disso?

Abaixo o "log" da instalação:

$ npm install -g less yuglify uglify-js cssmin karma karma-cli karma-phantomjs-launcher karma-jasmine jshint ngmin grunt-cli --loglevel silent/usr/local/bin/cssmin -> /usr/local/lib/node_modules/cssmin/bin/cssmin
/usr/local/bin/karma -> /usr/local/lib/node_modules/karma-cli/bin/karma
/usr/local/bin/yuglify -> /usr/local/lib/node_modules/yuglify/bin/yuglify
/usr/local/bin/uglifyjs -> /usr/local/lib/node_modules/uglify-js/bin/uglifyjs
/usr/local/bin/ngmin -> /usr/local/lib/node_modules/ngmin/bin/ngmin
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
/usr/local/bin/jshint -> /usr/local/lib/node_modules/jshint/bin/jshint
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-macosx.zip
Saving to /var/folders/7q/16052r7s6y50xry0z034vq2w0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip
Receiving...
  [=======================================] 100% 0.0s
Received 9186K total.
Extracting zip contents
Copying extracted folder /var/folders/7q/16052r7s6y50xry0z034vq2w0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1407520003395/phantomjs-1.9.7-macosx -> /usr/local/lib/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /usr/local/lib/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
cssmin@0.4.1 /usr/local/lib/node_modules/cssmin

karma-jasmine@0.1.5 /usr/local/lib/node_modules/karma-jasmine

karma-cli@0.0.4 /usr/local/lib/node_modules/karma-cli
└── resolve@0.5.1

yuglify@0.1.4 /usr/local/lib/node_modules/yuglify
├── uglify-js@1.3.5
├── ycssmin@1.0.1
└── nopt@2.1.2 (abbrev@1.0.5)

uglify-js@2.4.15 /usr/local/lib/node_modules/uglify-js
├── uglify-to-browserify@1.0.2
├── async@0.2.10
├── optimist@0.3.7 (wordwrap@0.0.2)
└── source-map@0.1.34 (amdefine@0.1.0)

ngmin@0.5.0 /usr/local/lib/node_modules/ngmin
├── astral@0.1.0
├── clone@0.1.17
├── ngmin-dynamic@0.0.1
├── esprima@1.0.4
├── commander@1.1.1 (keypress@0.1.0)
├── astral-angular-annotate@0.0.2 (astral-pass@0.1.0)
└── escodegen@0.0.28 (estraverse@1.3.2, source-map@0.1.38)

grunt-cli@0.1.13 /usr/local/lib/node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.5)
└── findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.11)

jshint@2.5.2 /usr/local/lib/node_modules/jshint
├── strip-json-comments@0.1.3
├── underscore@1.6.0
├── exit@0.1.2
├── shelljs@0.3.0
├── console-browserify@1.1.0 (date-now@0.1.4)
├── minimatch@0.4.0 (sigmund@1.0.0, lru-cache@2.5.0)
├── cli@0.6.3 (glob@3.2.11)
└── htmlparser2@3.7.3 (domelementtype@1.1.1, domutils@1.5.0, entities@1.0.0, domhandler@2.2.0, readable-stream@1.1.13-1)

less@1.7.4 /usr/local/lib/node_modules/less
├── graceful-fs@2.0.3
├── mime@1.2.11
├── mkdirp@0.3.5
├── source-map@0.1.38 (amdefine@0.1.0)
├── clean-css@2.1.8 (commander@2.1.0)
└── request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0, form-data@0.1.4)

karma-phantomjs-launcher@0.1.4 /usr/local/lib/node_modules/karma-phantomjs-launcher
└── phantomjs@1.9.7-15 (which@1.0.5, progress@1.1.7, rimraf@2.2.8, kew@0.1.7, ncp@0.4.2, mkdirp@0.3.5, adm-zip@0.2.1, request-progress@0.3.1, npmconf@0.0.24, request@2.36.0)

karma@0.12.21 /usr/local/lib/node_modules/karma
├── di@0.0.1
├── graceful-fs@2.0.3
├── rimraf@2.2.8
├── colors@0.6.2
├── mime@1.2.11
├── q@0.9.7
├── lodash@2.4.1
├── source-map@0.1.38 (amdefine@0.1.0)
├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0)
├── glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── useragent@2.0.9 (lru-cache@2.2.4)
├── log4js@0.6.16 (semver@1.1.4, async@0.1.15, readable-stream@1.0.27-1)
├── http-proxy@0.10.4 (pkginfo@0.3.0, utile@0.2.1)
├── chokidar@0.8.2 (recursive-readdir@0.0.2, fsevents@0.2.0)
├── connect@2.12.0 (uid2@0.0.3, methods@0.1.0, cookie-signature@1.0.1, pause@0.0.1, debug@0.8.1, qs@0.6.6, fresh@0.2.0, bytes@0.2.1, buffer-crc32@0.2.1, raw-body@1.1.2, batch@0.5.0, cookie@0.1.0, negotiator@0.3.0, send@0.1.4, multiparty@2.2.0)
└── socket.io@0.9.17 (base64id@0.1.0, policyfile@0.0.4, redis@0.7.3, socket.io-client@0.9.16)
fellipeh commented 10 years ago

Rapaz... estranho...

Executando pelo terminal. funcionou* !!!

Agora, quando eu mando executar pelo PyCharm dá o erro acima... que doidera....

santagada commented 10 years ago

não é impressionante... programas de macosx não executam o .bashrc nem o .zshrc, ou seja não recebem informação de path... isso é em todos os OSX.

fellipeh commented 10 years ago

vixi.. vivendo e aprendendo.. hauhaua.. o bom que consegui, tenho que começar a largar o pycharm, o problema é o debug dele...

fellipeh commented 10 years ago

Para os que poderão ter este problema.... Como o santagada disse acima, o PyCharm não lê os dados do .bashrc, por isso ele não lê o novo **PATH que está lá.

Para resolver o problema, no PyCharm faça o seguinte:

Na guia Environment, você vai encontrar a Environment Variables, basta clicar no botão e adicionar: PATH = /usr/local/bin:$PATH

Solucionado o problema, e funcionando no PyCharm.