anybox / anybox.recipe.odoo

Buildout recipe for Odoo >=8. For older versions please use anybox.recipe.openerp
http://docs.anybox.fr/anybox.recipe.odoo/current/
GNU Affero General Public License v3.0
25 stars 63 forks source link

Couldn't find a distribution for 'pychart' #103

Open bealdav opened 7 years ago

bealdav commented 7 years ago

It seems 1.9.2 recipe does not include this commit https://github.com/anybox/anybox.recipe.odoo/commit/968735b9e8d0047454879e8e9a7e5e3361bd2a27

Is it possible to generate a new version with this commit ?

Thanks a lot

livingmine commented 7 years ago

My issue in osiell/odoo-buildout-example#1 might relate to this issue and now unfortunately http://download.gna.org/pychart/ can't be accessed either.

bealdav commented 7 years ago

You can specify:

vcs-extend-develop = git+https://github.com/anybox/anybox.recipe.odoo@e37e0ac527de58abe6e913e4eff670d2f8d72c9a#egg=master

in your buildlout file to avoid this problem

livingmine commented 7 years ago

@bealdav Thanks for your suggestion. I've inserted the line here:

[buildout]
parts = odoo
vcs-extend-develop = git+https://github.com/anybox/anybox.recipe.odoo@e37e0ac527de58abe6e913e4eff670d2f8d72c9a#egg=master 
...

but the following error occurred instead:

"stdout_lines": ["Unused options for buildout: 'vcs-extend-develop'.",...]

Am i doing it wrong?

sebalix commented 7 years ago

You have to put this line right before:

extensions = gp.vcsdevelop
livingmine commented 7 years ago

@sebalix Thanks for your suggestion. Unfortunately, another error occured. Here is my full buildout.cfg:

[buildout]
parts = odoo
extensions = gp.vcsdevelop
vcs-extend-develop = git+https://github.com/anybox/anybox.recipe.odoo@e37e0ac527de58abe6e913e4eff670d2f8d72c9a#egg=master

[odoo]
recipe = anybox.recipe.odoo:server
version = git https://github.com/OCA/OCB.git odoo 8.0 depth=1
addons =
options.admin_passwd = admin
options.workers = 0

[versions]
zc.buildout = 2.5.2
anybox.recipe.odoo = 1.9.2
setuptools = 23

Babel = 1.3
Jinja2 = 2.7.3
Mako = 1.0.0
MarkupSafe = 0.23
Pillow = 2.5.1
Python-Chart = 1.39
PyYAML = 3.11
Werkzeug = 0.9.6
argparse = 1.2.1
decorator = 3.4.0
docutils = 0.12
feedparser = 5.1.3
gdata = 2.0.18
gevent = 1.0.2
greenlet = 0.4.7
jcconv = 0.2.3
lxml = 3.3.5
mock = 1.0.1
passlib = 1.6.2
psutil = 2.1.1
psycogreen = 1.0
psycopg2 = 2.5.3
pyPdf = 1.13
pydot = 1.0.2
pyparsing = 1.5.7
pyserial = 2.7
python-dateutil = 1.5
python-ldap = 2.4.15
python-openid = 2.2.5
pytz = 2014.4
pyusb = 1.0.0b1
qrcode = 5.0.1
reportlab = 3.1.44
requests = 2.6.0
simplejson = 3.5.3
six = 1.7.3
unittest2 = 0.5.1
vatnumber = 1.2
vobject = 0.6.6
wsgiref = 0.1.2
xlwt = 0.7.5

The error:

TASK [sebalix.odoo : Run buildout] *********************************************
fatal: [my_odoo]: FAILED! => {"changed": false, "cmd": 
["/home/odoo/odoo/bin/buildout", "-c", "/home/odoo/odoo/buildout.cfg"], "delta": 
"0:00:14.814971", "end": "2017-06-12 12:50:57.306581", "failed": true, "rc": 1, 
"start": "2017-06-12 12:50:42.491610", "stderr": "warning: no previously-included 
files matching '*' found under directory 'docs/_build'\nno previously-included 
directories found matching 'buildbot'\nFrom https://github.com/OCA/OCB\n * 
branch            8.0        -> FETCH_HEAD\nHEAD is now at 6b5c143... Merge 
remote-tracking branch 'odoo/8.0' into 8.0\nwarning: no files found matching '*.gif' 
under directory 'openerp'\nwarning: no files found matching '*.ico' under directory 
'openerp'\nwarning: no files found matching '*.jpeg' under directory 
'openerp'\nwarning: no files found matching '*.less' under directory 
'openerp'\nwarning: no files found matching '*.md' under directory 
'openerp'\nwarning: no files found matching '*.mp3' under directory 
'openerp'\nwarning: no files found matching '*.ogg' under directory 
'openerp'\nwarning: no files found matching '*.rst' under directory 
'openerp'\nwarning: no files found matching '*.svg' under directory 
'openerp'\nwarning: no files found matching '*.ttf' under directory 
'openerp'\nwarning: no files found matching '*.woff' under directory 
'openerp'\nwarning: no previously-included files matching '*.py[co]' found under 
directory '*'\nwarning: no previously-included files matching '*.hg*' found under 
directory '*'\nWhile:\n  Installing odoo.\nError: Couldn't find a distribution for 
'pychart'.", "stderr_lines": ["warning: no previously-included files matching '*' 
found under directory 'docs/_build'", "no previously-included directories found 
matching 'buildbot'", "From https://github.com/OCA/OCB", " * branch            
8.0        -> FETCH_HEAD", "HEAD is now at 6b5c143... Merge remote-tracking branch 
'odoo/8.0' into 8.0", "warning: no files found matching '*.gif' under directory 
'openerp'", "warning: no files found matching '*.ico' under directory 'openerp'", 
"warning: no files found matching '*.jpeg' under directory 'openerp'", "warning: no 
files found matching '*.less' under directory 'openerp'", "warning: no files found 
matching '*.md' under directory 'openerp'", "warning: no files found matching '*.mp3' 
under directory 'openerp'", "warning: no files found matching '*.ogg' under directory 
'openerp'", "warning: no files found matching '*.rst' under directory 'openerp'", 
"warning: no files found matching '*.svg' under directory 'openerp'", "warning: no 
files found matching '*.ttf' under directory 'openerp'", "warning: no files found 
matching '*.woff' under directory 'openerp'", "warning: no previously-included files 
matching '*.py[co]' found under directory '*'", "warning: no previously-included 
files matching '*.hg*' found under directory '*'", "While:", "  Installing odoo.", 
"Error: Couldn't find a distribution for 'pychart'."], "stdout": "Getting 
distribution for 'gp.vcsdevelop'.\nGot gp.vcsdevelop 2.2.3.\nCloning 
https://github.com/anybox/anybox.recipe.odoo (to 
e37e0ac527de58abe6e913e4eff670d2f8d72c9a) to ./master\nFound command 'git' at 
'/usr/bin/git'\n1.9.2b1\na.r.odoo-1.9.0\na.r.odoo-1.9.1\na.r.openerp-1.9.0\nc7042b84c0
120de70a10551f3f1d8085587b73a8\n4c8c77685a5559506068a6dcb8e84b22470bfef9\n7713d62482b3
18c8be55d867f763344d32b3dec9\n61f7822e011406185b794c6635f82010f535d774\n  origin/HEAD 
-> origin/master\n  origin/a.r.openerp-1.8\n  origin/a.r.openerp-1.9\n  
origin/master\n  
origin/petrus-v-patch-1\ne37e0ac527de58abe6e913e4eff670d2f8d72c9a\nf269a33d2342c97d9fc
8b9ea6b6e001b100dd479\n456605a9cf49813f0fa44f7183e8f45e952343a2\ne37e0ac527de58abe6e91
3e4eff670d2f8d72c9a\n8de35e30f0b0c9aaef0891361be2b4a61e875c15\nCould not find a tag 
or branch 'e37e0ac527de58abe6e913e4eff670d2f8d72c9a', assuming 
commit.\ne37e0ac527de58abe6e913e4eff670d2f8d72c9a\nDevelop: 
'/home/odoo/odoo/master'\nInstalling odoo.\nanybox.recipe.odoo.base: Selected install 
type: git\nanybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call ['git', 
'ls-remote', 'origin', '8.0']\nanybox.recipe.odoo.vcs.git: 
/home/odoo/odoo/parts/odoo> call ['git', 'fetch', '--depth', '1', 'origin', 
'8.0']\nanybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call ['git', 
'update-ref', 'refs/remotes/origin/8.0', 'FETCH_HEAD']\nanybox.recipe.odoo.vcs.git: 
/home/odoo/odoo/parts/odoo> call ['git', 'checkout', 
'FETCH_HEAD']\nanybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call ['git', 
'branch', '-f', '8.0']\nGetting distribution for 'pychart'.\nanybox.recipe.odoo.base: 
Could not find or install 'pychart'.  Original exception 
zc.buildout.easy_install.MissingDistribution says: Couldn't find a distribution for 
'pychart'.", "stdout_lines": ["Getting distribution for 'gp.vcsdevelop'.", "Got 
gp.vcsdevelop 2.2.3.", "Cloning https://github.com/anybox/anybox.recipe.odoo (to 
e37e0ac527de58abe6e913e4eff670d2f8d72c9a) to ./master", "Found command 'git' at 
'/usr/bin/git'", "1.9.2b1", "a.r.odoo-1.9.0", "a.r.odoo-1.9.1", "a.r.openerp-1.9.0", 
"c7042b84c0120de70a10551f3f1d8085587b73a8", 
"4c8c77685a5559506068a6dcb8e84b22470bfef9", 
"7713d62482b318c8be55d867f763344d32b3dec9", 
"61f7822e011406185b794c6635f82010f535d774", "  origin/HEAD -> origin/master", "  
origin/a.r.openerp-1.8", "  origin/a.r.openerp-1.9", "  origin/master", "  
origin/petrus-v-patch-1", "e37e0ac527de58abe6e913e4eff670d2f8d72c9a", 
"f269a33d2342c97d9fc8b9ea6b6e001b100dd479", 
"456605a9cf49813f0fa44f7183e8f45e952343a2", 
"e37e0ac527de58abe6e913e4eff670d2f8d72c9a", 
"8de35e30f0b0c9aaef0891361be2b4a61e875c15", "Could not find a tag or branch 
'e37e0ac527de58abe6e913e4eff670d2f8d72c9a', assuming commit.", 
"e37e0ac527de58abe6e913e4eff670d2f8d72c9a", "Develop: '/home/odoo/odoo/master'", 
"Installing odoo.", "anybox.recipe.odoo.base: Selected install type: git", 
"anybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call ['git', 'ls-remote', 
'origin', '8.0']", "anybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call 
['git', 'fetch', '--depth', '1', 'origin', '8.0']", "anybox.recipe.odoo.vcs.git: 
/home/odoo/odoo/parts/odoo> call ['git', 'update-ref', 'refs/remotes/origin/8.0', 
'FETCH_HEAD']", "anybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> call ['git', 
'checkout', 'FETCH_HEAD']", "anybox.recipe.odoo.vcs.git: /home/odoo/odoo/parts/odoo> 
call ['git', 'branch', '-f', '8.0']", "Getting distribution for 'pychart'.", 
"anybox.recipe.odoo.base: Could not find or install 'pychart'.  Original exception 
zc.buildout.easy_install.MissingDistribution says: Couldn't find a distribution for 
'pychart'."]}
sebalix commented 7 years ago

Replace #egg=master by #egg=anybox.recipe.odoo at the end, otherwise you are still using the 1.9.2 release:

vcs-extend-develop = git+https://github.com/anybox/anybox.recipe.odoo@e37e0ac527de58abe6e913e4eff670d2f8d72c9a#egg=anybox.recipe.odoo
livingmine commented 7 years ago

@sebalix Thanks! After following your suggestion and removing line

anybox.recipe.odoo = 1.9.2

from [versions] tag, i finally got it working. Are there any side effects with this workaround?

virgilio commented 7 years ago

I've been looking for this solution for a long time!!! It is driving me crazy now 'cause I'm about to go to production! @bealdav Would you please change the title from: pychar lib to pychart lib? or, if you are in a good mood, even to: MissingDistribution says: Couldn't find a distribution for 'pychart'.

Thanks a lot! =), anyway!

thomaspaulb commented 7 years ago

I think that instead of using another recipe version, it's also possible to just add:

[buildout]
find-links = 
  https://github.com/Infinite-Code/PyChart/tarball/master#egg=pychart

This used to be a link to download.gna.org but that one seems unstable lately.