Hello everyone, I need a hand a here.

I have an app that uses wkhtmltopdf for generating pdf files, it works
perfectly on my development environment.

I now deployed the project on amazon eb and it doesn't work, below is the
stacktrace:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/utils/autoreload.py",
line 53, in wrapper
    fn(*args, **kwargs)
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
line 109, in inner_run
    autoreload.raise_last_exception()
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/utils/autoreload.py",
line 76, in raise_last_exception
    raise _exception[1]
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/management/__init__.py",
line 357, in execute
    autoreload.check_errors(django.setup)()
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/utils/autoreload.py",
line 53, in wrapper
    fn(*args, **kwargs)
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/__init__.py",
line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/apps/registry.py",
line 91, in populate
    app_config = AppConfig.create(entry)
  File
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/apps/config.py",
line 90, in create
    module = import_module(entry)
  File "/opt/python/run/venv/lib64/python3.6/importlib/__init__.py", line
126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File
"/opt/python/run/venv/local/lib/python3.6/dist-packages/wkhtmltopdf/__init__.py",
line 1, in <module>

*    from main import WKhtmlToPdf, wkhtmltopdfModuleNotFoundError: No
module named 'main'*

*Any help *would be appreciated.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPXBATR4US-pFWKUaW5x38gG7Fu2smwaEQkfCWJm%2BFDR%3Dh%2BT8Q%40mail.gmail.com.

Reply via email to