it seems likely that your apache server is using a different Python path / virtualenv and you need to have SQLAlchemy installed in that environment.

On 06/20/2017 12:53 AM, shrey.chau...@invicto.in wrote:

this is the stack trace :
[Mon Jun 19 18:11:01.431528 2017] [:error] [pid 18592] [remote 10.11.12.15:128] Traceback (most recent call last): [Mon Jun 19 18:11:01.431548 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/enclouden-orchestrator.wsgi", line 10, in <module> [Mon Jun 19 18:11:01.431616 2017] [:error] [pid 18592] [remote 10.11.12.15:128] imports = __import__("app",fromlist=['create_and_initialize_app']) [Mon Jun 19 18:11:01.431627 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/app.py", line 6, in <module> [Mon Jun 19 18:11:01.431677 2017] [:error] [pid 18592] [remote 10.11.12.15:128] from database import db, track_session_deletes [Mon Jun 19 18:11:01.431691 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/database/__init__.py", line 10, in <module> [Mon Jun 19 18:11:01.431728 2017] [:error] [pid 18592] [remote 10.11.12.15:128] from . import events, instances, pools, users, roles [Mon Jun 19 18:11:01.431748 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/database/events.py", line 5, in <module> [Mon Jun 19 18:11:01.431802 2017] [:error] [pid 18592] [remote 10.11.12.15:128] from .instances import Instance, OpenstackProject [Mon Jun 19 18:11:01.431816 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/database/instances.py", line 2, in <module> [Mon Jun 19 18:11:01.431893 2017] [:error] [pid 18592] [remote 10.11.12.15:128] from .types import GUID [Mon Jun 19 18:11:01.431903 2017] [:error] [pid 18592] [remote 10.11.12.15:128] File "/var/lib/enclouden-orchestrator/database/types.py", line 5, in <module> [Mon Jun 19 18:11:01.431950 2017] [:error] [pid 18592] [remote 10.11.12.15:128] from sqlalchemy.dialects import postgresql [Mon Jun 19 18:11:01.431968 2017] [:error] [pid 18592] [remote 10.11.12.15:128] ImportError: cannot import name postgresql



and yes this is mod_wsgi and daemon mode is present
this is the wsgi file

WSGIDaemonProcess ecnorchestrator user=apache processes=10 threads=1
WSGIScriptAlias /enclouden/orchestrator /var/lib/enclouden-orchestrator/enclouden-orchestrator.wsgi
WSGIScriptReloading On
WSGIPassAuthorization On

<Directory /var/lib/enclouden-orchestrator>
         WSGIProcessGroup ecnorchestrator
         WSGIApplicationGroup %{GLOBAL}
         Order deny,allow
         Require all granted
         AddOutputFilterByType DEFLATE application/json
</Directory>




--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to