[wouso-dev] Problema generare documentatie WoUSO

Mihnea Dobrescu-Balaur mihneadb at gmail.com
Fri Aug 31 23:53:00 EEST 2012


export PYTHONPATH=<pathtorepo>:<pathtorepo>/wouso ? Ia vezi asa.

2012/8/31 Vicentiu Ciorbaru <cvicentiu at gmail.com>:
> Am rulat cu PYTHONPATH=<pathtorepo>. A mers partial color toata treaba. Acum
> a gasit cateva fisiere dar nu toate?
>
> Spre exemplu:
> http://tinypic.com/r/24ez4ux/6
>
> Log-ul e acesta:
>
> (sandbox)[vicentiu at Vicentiu-Laptop wouso]$ make html
> sphinx-build -b html -d _build/doctrees   . _build/html
> Running Sphinx v1.1.3
> loading pickled environment... done
> building [html]: targets for 0 source files that are out of date
> updating environment: 0 added, 9 changed, 0 removed
> Traceback (most recent call last):ture/core/god
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
> line 321, in import_object
>     __import__(self.modname)
> ImportError: No module named temple
> Traceback (most recent call last):ture/interface
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
> line 321, in import_object
>     __import__(self.modname)
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/context_processors.py",
> line 6, in <module>
>     from wouso.interface.apps.qproposal.models import Qproposal
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/apps/__init__.py",
> line 4, in <module>
>     from wouso.interface.apps.messaging.models import MessageApp
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/apps/messaging/models.py",
> line 60, in <module>
>     admin.site.register(MessagingUser)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/contrib/admin/sites.py",
> line 97, in register
>     validate(admin_class, model)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/contrib/admin/validation.py",
> line 21, in validate
>     models.get_apps()
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 115, in get_apps
>     self._populate()
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 64, in _populate
>     self.load_app(app_name)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 78, in load_app
>     models = import_module('.models', app_name)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
>     __import__(name)
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/chat/models.py", line
> 3, in <module>
>     from core.user.models import Player
> ImportError: No module named core.user.models
> Traceback (most recent call last):
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
> line 321, in import_object
>     __import__(self.modname)
>   File "/home/vicentiu/Documents/devel/wouso/wouso/interface/views.py", line
> 12, in <module>
>     from wouso.interface.apps.pages.models import NewsItem
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/apps/__init__.py",
> line 4, in <module>
>     from wouso.interface.apps.messaging.models import MessageApp
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/apps/messaging/models.py",
> line 60, in <module>
>     admin.site.register(MessagingUser)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/contrib/admin/sites.py",
> line 97, in register
>     validate(admin_class, model)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/contrib/admin/validation.py",
> line 21, in validate
>     models.get_apps()
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 115, in get_apps
>     self._populate()
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 64, in _populate
>     self.load_app(app_name)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/db/models/loading.py",
> line 78, in load_app
>     models = import_module('.models', app_name)
>   File
> "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
>     __import__(name)
>   File
> "/home/vicentiu/Documents/devel/wouso/wouso/interface/chat/models.py", line
> 3, in <module>
>     from core.user.models import Player
> ImportError: No module named core.user.models
> reading sources... [100%] architecture/middleware
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/core/god.rst:24:
> WARNING: autodoc can't import/find module 'wouso.core.god.temple', it
> reported error: "No module named temple", please check your spelling and
> sys.path
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/interface.rst:57:
> WARNING: Title underline too short.
>
> :mod:`wouso.interface.activity.signals`
> --------------------------------------
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/interface.rst:57:
> WARNING: Title underline too short.
>
> :mod:`wouso.interface.activity.signals`
> --------------------------------------
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/interface.rst:62:
> WARNING: Title underline too short.
>
> Usage examples
> ~~~~~~~~
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/interface.rst:100:
> WARNING: autodoc can't import/find module
> 'wouso.interface.context_processors', it reported error: "No module named
> core.user.models", please check your spelling and sys.path
> /home/vicentiu/Documents/devel/wouso/docs/wouso/architecture/interface.rst:110:
> WARNING: autodoc can't import/find module 'wouso.interface.views', it
> reported error: "No module named core.user.models", please check your
> spelling and sys.path
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [100%] index
> writing additional files... genindex py-modindex search
> copying images... [100%] architecture/wouso-piranha-arch-overview.png
> copying static files... WARNING: html_static_path entry
> '/home/vicentiu/Documents/devel/wouso/docs/wouso/_static' does not exist
> done
> dumping search index... done
> dumping object inventory... done
> build succeeded, 7 warnings.
>
> Build finished. The HTML pages are in _build/html.
>
>
> 2012/8/31 Mihnea Dobrescu-Balaur <mihneadb at gmail.com>
>>
>> Hm, e dubios ce zici tu că îți generează unele dar nu și pe celelalte.
>>
>> Folosește totul din „sandbox”, inclusiv sphinx. După ce activezi ce
>> trebuie, ruleaza export PYTHONPATH=/cale/către/repo și încearcă din
>> nou.
>>
>> 2012/8/31 Vicentiu Ciorbaru <cvicentiu at gmail.com>:
>> > Din folderul docs, unde se afla Makefile-ul.
>> >
>> >
>> > 2012/8/31 Mihnea Dobrescu-Balaur <mihneadb at gmail.com>
>> >>
>> >> Care este calea din care rulezi comanda?
>> >>
>> >> 2012/8/31 Vicentiu Ciorbaru <cvicentiu at gmail.com>:
>> >> > Salut,
>> >> >
>> >> > Am o problema cu generarea documentatiei pentru WoUSO. Folosesc
>> >> > ArchLinux,
>> >> > iar acesta are default python 3.
>> >> >
>> >> > Rulez comanda
>> >> >
>> >> > make html  (sau echivalentul comenzilor care le ruleaza aceasta, cu
>> >> > python2.7, in sandbox, fara sandbox, cu sphinx pentru python 2,
>> >> > pentru
>> >> > python3 etc.)
>> >> >
>> >> > Obtin erori de felul urmator:
>> >> > Traceback (most recent call last):ture/core/game
>> >> >   File
>> >> >
>> >> >
>> >> > "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
>> >> > line 321, in import_object
>> >> >     __import__(self.modname)
>> >> > ImportError: No module named wouso.core.game
>> >> >
>> >> > Pentru toate modulele wouso.
>> >> >
>> >> > Documentatia arata ok, cu exceptia ca nu am nici o informatie despre
>> >> > clasele
>> >> > din wouso. Am doar textul care a fost introdus in fisiere rst.
>> >> > Am vorbit si cu MM despre o posibila rezolvare si nu am gasit nici
>> >> > una.
>> >> >
>> >> > Any ideas?
>> >> >
>> >> > Vicentiu
>> >> >
>> >> > PS: Atasez si chat-ul care l-am avut cu MM despre problema. Se pot
>> >> > vedea
>> >> > mai
>> >> > multe detalii despre configurarile mele in chat. Am trimis email-ul
>> >> > si
>> >> > pe
>> >> > lista, in caz ca se mai izbeste cineva de problema.
>> >> >
>> >> >
>> >> > <vicentiu> salut, am o problema cu generarea documentatiei la wouso.
>> >> > Poate
>> >> > sa ma ajute cineva? :)
>> >> > <alexj|google> vicentiu, hello.. pune întrebarea mai întâi (foarte
>> >> > probabil
>> >> > eu nu te voi putea ajuta, dar poate sunt alții care pot)
>> >> > <vicentiu> ok, problema e in felul urmator: cand rulez makefile-ul cu
>> >> > comanda make html
>> >> > <vicentiu> sau manual executabilul ce e scris in makefile
>> >> > <vicentiu> se genereaza o buna parte din documentatie, dar primesc
>> >> > erori
>> >> > cand ajunge sa parseze codul de python explicit
>> >> > <vicentiu>  File
>> >> > "/usr/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
>> >> > line 322, in import_object
>> >> > <vicentiu>     __import__(self.modname)
>> >> > <vicentiu> ImportError: No module named wouso.core.game
>> >> > <vicentiu> multe erori de felul asta
>> >> > <vicentiu> iar documentatia nu contine nimic despre clasele din cod
>> >> > <vicentiu> "comentariile" introduse in fisierele .rst merg
>> >> > <vicentiu> folosesc archlinux si ei considera ca default ar trebui sa
>> >> > fie
>> >> > python 2.7. presupun ca este ceva legat de o eroare de configurare
>> >> > <vicentiu> dar nu reusesc sa ma prind unde
>> >> > <mmaruseacph2> vicentiu: arch are python3
>> >> > <ddvlad> ce comandă rulezi?
>> >> > <alexj|google> hmm..pare a nu-i conveni calea spre modulele wouso
>> >> > <mmaruseacph2> și highlight cel mai nou
>> >> > <vicentiu> default e python3 pardon am scris eu gresit
>> >> > <mmaruseacph2> dar suportă wouso python3?
>> >> > <ddvlad> încearcă să rulezi cu versiune de python specificată
>> >> > explicit:
>> >> > python2.7 blabla
>> >> > <vicentiu> eu rulez comanda sphinx-build2 -b html -d _build/doctrees
>> >> > .
>> >> > _build/html
>> >> > <vicentiu> sphinx-build (care era default in makefile) e pentru
>> >> > python3
>> >> > din
>> >> > cate inteleg
>> >> > <mmaruseacph2> e și pentru 2.7 afaik
>> >> > <alexj|google> nu are suport django pentru python3...deci nici wouso
>> >> > <mmaruseacph2> adică el în spate-și lansează pythoane când are nevoie
>> >> > <vicentiu> asta am presupus ca face
>> >> > <vicentiu> si presupun ca lanseaza python3
>> >> > <mmaruseacph2> fă puțin un ln -s python2.7 python
>> >> > <mmaruseacph2> în /usr/bin
>> >> > <vicentiu> mmaruseacph2, deja am facut asta
>> >> > <mmaruseacph2> python acum îți pornește cu 2.7?
>> >> > <vicentiu> ls -l /usr/bin/python
>> >> > <vicentiu> lrwxrwxrwx 1 root root 18 aug 31 08:12 /usr/bin/python ->
>> >> > /usr/bin/python2.7
>> >> > <mmaruseacph2> oki
>> >> > <mmaruseacph2> next step
>> >> > <mmaruseacph2> highlight --version ce zice?
>> >> > <vicentiu> sa rulez highlight ca comanda?
>> >> > <mmaruseacph2> yup
>> >> > * carbonix (~vcarbune at 80-218-198-105.dclient.hispeed.ch) has joined
>> >> > #rosedu
>> >> > <vicentiu> nu am asa ceva
>> >> > <vicentiu> highlight: comandă negăsită
>> >> > <mmaruseacph2> ah, fu
>> >> > <mmaruseacph2> folosește pygments
>> >> > <mmaruseacph2> într-o consolă de python
>> >> > <mmaruseacph2> merge import pygments?
>> >> > <vicentiu> nu imi da nici o eroare
>> >> > <vicentiu> >>> import pygments
>> >> > <vicentiu> >>>
>> >> > <mmaruseacph2> e bine
>> >> > <mmaruseacph2> ești în virtualenv?
>> >> > <vicentiu> am incercat si cu sandbox-ul
>> >> > <vicentiu> si aceeasi problema
>> >> > <mmaruseacph2> dar le rulezi pe cele din sandbox?
>> >> > <vicentiu> which python
>> >> > <vicentiu> /home/vicentiu/Documents/devel/wouso/sandbox/bin/python
>> >> > <vicentiu> sphinx-build nu este in sandbox, nu stiu cum sa-l pun
>> >> > acolo
>> >> > automat
>> >> > <mmaruseacph2> pip install sphinx?
>> >> > <mmaruseacph2> cu pip-ul din sandbox
>> >> > <vicentiu> ok, incerc acu. nu am mai lucrat pana acum cu python so
>> >> > bare
>> >> > with
>> >> > me :)
>> >> > <vicentiu> dureaza ceva instalarea
>> >> > <vicentiu> ok, rulez cu sphinx-ul din sandbox
>> >> > <vicentiu> tot nu merge
>> >> > <mmaruseacph2> nu mai am idei :(
>> >> > <vicentiu> (sandbox)[vicentiu at Vicentiu-Laptop wouso]$ which
>> >> > sphinx-build
>> >> > <vicentiu>
>> >> > /home/vicentiu/Documents/devel/wouso/sandbox/bin/sphinx-build
>> >> > <vicentiu> (sandbox)[vicentiu at Vicentiu-Laptop wouso]$ make html
>> >> > <vicentiu> sphinx-build -b html -d _build/doctrees   . _build/html
>> >> > <vicentiu> Running Sphinx v1.1.3
>> >> > <vicentiu> loading pickled environment... done
>> >> > <vicentiu> building [html]: targets for 0 source files that are out
>> >> > of
>> >> > date
>> >> > <vicentiu> updating environment: 0 added, 9 changed, 0 removed
>> >> > <vicentiu> Traceback (most recent call last):ture/core/game
>> >> > <vicentiu>   File
>> >> >
>> >> >
>> >> > "/home/vicentiu/Documents/devel/wouso/sandbox/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
>> >> > line 321, in import_object
>> >> > <vicentiu>     __import__(self.modname)
>> >> > <vicentiu> ImportError: No module named wouso.core.game
>> >> > <mmaruseacph2> mail alex3f?
>> >> > <vicentiu> o sa trimit un mail, cam asta rulez
>> >> >
>> >> > _______________________________________________
>> >> > wouso-dev mailing list
>> >> > wouso-dev at lists.rosedu.org
>> >> > http://lists.rosedu.org/listinfo/wouso-dev
>> >>
>> >>
>> >>
>> >> --
>> >> Mihnea Dobrescu-Balaur
>> >> _______________________________________________
>> >> wouso-dev mailing list
>> >> wouso-dev at lists.rosedu.org
>> >> http://lists.rosedu.org/listinfo/wouso-dev
>> >
>> >
>> >
>> > _______________________________________________
>> > wouso-dev mailing list
>> > wouso-dev at lists.rosedu.org
>> > http://lists.rosedu.org/listinfo/wouso-dev
>>
>>
>>
>> --
>> Mihnea Dobrescu-Balaur
>> _______________________________________________
>> wouso-dev mailing list
>> wouso-dev at lists.rosedu.org
>> http://lists.rosedu.org/listinfo/wouso-dev
>
>
>
> _______________________________________________
> wouso-dev mailing list
> wouso-dev at lists.rosedu.org
> http://lists.rosedu.org/listinfo/wouso-dev



-- 
Mihnea Dobrescu-Balaur


More information about the wouso-dev mailing list