Re: pgAdmin 4 as Web application

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: pgAdmin 4 as Web application
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B53898AC8@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: pgAdmin 4 as Web application  (Dave Page <dpage@pgadmin.org>)
Ответы Re: pgAdmin 4 as Web application
Список pgadmin-hackers
Dave Page wrote:
>>>> mod_wsgi (pid=20880): Target WSGI script '/opt/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module.
>>>> mod_wsgi (pid=20880): Exception occurred processing WSGI script '/opt/pgadmin4/pgAdmin4.wsgi'.
>>>> Traceback (most recent call last):
>>>>   File "/opt/pgadmin4/pgAdmin4.wsgi", line 8, in <module>
>>>>     from pgAdmin4 import app as application
>>>>   File "/opt/pgadmin4/pgAdmin4.py", line 58, in <module>
>>>>     app = create_app()
>>>>   File "/opt/pgadmin4/pgadmin/__init__.py", line 204, in create_app
>>>>     import pgadmin.utils.paths as paths
>>>> AttributeError: 'module' object has no attribute 'paths'
>>>>
>>>> Indeed there is no pgadmin/utils/paths directory with a __init__.py in it.
>>>
>>> No, but there should be a pgadmin/utils/paths.py file. Is that there?
>>
>> Yes, there is, and it is readable to everyone.
>>
>> I don't know much about Python - could it be that version 2.7 handles this
>> line differently from 3?
> 
> No - I do all my development on 2.7 and it works fine (as do most of
> the other devs I believe). 3.x is definitely less well tested, and 2.6
> is behind that.
> 
> Ashesh, any ideas what could be causing this?

Must have been something weird; a web server restart fixed the problem.

Thanks for the help; it is working now.

I'm kind of surprised that pgAdmin4 is already a release candidate, I still
find lots of bugs just randomly clicking around.
I'll report them of course.

Yours,
Laurenz Albe

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Murtuza Zabuawala
Дата:
Сообщение: PATCH: Added user confirmation on panel close (pgAdmin4)
Следующее
От: Ashesh Vashi
Дата:
Сообщение: Re: pgAdmin 4 as Web application