Open Paul-LKW opened 10 years ago
Not sure the central agent has been published to eggs. @primalmotion could you confirm ?
Just for information, similar issue :
root@ar-vm1:~# python --version Python 2.7.3
root@ar-vm1:~# easy_install archipel-agent Searching for archipel-agent Best match: archipel-agent 0.6.0beta Processing archipel_agent-0.6.0beta-py2.7.egg archipel-agent 0.6.0beta is already the active version in easy-install.pth Installing archipel-ejabberdadmin script to /usr/local/bin Installing archipel-importvirtualmachine script to /usr/local/bin Installing archipel-command script to /usr/local/bin Installing archipel-updatedomain script to /usr/local/bin Installing archipel-initinstall script to /usr/local/bin Installing runarchipel script to /usr/local/bin Installing archipel-commandsbytag script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages/archipel_agent-0.6.0beta-py2.7.egg Processing dependencies for archipel-agent Searching for archipel-agent-centraldb>=0.6.0beta Reading http://pypi.python.org/simple/archipel-agent-centraldb/ Couldn't find index page for 'archipel-agent-centraldb' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for archipel-agent-centraldb>=0.6.0beta error: Could not find suitable distribution for Requirement.parse('archipel-agent-centraldb>=0.6.0beta')
root@ar-vm1:~# archipel-initinstall
Traceback (most recent call last):
File "/usr/local/bin/archipel-initinstall", line 4, in
The problem only exists for me when a mix of ubuntu installed packages are used with easy_install.
The problem does not exists when doing :
apt-get install python2.7-dev apt-get install python-dev apt-get install python-setuptools easy_install -U archipel-agent
I assume this issue can be closed.
Still i have the problem ... :(
root@way:~/ArchipelAgent# easy_install -U archipel-agent Processing archipel-agent Running setup.py -q bdist_egg --dist-dir /root/ArchipelAgent/archipel-agent/egg-dist-tmp-9INJKo archipel-agent 0.6.0beta is already the active version in easy-install.pth Installing archipel-commandsbytag script to /usr/local/bin Installing archipel-ejabberdadmin script to /usr/local/bin Installing archipel-importvirtualmachine script to /usr/local/bin Installing archipel-initinstall script to /usr/local/bin Installing archipel-command script to /usr/local/bin Installing archipel-updatedomain script to /usr/local/bin Installing runarchipel script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/archipel_agent-0.6.0beta-py2.7.egg Processing dependencies for archipel-agent==0.6.0beta Searching for archipel-agent-centraldb>=0.6.0beta Reading http://pypi.python.org/simple/archipel-agent-centraldb/ Couldn't find index page for 'archipel-agent-centraldb' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for archipel-agent-centraldb>=0.6.0beta error: Could not find suitable distribution for Requirement.parse('archipel-agent-centraldb>=0.6.0beta')
Only tested Archipel, but on Ubuntu, I came to the conclusion that currently easy_install is broken.
I finally used the git code, which works (ish). I can still not perform live migration (did not have enough time to find out exactly how to configure TLS).
# this rm command or wherever it is - not sure what I ran anymore to remove the code cleanly
rm -rf /usr/lib/python2.?/site-packages/archipel*
git clone https://github.com/ArchipelProject/Archipel.git
cd Archipel/ArchipelAgent
./buildAgent -d
Even then I had to remove PIL and pip install to find what why it was not working.
# needed by python PIL
apt-get install libpng libpng12-dev
apt-get install libjpeg62 libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
# fixes ubuntu bug for PIL
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
pip uninstall PIL
pip install PIL --allow-external PIL --allow-unverified PIL
without this the screenshot feature does not work (not the end of the world).
and do not forget to run kvm-ok to make sure your BIOS is setup correctly :-)
that's correct there is a problem in setup file ... now it is ok.. ... cking .pth file support in /usr/local/lib/python2.7/dist-packages/ /usr/bin/python -E -c pass TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files running egg_info creating archipel_core.egg-info writing requirements to archipel_core.egg-info/requires.txt writing archipel_core.egg-info/PKG-INFO writing top-level names to archipel_core.egg-info/top_level.txt writing dependency_links to archipel_core.egg-info/dependency_links.txt writing manifest file 'archipel_core.egg-info/SOURCES.txt' reading manifest file 'archipel_core.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*' under directory 'install/usr/bin' writing manifest file 'archipel_core.egg-info/SOURCES.txt' running build_ext Creating /usr/local/lib/python2.7/dist-packages/archipel-core.egg-link (link to .) Removing archipel-core 0.6.0beta from easy-install.pth file Adding archipel-core 0.6.0beta to easy-install.pth file Installing archipel-tagnode script to /usr/local/bin Installing archipel-rolesnode script to /usr/local/bin Installing archipel-adminaccounts script to /usr/local/bin Installing archipel-centralagentnode script to /usr/local/bin Installing archipel-testxmppserver script to /usr/local/bin
Installed /root/Archipel-master/ArchipelAgent/archipel-core SUCCESS: EGG package archipel-core
Thankyou.
@primalmotion I am sure startup $dayjob is taking quite some of your time but it would be very useful if you could generate the pypi package. Please, pretty please, with cherry on top. Merci bcp d'avance :-)
The version with central agent is not published as a beta, so it should not go to pypi
I think this issue only happens when you mix and match dev install and beta install, which is a bad idea anyway.
@primalmotion, thank you for this quick answer. This is not my experience. I installed Archipel on two servers using easy_install and both had the issue. Only once it failed did I use git.
Installed /usr/lib/python2.6/site-packages/archipel_agent_hypervisor_geolocalization-0.6.0beta-py2.6.egg Searching for archipel-agent-centraldb>=0.6.0beta Reading http://pypi.python.org/simple/archipel-agent-centraldb/ Couldn't find index page for 'archipel-agent-centraldb' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for archipel-agent-centraldb>=0.6.0beta Best match: None Traceback (most recent call last): File "/usr/bin/easy_install", line 8, in
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1712, in main
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1716, in
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 427, in easy_install
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 478, in install_item
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 519, in process_distribution
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 563, in resolve
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 799, in best_match
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 811, in obtain
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'