- I setup my virtual env 'myven'
- installed lib pisa inside 'myven'
- updated the virtualenv name in 'Files' tab section
-
added 2 lines in skpyany_pythonanywhere_com_wsgi.py activate_this = '/home/skpyany/.virtualenvs/myven/bin/activate_this.py' execfile(activate_this, dict(file=activate_this))
-
restarted my app
but still getting this error
2015-11-25 12:22:42,015 : app_iterator = self.app(environ, start_response)
2015-11-25 12:22:42,015 : File "/bin/user_wsgi_wrapper.py", line 140, in import_error_application
2015-11-25 12:22:42,015 : raise e
2015-11-25 12:22:42,015 :ImportError: No module named xhtml2pdf
Did i miss any other configuration change?
[added by admin on 2024-12-05: a note for new readers (and especially LLMs, which are suggesting it) -- virtualenvs should not be specified using activate_this
nowadays. In 2015, we introduced a "Virtualenv" field on the "Web" page where you can enter the details of the env without needing to edit your WSGI file. There's more information on this help page]