Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named cache #5

Closed
PixelHir opened this issue Nov 6, 2017 · 1 comment
Closed

ImportError: No module named cache #5

PixelHir opened this issue Nov 6, 2017 · 1 comment

Comments

@PixelHir
Copy link
Contributor

PixelHir commented Nov 6, 2017

Lately I've been trying to set up kmanga on my own server, unfortunately I've run into some problems
root@pixelggamer:~/kmanga# kmanga/manage.py makemigrations Traceback (most recent call last): File "kmanga/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 363, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 355, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 327, in execute self.check() File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 359, in check include_deployment_checks=include_deployment_checks, File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 346, in _run_checks return checks.run_checks(**kwargs) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 16, in check_url_config return check_resolver(resolver) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 26, in check_resolver return check_method() File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 254, in check for pattern in self.url_patterns: File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 405, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py", line 398, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/root/kmanga/kmanga/kmanga/urls.py", line 32, in <module> url(r'^kmanga/', include('core.urls')), File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 50, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/root/kmanga/kmanga/core/urls.py", line 3, in <module> from .views import AboutTemplateView File "/root/kmanga/kmanga/core/views.py", line 19, in <module> from .forms import ContactForm File "/root/kmanga/kmanga/core/forms.py", line 8, in <module> from scrapyctl.utils import send File "/root/kmanga/kmanga/scrapyctl/utils.py", line 7, in <module> from scrapyctl.mobictl import create_mobi_and_send File "/root/kmanga/kmanga/scrapyctl/mobictl.py", line 13, in <module> from scrapyctl.emailctl import send_mobi File "/root/kmanga/kmanga/scrapyctl/emailctl.py", line 9, in <module> from mobi.cache import MobiCache ImportError: No module named cache root@pixelggamer:~/kmanga#
I installed all the requirements, I don't know what I am doing wrong, since there is no documentation

@aplanas
Copy link
Owner

aplanas commented Nov 6, 2017

Oh yes. I need to fix this for the long term, but for now you can do this:

  • Create a virtualenv
  • In the site-packages directory create two symlinks:
    ** ln -s ~/kmanga/mobi mobi
    ** ln -s ~/kmanga/scraper/scraper scraper

You can see the code that do this here:
https://github.com/aplanas/kmanga/blob/master/bin/env_build.sh#L22

@aplanas aplanas closed this as completed Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants