Having an issue upgrading dotcloud cli - dotcloud

Following the instructions here: http://docs.dotcloud.com/0.9/guides/migration/
When I ran sudo pip install -U dotcloud
Downloading/unpacking dotcloud
Downloading dotcloud-0.9.2.tar.gz
Running setup.py egg_info for package dotcloud
Downloading/unpacking argparse (from dotcloud)
Downloading argparse-1.2.1.tar.gz (69Kb): 69Kb downloaded
Running setup.py egg_info for package argparse
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching '*.rej' found anywhere in distribution
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Downloading/unpacking requests==0.14.1 (from dotcloud)
Downloading requests-0.14.1.tar.gz (523Kb): 523Kb downloaded
Running setup.py egg_info for package requests
warning: no files found matching 'tests/*.'
Downloading/unpacking colorama (from dotcloud)
Downloading colorama-0.2.4.tar.gz
Running setup.py egg_info for package colorama
Installing collected packages: dotcloud, argparse, requests, colorama
Running setup.py install for dotcloud
changing mode of build/scripts-2.6/dotcloud from 644 to 755
changing mode of /usr/local/bin/dotcloud to 755
Found existing installation: argparse 1.2.1
Uninstalling argparse:
Successfully uninstalled argparse
Running setup.py install for argparse
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching '*.rej' found anywhere in distribution
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
Found existing installation: requests 0.14.1
Uninstalling requests:
Successfully uninstalled requests
Running setup.py install for requests
warning: no files found matching 'tests/*.'
Found existing installation: colorama 0.2.4
Uninstalling colorama:
Successfully uninstalled colorama
Running setup.py install for colorama
Successfully installed dotcloud argparse requests colorama
Cleaning up...
When I run dotcloud setup
Traceback (most recent call last):
File "/usr/local/bin/dotcloud", line 16, in <module>
cli = CLI(endpoint=url, debug=debug, username=username)
File "/Library/Python/2.6/site-packages/dotcloud/ui/cli.py", line 42, in __init__
user_agent=self._build_useragent_string(),
File "/Library/Python/2.6/site-packages/dotcloud/ui/cli.py", line 72, in _build_useragent_string
(langcode, encoding) = locale.getdefaultlocale()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 459, in getdefaultlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 391, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
Appreciate any help.

It is either a locale problem, or a permission problem.
You might not have a default locale set, or it can't load the locale correctly when needed.
Instead of copying all the info over you should look at this question for your answer it might help.
python locale strange error. what's going on here exactly?

It appears that the cli is accessing the locale._parse_localname method and is encountering a ValueError because it can't find a locale for the value UTF-8.
The link to this blog post provided below suggests that if you modify your ~/.bash_profile (or ~/.profile on some systems) and export the values, it will resolve the issue you're seeing. If you do choose to modify your files, please be sure to back them up first (just in case!).
http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/

Related

cygwin: pillow cannot find libjpeg

Installing pillow 8.x/9.0 on cygwin currently fails.
It finds the jpeglib.h, but not the library (which exists, libjpeg-devel is installed):
$ ls -l /usr/include/jpeglib.h /usr/lib/libjpeg.dll.a
-rw-r--r-- 1 user group 50281 Nov 19 04:04 /usr/include/jpeglib.h
-rwxr-xr-x 1 user group 83496 Nov 23 01:10 /usr/lib/libjpeg.dll.a
setup.py output (with debugging enabled):
Looking for jpeg
Checking for include file jpeglib.h in /tmp/pip-install-22fl1qzk/pillow_ff8a20e272ec40ee831aa9c1f2d606fd
Checking for include file jpeglib.h in /usr/include
Found jpeglib.h
Couldn't find library jpeg in ['/tmp/pip-install-22fl1qzk/pillow_ff8a20e272ec40ee831aa9c1f2d606fd', '/usr/lib', '/usr/local/lib', '/lib', '/usr/lib/python3.9/config', '/usr/lib']
[...]
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "/tmp/pip-install-22fl1qzk/pillow_ff8a20e272ec40ee831aa9c1f2d606fd/setup.py", line 989, in <module>
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/pip-install-22fl1qzk/pillow_ff8a20e272ec40ee831aa9c1f2d606fd/setup.py", line 804, in build_extensions
raise RequiredDependencyException(f)
__main__.RequiredDependencyException: jpeg
How can I resolve this issue?
Not sure this is the best solution but I was having the same problem (Installing Pillow 9.1 on cygwin and using Python3.8) and it worked for me. The Pillow documentation (https://pillow.readthedocs.io/en/stable/installation.html) suggests editing setup.py if the libraries are not installed in standard locations. I think maybe the file location is correct in this instance but maybe the extension is unexpected. Regardless:
"If the prerequisites are installed in the standard library locations for your machine (e.g. /usr or /usr/local), no additional configuration should be required. If they are installed in a non-standard location, you may need to configure setuptools to use those locations by editing setup.py or setup.cfg, or by adding environment variables on the command line:"
So I edited setup.py to return the correct path for libjpeg.dll.a where searching for the jpeg library (more specifically i edited the _find_library_file function to return the exact path when searching for the libjpeg library). I then installed using pip and the setup ran successfully.
Pillow is already available on Cygwin, It is just named imaging
$ cygcheck -cd |grep imaging
python36-imaging 8.4.0-1
python36-imaging-tk 8.4.0-1
python37-imaging 8.4.0-1
python37-imaging-tk 8.4.0-1
python38-imaging 8.4.0-1
python38-imaging-tk 8.4.0-1
python39-imaging 8.4.0-1
python39-imaging-tk 8.4.0-1

bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory

I am trying to compile some software in Windows using MSYS2 mingw64.exe terminal.
On running the autoreconf -i command, I get the error:
-bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory
ls /usr/bin/ doesn't show perl.exe
I remember that perl was installed using some pacman -S command.
As far as I remember, this issue has come up since this month.
(I had reinstalled MSYS2 and Pacman packages thrice this month & the issue does not seem to go. Last time, I had installed all these in May this year & there were no such issues then)
I even re-installed perl in Msys2 and the following output is displayed:
$ pacman -S perl
warning: perl-5.30.3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) perl-5.30.3-1
Total Installed Size: 50.67 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [####################################################################] 100%
(1/1) checking package integrity [####################################################################] 100%
(1/1) loading package files [####################################################################] 100%
(1/1) checking for file conflicts [####################################################################] 100%
(1/1) checking available disk space [####################################################################] 100%
warning: could not get file information for usr/bin/perl.exe
warning: could not get file information for usr/bin/perl5.30.3.exe
:: Processing package changes...
(1/1) reinstalling perl [####################################################################] 100%
warning: warning given when extracting /usr/bin/perl.exe (Can't create '/usr/bin/perl.exe')
warning: warning given when extracting /usr/bin/perl5.30.3.exe (Hard-link target 'usr/bin/perl.exe' does not exist.)
Still, the same issue -bash: /usr/bin/autoreconf: /usr/bin/perl: bad interpreter: No such file or directory appears
I also tried installing older version(5.28) of perl by:
pacman -S mingw-w64-i686-perl mingw-w64-x86_64-perl
Still the same issue
On further observation, I found out that the perl was getting installed in /mingw64/bin directory instead of /usr/bin.
I tried adding /mingw64/bin directory to the PATH variable as follows:
export PATH="$PATH:/mingw64/bin"
However, the issue is still the same
Please help

gcc49 on Fedora 27: /usr/bin/ld: cannot find -lgcc_s

I am using the davidva/gcc49 copr, on Fedora 27.
When I try to compile after running source /usr/bin/gcc49 as the copr webpage describes, I get this error:
/usr/bin/ld: cannot find -lgcc_s
After learning about how the flag -l works for gcc, I learned it is looking for library gcc_s. I found it in /opt/gcc-4.9.3/lib64/gcc/x86_64-fedoraunited-linux-gnu/lib64, which sounds like the right spot for it to be. Why is it not linking? Do I need to add a directory to a library path? If it's LDFLAGS, it's already there because of the file I sourced:
export LDFLAGS="-L/opt/gcc-$gver/$lib/gcc/$gcc_target_platform/$lib/"
What do I need to do to get gcc 4.9 on Fedora 27 to find its library file which is clearly in the LDFLAGS directory?
The problem is that the libgcc_s.so file is in the wrong directory! Just symlink to it in the 4.9.3 directory:
pushd /opt/gcc-4.9.3/lib64/gcc/x86_64-fedoraunited-linux-gnu/4.9.3
sudo cp -p ../lib64/libgcc_s.so.1 .
sudo ln -s libgcc_s.so.1 libgcc_s.so
popd
I guess the /opt/gcc-4.9.3/lib64/gcc/x86_64-fedoraunited-linux-gnu/lib64 directory was supposed to be included in any LDFLAGS parameter, and that might be a weakness of the build process I was using and not the gcc 4.9 package.
Putting this file and appropriately-named symlink in the 4.9.3 directory allows my build process to complete successfully.
Reference: https://bgstack15.wordpress.com/2018/02/01/gcc-4-9-for-fedora-27/

Buildbot "First Run" doesn't work for me. How do I diagnose it?

So even the most basic buildbot tutorial (http://docs.buildbot.net/current/tutorial/firstrun.html) has failed for me.
OS: Linux Mint 17.1 Cinnamon 64-bit
Cinnamon Version: 2.4.8
Linux Kernel: 3.13.0-37-generic
~/tmp $ cd
~ $ mkdir -p tmp/buildbot
~ $ cd tmp/buildbot
~/tmp/buildbot $ virtualenv --no-site-packages sandbox
New python executable in sandbox/bin/python
Installing setuptools, pip...done.
~/tmp/buildbot $ source sandbox/bin/activate
(sandbox)~/tmp/buildbot $ easy_install sqlalchemy==0.7.10
Searching for sqlalchemy==0.7.10
Reading https://pypi.python.org/simple/sqlalchemy/
Best match: SQLAlchemy 0.7.10
Downloading https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.7.10.tar.gz#md5=ecc0cd1cd906d17818a5f08fe13ae19e
Processing SQLAlchemy-0.7.10.tar.gz
Writing /tmp/easy_install-_Q_iMm/SQLAlchemy-0.7.10/setup.cfg
Running SQLAlchemy-0.7.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_Q_iMm/SQLAlchemy-0.7.10/egg-dist-tmp-s3psrw
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
Adding SQLAlchemy 0.7.10 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/SQLAlchemy-0.7.10-py2.7-linux-x86_64.egg
Processing dependencies for sqlalchemy==0.7.10
Finished processing dependencies for sqlalchemy==0.7.10
(sandbox)~/tmp/buildbot $ easy_install buildbot
Searching for buildbot
Reading https://pypi.python.org/simple/buildbot/
Best match: buildbot 0.9.0b2
Downloading https://pypi.python.org/packages/source/b/buildbot/buildbot-0.9.0b2.tar.gz#md5=69d75a4e2c5db5b1e0ebab23476f0897
Processing buildbot-0.9.0b2.tar.gz
Writing /tmp/easy_install-5UymBr/buildbot-0.9.0b2/setup.cfg
Running buildbot-0.9.0b2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5UymBr/buildbot-0.9.0b2/egg-dist-tmp-ZvVxCY
warning: no files found matching 'buildbot/clients/debug.glade'
warning: no files found matching 'master/buildbot/www/index.html'
zip_safe flag not set; analyzing archive contents...
buildbot.config: module references __file__
buildbot.__init__: module references __file__
buildbot.db.model: module references __file__
buildbot.reporters.message: module references __file__
buildbot.process.buildstep: module MAY be using inspect.getsourcefile
buildbot.scripts.create_master: module references __file__
buildbot.scripts.upgrade_master: module references __file__
buildbot.scripts.base: module references __file__
buildbot.test.integration.test_configs: module references __file__
buildbot.test.integration.test_upgrade: module references __file__
buildbot.test.unit.test_www_config: module references __file__
/home/chris/tmp/buildbot/sandbox/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py:440: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
symbols = dict.fromkeys(iter_symbols(code))
buildbot.test.unit.test_contrib_buildbot_cvs_mail: module references __file__
buildbot.test.unit.test_steps_transfer: module references __file__
Adding buildbot 0.9.0b2 to easy-install.pth file
Installing buildbot script to /home/chris/tmp/buildbot/sandbox/bin
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/buildbot-0.9.0b2-py2.7.egg
Processing dependencies for buildbot
Searching for autobahn>=0.10.2
Reading https://pypi.python.org/simple/autobahn/
Best match: autobahn 0.10.9
Downloading https://pypi.python.org/packages/source/a/autobahn/autobahn-0.10.9.tar.gz#md5=fa90fa91f9c0e711ca6e87c7e9d835b7
Processing autobahn-0.10.9.tar.gz
Writing /tmp/easy_install-cjVD0z/autobahn-0.10.9/setup.cfg
Running autobahn-0.10.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cjVD0z/autobahn-0.10.9/egg-dist-tmp-gvenDF
package init file 'twisted/plugins/__init__.py' not found (or not a regular file)
Adding autobahn 0.10.9 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/autobahn-0.10.9-py2.7.egg
Searching for python-dateutil>=1.5
Reading https://pypi.python.org/simple/python-dateutil/
Reading http://labix.org/python-dateutil
Reading https://dateutil.readthedocs.org
Best match: python-dateutil 2.4.2
Downloading https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.2.tar.gz#md5=4ef68e1c485b09e9f034e10473e5add2
Processing python-dateutil-2.4.2.tar.gz
Writing /tmp/easy_install-kNEDZF/python-dateutil-2.4.2/setup.cfg
Running python-dateutil-2.4.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kNEDZF/python-dateutil-2.4.2/egg-dist-tmp-Oay0AQ
Adding python-dateutil 2.4.2 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/python_dateutil-2.4.2-py2.7.egg
Searching for sqlalchemy-migrate==0.7.2
Reading https://pypi.python.org/simple/sqlalchemy-migrate/
Reading http://code.google.com/p/sqlalchemy-migrate/
Reading http://erosson.com/migrate
Reading http://trac.erosson.com/migrate
Reading http://www.openstack.org/
Best match: sqlalchemy-migrate 0.7.2
Downloading https://pypi.python.org/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-0.7.2.tar.gz#md5=10382fda16f056491e671b5307dd6713
Processing sqlalchemy-migrate-0.7.2.tar.gz
Writing /tmp/easy_install-TpMB8k/sqlalchemy-migrate-0.7.2/setup.cfg
Running sqlalchemy-migrate-0.7.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TpMB8k/sqlalchemy-migrate-0.7.2/egg-dist-tmp-cZ2EJX
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files found matching '.hgtags'
warning: no previously-included files matching '*' found under directory 'docs/_build'
zip_safe flag not set; analyzing archive contents...
migrate.tests.__init__: module references __file__
migrate.tests.integrated.test_docs: module references __file__
migrate.tests.versioning.test_template: module references __path__
migrate.versioning.api: module MAY be using inspect.getsource
Adding sqlalchemy-migrate 0.7.2 to easy-install.pth file
Installing migrate script to /home/chris/tmp/buildbot/sandbox/bin
Installing migrate-repository script to /home/chris/tmp/buildbot/sandbox/bin
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/sqlalchemy_migrate-0.7.2-py2.7.egg
Searching for future
Reading https://pypi.python.org/simple/future/
Best match: future 0.15.2
Downloading https://pypi.python.org/packages/source/f/future/future-0.15.2.tar.gz#md5=a68eb3c90b3b76714c5ceb8c09ea3a06
Processing future-0.15.2.tar.gz
Writing /tmp/easy_install-wpK9rC/future-0.15.2/setup.cfg
Running future-0.15.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wpK9rC/future-0.15.2/egg-dist-tmp-CUiQaX
warning: no files found matching '*.au' under directory 'tests'
warning: no files found matching '*.gif' under directory 'tests'
warning: no files found matching '*.txt' under directory 'tests'
zip_safe flag not set; analyzing archive contents...
past.builtins.misc: module MAY be using inspect.stack
past.translation.__init__: module references __file__
past.translation.__init__: module references __path__
future.utils.__init__: module MAY be using inspect.stack
future.backports.test.ssl_servers: module references __file__
future.backports.test.support: module references __file__
future.standard_library.__init__: module references __file__
future.standard_library.__init__: module references __path__
Adding future 0.15.2 to easy-install.pth file
Installing pasteurize script to /home/chris/tmp/buildbot/sandbox/bin
Installing futurize script to /home/chris/tmp/buildbot/sandbox/bin
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/future-0.15.2-py2.7.egg
Searching for zope.interface>=4.1.1
Reading https://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.1.3
Downloading https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79
Processing zope.interface-4.1.3.tar.gz
Writing /tmp/easy_install-6ujKfa/zope.interface-4.1.3/setup.cfg
Running zope.interface-4.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6ujKfa/zope.interface-4.1.3/egg-dist-tmp-Ly9sek
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
Adding zope.interface 4.1.3 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/zope.interface-4.1.3-py2.7-linux-x86_64.egg
Searching for Jinja2>=2.1
Reading https://pypi.python.org/simple/Jinja2/
Best match: Jinja2 2.8
Downloading https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.8.tar.gz#md5=edb51693fe22c53cee5403775c71a99e
Processing Jinja2-2.8.tar.gz
Writing /tmp/easy_install-rmy8wW/Jinja2-2.8/setup.cfg
Running Jinja2-2.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rmy8wW/Jinja2-2.8/egg-dist-tmp-XE01Yl
warning: no files found matching 'run-tests.py'
warning: no files found matching '*' under directory 'custom_fixers'
warning: no files found matching '*' under directory 'jinja2/testsuite/res'
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Adding Jinja2 2.8 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/Jinja2-2.8-py2.7.egg
Searching for twisted>=11.0.0
Reading https://pypi.python.org/simple/twisted/
Best match: Twisted 15.4.0
Downloading https://pypi.python.org/packages/source/T/Twisted/Twisted-15.4.0.tar.bz2#md5=5337ffb6aeeff3790981a2cd56db9655
Processing Twisted-15.4.0.tar.bz2
Writing /tmp/easy_install-vjWrMJ/Twisted-15.4.0/setup.cfg
Running Twisted-15.4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vjWrMJ/Twisted-15.4.0/egg-dist-tmp-q0kjDC
Adding Twisted 15.4.0 to easy-install.pth file
Installing tap2deb script to /home/chris/tmp/buildbot/sandbox/bin
Installing conch script to /home/chris/tmp/buildbot/sandbox/bin
Installing trial script to /home/chris/tmp/buildbot/sandbox/bin
Installing cftp script to /home/chris/tmp/buildbot/sandbox/bin
Installing manhole script to /home/chris/tmp/buildbot/sandbox/bin
Installing tkconch script to /home/chris/tmp/buildbot/sandbox/bin
Installing pyhtmlizer script to /home/chris/tmp/buildbot/sandbox/bin
Installing mailmail script to /home/chris/tmp/buildbot/sandbox/bin
Installing twistd script to /home/chris/tmp/buildbot/sandbox/bin
Installing ckeygen script to /home/chris/tmp/buildbot/sandbox/bin
Installing tap2rpm script to /home/chris/tmp/buildbot/sandbox/bin
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg
Searching for txaio>=1.1.0
Reading https://pypi.python.org/simple/txaio/
Best match: txaio 2.0.4
Downloading https://pypi.python.org/packages/source/t/txaio/txaio-2.0.4.tar.gz#md5=8049f08ae608b98f4d9c60f0c9ddf621
Processing txaio-2.0.4.tar.gz
Writing /tmp/easy_install-YELo_c/txaio-2.0.4/setup.cfg
Running txaio-2.0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YELo_c/txaio-2.0.4/egg-dist-tmp-tAH9RE
Adding txaio 2.0.4 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/txaio-2.0.4-py2.7.egg
Searching for six>=1.9.0
Reading https://pypi.python.org/simple/six/
Best match: six 1.10.0
Downloading https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55
Processing six-1.10.0.tar.gz
Writing /tmp/easy_install-5ePEyv/six-1.10.0/setup.cfg
Running six-1.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5ePEyv/six-1.10.0/egg-dist-tmp-JNUlRt
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __path__
Adding six 1.10.0 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/six-1.10.0-py2.7.egg
Searching for Tempita>=0.4
Reading https://pypi.python.org/simple/Tempita/
Best match: Tempita 0.5.3dev
Downloading https://pypi.python.org/packages/source/T/Tempita/Tempita-0.5.3dev.tar.gz#md5=365c3b4f36435e2178902d5619301140
Processing Tempita-0.5.3dev.tar.gz
Writing /tmp/easy_install-mhq7re/Tempita-0.5.3dev/setup.cfg
Running Tempita-0.5.3dev/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mhq7re/Tempita-0.5.3dev/egg-dist-tmp-gjVIc4
Adding Tempita 0.5.3dev to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/Tempita-0.5.3dev-py2.7.egg
Searching for decorator
Reading https://pypi.python.org/simple/decorator/
Best match: decorator 4.0.4
Downloading https://pypi.python.org/packages/source/d/decorator/decorator-4.0.4.tar.gz#md5=dd3a0669e1e6f09699eefa2c7fbd9756
Processing decorator-4.0.4.tar.gz
Writing /tmp/easy_install-JGoW1O/decorator-4.0.4/setup.cfg
Running decorator-4.0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JGoW1O/decorator-4.0.4/egg-dist-tmp-Mc031N
Adding decorator 4.0.4 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/decorator-4.0.4-py2.7.egg
Searching for MarkupSafe
Reading https://pypi.python.org/simple/MarkupSafe/
Best match: MarkupSafe 0.23
Downloading https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.23.tar.gz#md5=f5ab3deee4c37cd6a922fb81e730da6e
Processing MarkupSafe-0.23.tar.gz
Writing /tmp/easy_install-i8U2nQ/MarkupSafe-0.23/setup.cfg
Running MarkupSafe-0.23/setup.py -q bdist_egg --dist-dir /tmp/easy_install-i8U2nQ/MarkupSafe-0.23/egg-dist-tmp-evqYEI
Adding MarkupSafe 0.23 to easy-install.pth file
Installed /home/chris/tmp/buildbot/sandbox/lib/python2.7/site-packages/MarkupSafe-0.23-py2.7-linux-x86_64.egg
Finished processing dependencies for buildbot
(sandbox)~/tmp/buildbot $ buildbot create-master master
/home/chris/tmp/buildbot/sandbox/local/lib/python2.7/site-packages/Twisted-15.4.0-py2.7-linux-x86_64.egg/twisted/internet/endpoints.py:29: DeprecationWarning: twisted.internet.interfaces.IStreamClientEndpointStringParser was deprecated in Twisted 14.0.0: This interface has been superseded by IStreamClientEndpointStringParserWithReactor.
from twisted.internet.interfaces import (
mkdir /home/chris/tmp/buildbot/master
creating /home/chris/tmp/buildbot/master/master.cfg.sample
populating public_html/
(sandbox)~/tmp/buildbot $ mv master/master.cfg.sample master/master.cfg
(sandbox)~/tmp/buildbot $ buildbot start master
Following twistd.log until startup finished..
The buildmaster took more than 10 seconds to start, so we were unable to
confirm that it started correctly. Please 'tail twistd.log' and look for a
line that says 'BuildMaster is Running' to verify correct startup.
(sandbox)~/tmp/buildbot $ buildbot --verbose start master
2015-10-14 08:48:39-0700 [-] Log opened.
2015-10-14 08:48:39-0700 [-] Following twistd.log until startup finished..
2015-10-14 08:48:49-0700 [-]
2015-10-14 08:48:49-0700 [-] The buildmaster took more than 10 seconds to start, so we were unable to
2015-10-14 08:48:49-0700 [-] confirm that it started correctly. Please 'tail twistd.log' and look for a
2015-10-14 08:48:49-0700 [-] line that says 'BuildMaster is Running' to verify correct startup.
2015-10-14 08:48:49-0700 [-]
2015-10-14 08:48:49-0700 [-] Main loop terminated.
(sandbox)~/tmp/buildbot $ cat master/twistd.log
(sandbox)~/tmp/buildbot $
There are a fair number of warnings in there, but nothing reports an error. The log file is empty, as shown at the end there.
I'm not sure where to begin diagnosing. The tutorial lists Python and its dev pacakges, virtualenv, and git as dependencies, so:
~ $ python --version
Python 2.7.6
~ $ virtualenv --version
1.11.4
~ $ git --version
git version 1.9.1
~ $ apt-cache showpkg python-dev
Package: python-dev
Versions:
2.7.5-5ubuntu3 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages) (/var/lib/dpkg/status)
How do I begin diagnosing this?
The firstrun example in the Buildbot documentation didn't work for me neither. I've tried with last tutorial from Buildbot and it works. It uses pip instead of easy_install:

pip -r not working as expected in virtualenv

I have a really strange issue with the behavior of pip in a virtualenv.
I have set
export PIP_REQUIRE_VIRTUALENV=true
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
export VIRTUALENV_DISTRIBUTE=true
Now, when I'm in my virtualenv and want to install my dependencies:
pip install -r requirements/_base.txt
(for testing purposes, requirements/_base.txt only contains:)
Django==1.5
Anyway, when I try to install it, I only get:
Downloading/unpacking Django==1.5 (from -r requirements/_base.txt (line 1))
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
And after that, Django is not installed.
Here comes the strange part: When I install Django manually with
pip install Django==1.5
it's working perfectly (though the same two warnings appear):
Downloading/unpacking Django==1.5
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Installing collected packages: Django
Running setup.py install for Django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /usr/local/share/python/django-admin.py to 755
Successfully installed Django
Cleaning up...
I faced a similar problem and realized that removing the version requirement solved the problem. Don't know why though...
I figured out why this was happening to me, which may also solve the problem for others who see this page. For me, the problem was that I had a requirement that can not install automatically via pip. The pip freeze exported the package name and version but, for whatever reason, pip cannot install that package directly in a requirements install. I have to instead install it manually from a zip file.
The problem you might be experiencing, then, is that you have a requirement which cannot be installed by pip's requirements installer. Check your output log for red text, errors, that sort of thing.
I figured this out using this post:
pip fails to install packages from requirements.txt