Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError at / No module named parse #74

Open
fss666 opened this issue Apr 25, 2017 · 2 comments
Open

ImportError at / No module named parse #74

fss666 opened this issue Apr 25, 2017 · 2 comments

Comments

@fss666
Copy link

fss666 commented Apr 25, 2017

Pessoal,

estou instalando o Wikilegis, porém estou tendo o seguinte erro usando python 2.7 (CentOS 7).
ImportError at /
No module named parse
Request Method: GET
Request URL: http://10.10.10.10:8000/
Django Version: 1.11
Exception Type: ImportError
Exception Value: No module named parse
Exception Location: /usr/lib/python2.7/site-packages/openid/oidutil.py in , line 17
Python Executable: /usr/bin/python
Python Version: 2.7.5

Python Path:
['/usr/local/wikilegis/wikilegis',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages']

Server time:
Ter, 25 Abr 2017 18:35:08 -0300

Na tentativa de resolver esse erro instalei o Python34 e pip3.
Porém nesse caso, surge outro erro:
FilterError at /
/bin/sh: /usr/local/wikilegis/node_modules/.bin/node-sass: No such file or directory

Como posso resolver o problema, seja com a versão 2.7 ou 3.4 ??
PS: sou de infraestrutura e não conheço muito de Python nem Django. Entretando com a versão anterior do Wikilegis consegui implantar. Nessa ultima versão estou tendo problema.

Obrigado pela ajuda.

@erivanio
Copy link
Member

Boa tarde, o problema ocorreu pois o novo wikilegis foi escrito em python 3. O erro que aconteceu é porque ficou faltando rodar o comando npm install que realmente não estava no passo-a-passo, vamos corrigir aqui. Obrigado pelo feedback!

@fss666
Copy link
Author

fss666 commented Apr 28, 2017

Obrigado!
Resolveu para o problema citado.

Porém surgiu outra dependência:
File to import not found or unreadable: bower_components/normalize-css/normalize.\nParent style sheet: /usr/local/wikilegis/wikilegis/static/styles/app.scss",
"formatted": "Error: File to import not found or unreadable: bower_components/normalize-css/normalize.\n
Parent style sheet: /usr/local/wikilegis/wikilegis/static/styles/app.scss\n on line 2 of static/styles/app.scss

então precisei instalar o Bower.
npm install -g bower
bower install normalize-css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants