Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing header.mak when easy_installed on Python 2.6 #1

Closed
ananelson opened this issue May 23, 2011 · 13 comments
Closed

missing header.mak when easy_installed on Python 2.6 #1

ananelson opened this issue May 23, 2011 · 13 comments

Comments

@ananelson
Copy link

It seems header.mak is not being included when ansi2html is installed via easy_install on Python 2.6, which results in:

  File "/Library/Python/2.6/site-packages/tw2.core-2.0b4-py2.6.egg/tw2/core/dottedtemplatelookup.py", line 103, in __load
    self.template_cache[template_name] = Template(open(filename).read(),
IOError: [Errno 2] No such file or directory: u'/Users/ana/.python-eggs/ansi2html-0.6.0-py2.6.egg-tmp/ansi2html/templates/header.mak'

When I look in the directory it's trying to search:

$ tree /Users/ana/.python-eggs/ansi2html-0.6.0-py2.6.egg-tmp/ansi2html/
/Users/ana/.python-eggs/ansi2html-0.6.0-py2.6.egg-tmp/ansi2html/
└── templates
    └── full.mak

Installing via pip or from source seems to fix this, and the setup.py and MANIFEST.in files look fine to me, so this is probably more of an easy_install issue, but maybe releasing an egg for 2.6 instead of source would be a simple workaround? Or maybe explicitly listing the template files instead of a wildcard?

Note this was reported to me here:
http://discuss.dexy.it/index.php?p=/discussion/13/ioerror-errno-2-no-such-file-or-directory-...-header.mak

And I have just come across this issue myself on a new machine (OSX 10.6.7) running Python 2.6.1

@ralphbean
Copy link
Collaborator

Ana,
I've uploaded a python 2.6 egg. Can you please let me know if this resolves the issue?

If not, I'll proceed with the MANIFEST.in change.

Many thanks-
-Ralph

@ananelson
Copy link
Author

Dang, I'm on 64 bit so it's not picking up the egg. Let me see if I can build an egg...

I'm also now getting:
Searching for ansi2html
Reading http://pypi.python.org/simple/ansi2html/
Reading http://github.com/ralphbean/ansi2html/
Best match: ansi2html 0.6.0.linux-i686
Downloading http://pypi.python.org/packages/any/a/ansi2html/ansi2html-0.6.0.linux-i686.tar.gz#md5=6a0b6d9a3bb535cec9d10df207e5587d
Processing ansi2html-0.6.0.linux-i686.tar.gz
error: Couldn't find a setup script in /tmp/easy_install-3IYBz6/ansi2html-0.6.0.linux-i686.tar.gz

@ananelson ananelson reopened this May 23, 2011
@ananelson
Copy link
Author

I really have to stop clicking "comment & close"...

@ralphbean
Copy link
Collaborator

:)

I just removed the 'linux' build which I uploaded on accident. Any progress?

@ananelson
Copy link
Author

Yay! That seems to have worked, will just double check that I wasn't cheating somehow...

@ralphbean
Copy link
Collaborator

Just uploaded a 0.6.1 too that hopefully fixes the MANIFEST.in (got frustrated and just did it).

@ananelson
Copy link
Author

I got a 0.6.2 source install which had the problem again...

@ralphbean
Copy link
Collaborator

One more try with 0.6.3?

I just tested it in a virtualenv with python 2.6 with success.

@ananelson
Copy link
Author

the egg seems to be the winner, let me know when/if you'd like me to test again. and thanks! :-)

@ralphbean
Copy link
Collaborator

The egg is still the winner after 0.6.3? If we're stuck on this one, I'll jump back to the egg.

Thanks for all your debugging help!

@ananelson
Copy link
Author

just trying the 0.6.3....

@ananelson
Copy link
Author

ok success with 0.6.3 :-)

@ralphbean
Copy link
Collaborator

whew what a mess.

Cheers and thanks again, Ana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants