Skip to content

Egg for version 0.2b2 is broken #8

Closed
alecghica opened this Issue Jan 31, 2013 · 7 comments

2 participants

@alecghica
Plone Collective member

I am trying to use the latest egg released of the package (currently on version 0.2b2) but when I run buildout ends up with following error:

error: Setup script exited with error: can't copy 'src/collective/xmpp/chat/browser/resources': doesn't exist or not a regular file

Looks like something wrong with the git submodule inside the egg. The files are there, the MANIFEST.in looks good but still I have this error.

Any clue on this? @jcbrand have you successfully used this egg? As I am confused right now if is a local problem of mine or a problem with the egg.

@jcbrand jcbrand was assigned Jan 31, 2013
@jcbrand
Plone Collective member
jcbrand commented Feb 1, 2013

Looks like easy_install has problems with git submodules. I'll have to debug further...

@alecghica
Plone Collective member

Now that its clear is not a local problem of mine I'll digg too into this, I'll keep you posted if I'll found something.

@alecghica
Plone Collective member

@jcbrand I found the problem. The way you create the egg is somehow wrong. Right now the problem is that in the egg under src/collective.xmpp.chat.egg-info/SOURCES.txt file is listed a folder src/collective/xmpp/chat/browser/resources. Under this SOURCES.txt should be listed only file paths, not folders.

I re-created the egg using bellow commands and everything went well, build and install were working after that:

python setup.py sdist --format=zip

Just curious, how did you generate the egg?

@jcbrand
Plone Collective member
jcbrand commented Feb 2, 2013

Did you manually edit SOURCES.txt? That is of course not a lasting solution.

I used the exact same command as you pasted there. In any case, using setuptools-git solves the problem.
http://pypi.python.org/pypi/setuptools-git/1.0b1

I've made a new release 0.2b4

Thanks for the ticket and investigation.

@jcbrand jcbrand closed this Feb 2, 2013
@alecghica
Plone Collective member

@jcbrand thx too, everything works fine now with the latest egg.

I did't manually edited SOURCES.txt, I just took the sources and created the egg and everything went fine. Thats why I ask you how you did it as for me egg creation with the above command went just fine.

@jcbrand
Plone Collective member
jcbrand commented Feb 6, 2013

hmmm, did you perhaps have setuptools-git installed when you did this?

I also did it manually "python setup.py sdist --format=zip" but because I didn't have setuptools-git it didn't work.

@alecghica
Plone Collective member

Strange indeed. I used a clean virtualenv, no setuptools-git there. I think you can do my steps, I used https://github.com/eea/eea.relations/blob/master/buildouts/plone4/install.sh to create a virtualenv then I run the above mentioned command to create the egg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.