Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Update to Django 1.11 HOT 1
- API support for idempotency keys HOT 1
- Replace highcharts with another charting library HOT 1
- Test - ignore
- Deleting multiple drinks does not update stats and sessions
- Get project buildable again & release a new version HOT 19
- Update to Pipenv HOT 1
- Update to Python 3
- Update to Django 2
- Update docs links to point to readthedocs
- perform docker build as a pre-commit check HOT 1
- push new releases to Docker Hub
- Docker images for RaspberryPi HOT 2
- Fix the docker build for PRs
- Setting Debug = False (KEGBOT_ENV = production) breaks user uploaded images HOT 2
- Docker build fails due to cryptography dependency HOT 1
- Introduce a new (v2) api HOT 3
- feature request: make default drinker configurable in admin dashboard HOT 2
- Issue with "docker-compose up" HOT 1
- Media files do not load successfully HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kegbot-server.