Giter Club home page Giter Club logo

Comments (7)

mik3y avatar mik3y commented on August 15, 2024

Hmmm. Something is unhappy about Django 1.4. Sentry does not support it, but I pulled that out of the required modules list.

Have you tried installing Kegbot into a virtualenv? That will solve the problem assuming the conflict is coming from a system python package..

from kegbot-server.

szechyjs avatar szechyjs commented on August 15, 2024

I removed sentry as a requirement and it finished the install. I just finished migrating and everything seems ready to go. However, I'm now getting this error when navigating to the home page...


Environment:


Request Method: GET
Request URL: http://ec2-184-73-77-139.compute-1.amazonaws.com/kegweb/

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.humanize',
 'django.contrib.markup',
 'django.contrib.messages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.staticfiles',
 'django_extensions',
 'bootstrapform',
 'imagekit',
 'pykeg.beerdb',
 'pykeg.connections',
 'pykeg.connections.foursquare',
 'pykeg.connections.twitter',
 'pykeg.connections.untappd',
 'pykeg.contrib.soundserver',
 'pykeg.core',
 'pykeg.web',
 'pykeg.web.api',
 'pykeg.web.account',
 'pykeg.web.charts',
 'pykeg.web.kegweb',
 'icanhaz',
 'registration',
 'socialregistration',
 'socialregistration.contrib.twitter',
 'socialregistration.contrib.facebook',
 'socialregistration.contrib.foursquare',
 'south',
 'django_nose',
 'djcelery',
 'djkombu',
 'raven.contrib.django',
 'sentry',
 'rjdj.djangotornado')
Installed Middleware:
('django.middleware.cache.UpdateCacheMiddleware',
 'django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'pykeg.web.middleware.KegbotSiteMiddleware',
 'pykeg.web.middleware.SiteActiveMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.cache.FetchFromCacheMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/core/handlers/base.py" in get_response
  101.                             request.path_info)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/core/urlresolvers.py" in resolve
  298.             for pattern in self.url_patterns:
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/core/urlresolvers.py" in url_patterns
  328.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/core/urlresolvers.py" in urlconf_module
  323.             self._urlconf_module = import_module(self.urlconf_name)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/home/ubuntu/kegbot/pykeg/src/pykeg/web/urls.py" in <module>
  12. admin.autodiscover()
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/contrib/admin/__init__.py" in autodiscover
  29.             import_module('%s.admin' % app)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/home/ubuntu/kegbot/pykeg/src/pykeg/connections/untappd/admin.py" in <module>
  20. import pykeg.core.importhacks
File "/home/ubuntu/kegbot/pykeg/src/pykeg/core/importhacks.py" in <module>
  28. USER_SETTINGS_DIR = os.path.join(HOME_DIR, '.kegbot')
File "/usr/lib/python2.7/posixpath.py" in join
  68.         elif path == '' or path.endswith('/'):

Exception Type: AttributeError at /kegweb/
Exception Value: 'NoneType' object has no attribute 'endswith'

from kegbot-server.

szechyjs avatar szechyjs commented on August 15, 2024

Up until the most recent commits pykeg was running just fine for me by removing sentry. With the current version I get the following error.

Error importing middleware pykeg.web.middleware: "No module named sentry.client"

Not sure what to make of the above error, I solved it by commenting out the USER_SETTING_DIR include in importhacks.py however, after stashing that change when doing the latest merge things seem to be working now without it.

from kegbot-server.

mik3y avatar mik3y commented on August 15, 2024

Can you try uninstalling "django-sentry"?

Sentry's pip package was renamed to, er, "sentry", apparently as part of making it a more fully-featured standalone server.

They occupy the same package name, so I'm not sure which one wins when they're both present (I'm guessing the old one in your case).

from kegbot-server.

szechyjs avatar szechyjs commented on August 15, 2024

I had already removed 'django-sentry'. From what I can tell there is an sentry incompatibility with django 1.4, as I can't install sentry with django 1.4 installed. I used to be able to remove the sentry requirement from setup.py, however after the recent changes that no longer works.

from kegbot-server.

mik3y avatar mik3y commented on August 15, 2024

Do you have imports of some sort in your ~/.kegbot/{common || local}_settings.py ? Also delete any stale pyc files in the directory.

from kegbot-server.

mik3y avatar mik3y commented on August 15, 2024

Not seeing this issue on clean installs. Please re-open providing repro steps (starting with a fresh virtualenv) if it's still a problem.

from kegbot-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.