I have managed to run RB in virtualenv, but get (harmless?) repeating error - https://groups.google.com/forum/#!topic/reviewboard/NGKUWOeJobI
/v суббота, 16 ноября 2013 г., 0:43:20 UTC+4 пользователь Christian Hammond написал: > > Hi, > > It's not SITE_ID. Assuming you're using a different database for 2.0 > (really hope you are), then it's something else. > > Most likely, it's not using the proper Djblets. Can you check to make sure > Djblets 0.8alpha1 is being used within the virtualenv? And if you have any > tracebacks in the logs that might indicate, that'd help too. > > Christian > > -- > Christian Hammond - chi...@chipx86.com <javascript:> > Review Board - http://www.reviewboard.org > Beanbag, Inc. - http://www.beanbaginc.com > > > On Fri, Nov 15, 2013 at 3:33 AM, Vlad S. <the...@gmail.com > <javascript:>>wrote: > >> Hi! >> >> I am trying out new 2.0 beta1 in a staging virtual env and getting this >> error: >> >> [Fri Nov 15 11:10:01 2013] [error] ERROR:root:Exception thrown for user >> AnonymousUser at http://rb-dev. >> [..]/rb/account/login/?next_page=/rb/dashboard/ >> [Fri Nov 15 11:10:01 2013] [error] >> [Fri Nov 15 11:10:01 2013] [error] The file >> 'djblets/js/jquery.gravy.min.js' could not be found with <pipelin >> e.storage.PipelineCachedStorage object at 0x7f82acfc24d0>. >> [Fri Nov 15 11:10:01 2013] [error] Traceback (most recent call last): >> >> >> RB ws installed with >> $ easy_install -f >> http://downloads.reviewboard.org/releases/ReviewBoard/2.0/ -U ReviewBoard >> in python virtual env. >> >> reviewboard.wsgi has been fixed to use virtualenv: >> --------------- >> import os >> import sys >> import site >> >> # Add the site-packages of the chosen virtualenv to work with >> site.addsitedir('/home/rb/envs/rb-dev/lib/python2.6/site-packages') >> >> os.environ['DJANGO_SETTINGS_MODULE'] = "reviewboard.settings" >> os.environ['PYTHON_EGG_CACHE'] = "/home/rb/www/rb-dev/tmp/egg_cache" >> os.environ['HOME'] = "/home/rb/www/rb-dev/data" >> os.environ['PYTHONPATH'] = '/home/rb/www/rb-dev/conf:' + >> os.environ.get('PYTHONPATH', '') >> >> sys.path = ['/home/rb/www/rb-dev/conf'] + sys.path >> >> # Activate rb-dev virtual env >> >> activate_env=os.path.expanduser("/home/rb/envs/rb-dev/bin/activate_this.py") >> execfile(activate_env, dict(__file__=activate_env)) >> >> import django.core.handlers.wsgi >> application = django.core.handlers.wsgi.WSGIHandler() >> -------------- >> >> I think I made things right but still getting this error with no clue on >> how to fix this. >> >> Shall I change SITE_ID=1? The testing environment is on the site as >> production one, so I had to isolate that with virtualenv. >> >> -- >> V. >> ~ >> >> ~ >> >> ~ >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.