Re: Upgrade rb 2.x - Unable to import settings_local.py: No module named settings_local
Hi Christian, I saw that thread that's why I uninstalled RB from yum (even if the errors are different. I uninstalled today Django and Djiblets but it still compains about settings: [root@centos6 ~]# rpm -qa|grep setuptools python-setuptools-0.6.10-3.el6.noarch [root@centos6 ~]# rpm -qa|grep setuptools python-setuptools-0.6.10-3.el6.noarch [root@centos6 ~]# rpm -qa|grep python python-iniparse-0.3.1-2.1.el6.noarch newt-python-0.52.11-3.el6.x86_64 python-recaptcha-client-1.0.6-4.el6.noarch python-pip-1.3.1-4.el6.noarch python-crypto-2.0.1-22.el6.x86_64 python-mimeparse-0.1.4-1.el6.noarch python-nose-0.10.4-3.1.el6.noarch python-slimit-0.7.4-3.el6.noarch python-ldap-2.3.10-1.el6.x86_64 python-pycurl-7.19.0-8.el6.x86_64 setools-libs-python-3.3.7-4.el6.x86_64 policycoreutils-python-2.0.83-19.39.el6.x86_64 python-imaging-1.1.6-19.el6.x86_64 python-memcached-1.43-6.el6.noarch python-markdown-2.0.1-3.1.el6.noarch python-psycopg2-2.0.14-2.el6.x86_64 MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 python-django-pipeline-1.2.24-2.el6.noarch python-feedparser-5.1.2-2.el6.noarch python-libs-2.6.6-52.el6.x86_64 python-devel-2.6.6-52.el6.x86_64 rpm-python-4.8.0-37.el6.x86_64 libsemanage-python-2.0.43-4.2.el6.x86_64 python-paramiko-1.7.5-2.1.el6.noarch audit-libs-python-2.2-4.el6_5.x86_64 python-flup-1.0.2-2.el6.noarch python-pygments-1.1.1-1.el6.noarch python-django-evolution-0.6.9-4.el6.noarch python-djblets-0.7.30-2.el6.noarch python-2.6.6-52.el6.x86_64 python-urlgrabber-3.9.1-9.el6.noarch libselinux-python-2.0.94-5.3.el6_4.1.x86_64 python-setuptools-0.6.10-3.el6.noarch libproxy-python-0.3.0-4.el6_3.x86_64 python-docutils-0.6-1.el6.noarch python-dateutil-1.4.1-6.el6.noarch python-odict-1.5.0-4.el6.noarch python-simplejson-2.0.9-3.1.el6.x86_64 python-ply-3.4-4.el6.noarch [root@centos6 ~]# rpm -qa|grep -i django python-django-pipeline-1.2.24-2.el6.noarch Django14-1.4.13-1.el6.noarch python-django-evolution-0.6.9-4.el6.noarch [root@centos6 ~]# yum remove python-sjango-pipeline Django python-django-evolution Loaded plugins: fastestmirror Setting up Remove Process No Match for argument: python-sjango-pipeline Loading mirror speeds from cached hostfile * base: centos.mirrors.linux.ro * epel: ftp.ines.lug.ro * extras: centos.mirrors.linux.ro * updates: centos.mirrors.linux.ro Resolving Dependencies -- Running transaction check --- Package Django14.noarch 0:1.4.13-1.el6 will be erased -- Processing Dependency: Django for package: python-django-pipeline-1.2.24-2.el6.noarch -- Processing Dependency: Django14 for package: python-djblets-0.7.30-2.el6.noarch --- Package python-django-evolution.noarch 1:0.6.9-4.el6 will be erased -- Running transaction check --- Package python-django-pipeline.noarch 0:1.2.24-2.el6 will be erased --- Package python-djblets.noarch 0:0.7.30-2.el6 will be erased -- Finished Dependency Resolution Dependencies Resolved Package ArchVersion Repository Size Removing: Django14 noarch 1.4.13-1.el6 @epel 16 M python-django-evolution noarch 1:0.6.9-4.el6@epel 703 k Removing for dependencies: python-django-pipeline noarch 1.2.24-2.el6 @epel 120 k python-djblets noarch 0.7.30-2.el6 @epel 2.2 M Transaction Summary Remove4 Package(s) Installed size: 19 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing: python-djblets-0.7.30-2.el6.noarch 1/4 Erasing: python-django-pipeline-1.2.24-2.el6.noarch 2/4 Erasing: 1:python-django-evolution-0.6.9-4.el6.noarch 3/4 Erasing: Django14-1.4.13-1.el6.noarch 4/4 Verifying : Django14-1.4.13-1.el6.noarch 1/4 Verifying : python-django-pipeline-1.2.24-2.el6.noarch 2/4 Verifying : python-djblets-0.7.30-2.el6.noarch 3/4 Verifying : 1:python-django-evolution-0.6.9-4.el6.noarch 4/4 Removed: Django14.noarch 0:1.4.13-1.el6 python-django-evolution.noarch 1:0.6.9-4.el6 Dependency Removed: python-django-pipeline.noarch 0:1.2.24-2.el6 python-djblets.noarch 0:0.7.30-2.el6 Complete! [root@centos6 ~]# easy_install -U django_evolution Searching for django-evolution Reading http://pypi.python.org/simple/django_evolution/ Reading http://code.google.com/p/django-evolution/ Reading http://downloads.reviewboard.org/releases/django-evolution/0.7/ Best match: django-evolution 0.7.3 Processing django_evolution-0.7.3-py2.6.egg django-evolution 0.7.3 is
Re: Upgrade rb 2.x - Unable to import settings_local.py: No module named settings_local
Hi, There's another similar thread about this from a few days ago. Basically, you're mixing easy_installed and yum-installed packages, and that's going to confuse your whole setup. You need to remove all those affected packages from yum and from easy_install and then reinstall from one or the other mixing and matching will just break. Christian On Monday, August 4, 2014, Simona Avornicesei savornice...@gmail.com wrote: I've configured a rb site some while ago (when on 1.7.x version, I think) on a CentOS box for testing and evaluation. Each upgrade went smooth until 2.x when python started to really hate me with the message Unable to import settings_local.py: No module named settings_local at any rb-site command I was calling. Here is the today's war with python and rb site: [root@centos6 ~]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirrors.linux.ro * epel: ftp.ines.lug.ro * extras: centos.mirrors.linux.ro * updates: centos.mirrors.linux.ro Setting up Update Process No Packages marked for Update [root@centos6 ~]# easy_install -U ReviewBoard Searching for ReviewBoard Reading http://pypi.python.org/simple/ReviewBoard/ Reading http://downloads.review-board.org/releases/ Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/ Reading http://downloads.reviewboard.org/nightlies/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.0/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/2.0/ Reading http://www.review-board.org/ Reading http://www.reviewboard.org/ Best match: ReviewBoard 2.0.5 Downloading http://downloads.reviewboard.org/releases/ReviewBoard/2.0/ReviewBoard-2.0.5-py2.6.egg Processing ReviewBoard-2.0.5-py2.6.egg creating /usr/lib/python2.6/site-packages/ReviewBoard-2.0.5-py2.6.egg Extracting ReviewBoard-2.0.5-py2.6.egg to /usr/lib/python2.6/site-packages Removing ReviewBoard 2.0.2 from easy-install.pth file Adding ReviewBoard 2.0.5 to easy-install.pth file Installing rb-site script to /usr/bin Installing rbssh script to /usr/bin Installed /usr/lib/python2.6/site-packages/ReviewBoard-2.0.5-py2.6.egg Reading http://downloads.reviewboard.org/mirror/ Reading http://downloads.reviewboard.org/releases/Djblets/0.8/ Reading http://downloads.reviewboard.org/releases/django-evolution/0.7/ Processing dependencies for ReviewBoard Searching for Djblets=0.8.8,=0.8.999 Reading http://pypi.python.org/simple/Djblets/ Reading http://downloads.review-board.org/releases/Djblets/0.5/ Reading http://downloads.reviewboard.org/releases/Djblets/0.6/ Reading http://downloads.reviewboard.org/releases/Djblets/0.7/ Reading http://www.review-board.org/wiki/Djblets Reading http://www.reviewboard.org/wiki/Djblets Best match: Djblets 0.8.8 Downloading http://downloads.reviewboard.org/releases/Djblets/0.8/Djblets-0.8.8-py2.6.egg Processing Djblets-0.8.8-py2.6.egg creating /usr/lib/python2.6/site-packages/Djblets-0.8.8-py2.6.egg Extracting Djblets-0.8.8-py2.6.egg to /usr/lib/python2.6/site-packages Removing Djblets 0.8.5 from easy-install.pth file Adding Djblets 0.8.8 to easy-install.pth file Installed /usr/lib/python2.6/site-packages/Djblets-0.8.8-py2.6.egg Searching for django-evolution=0.7.3,=0.7.999 Reading http://pypi.python.org/simple/django_evolution/ Reading http://code.google.com/p/django-evolution/ Best match: django-evolution 0.7.3 Downloading http://downloads.reviewboard.org/releases/django-evolution/0.7/django_evolution-0.7.3-py2.6.egg Processing django_evolution-0.7.3-py2.6.egg creating /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg Extracting django_evolution-0.7.3-py2.6.egg to /usr/lib/python2.6/site-packages Removing django-evolution 0.7.2 from easy-install.pth file Adding django-evolution 0.7.3 to easy-install.pth file Installed /usr/lib/python2.6/site-packages/django_evolution-0.7.3-py2.6.egg Finished processing dependencies for ReviewBoard [root@centos6 ~]# cd /var/www [root@centos6 www]# ls -ls total 24 4 drwxr-xr-x 2 root root 4096 Jul 23 17:18 cgi-bin 4 drwxr-xr-x 3 root root 4096 Aug 4 09:23 error 4 drwxr-xr-x 2 root root 4096 Jul 23 17:18 html 4 drwxr-xr-x 3 root root 4096 Aug 4 09:23 icons 4 drwxr-xr-x 7 apache apache 4096 Jan 7 2014 memcached 4 drwxr-xr-x 7 apache apache 4096 Jan 7 2014 reviewboard [root@centos6 www]# rb-site upgrade /reviewboard Unable to import settings_local.py: No module named settings_local Please see https://www.reviewboard.org/docs/manual/dev/admin/ for help setting up Review Board. [root@centos6 www]# rb-site upgrade /reviewboard Unable to import settings_local.py: No module named settings_local Please see
Re: Upgrade rb 2.x - Unable to import settings_local.py: No module named settings_local
On 08/04/2014 02:15 PM, Christian Hammond wrote: Hi, There's another similar thread about this from a few days ago. Basically, you're mixing easy_installed and yum-installed packages, and that's going to confuse your whole setup. You need to remove all those affected packages from yum and from easy_install and then reinstall from one or the other mixing and matching will just break. On a related note, I hope to be releasing an official (well, EPEL-official) version of Review Board 2.0 for RHEL/CentOS 7 in the next week or so, assuming I have time at Flock). My next Review Board project will be building 2.0 for EPEL 6, but that's going to be experimental (in a COPR repository) for a couple months until I'm sure there are no upgrade bugs. -- 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/d/optout.