YQL and compilation using py2exe

Bug #884352 reported by Robert Sudwarts on 2011-10-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-yql
Triaged
Wishlist
Unassigned

Bug Description

Hi. I ran into a problem using a pip installed version of 'yql' when trying to compile using py2exe. Unfortunately I've lost most of the tracebacks relating to the errors caused but in a nutshell, the methods that py2exe uses to track dependencies got caught up on the `sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))` that's used in yql.__init__. I'd not want to get caught up in the niceties of what is and isn't pythonic (!) and neither am I qualified to do so...! :)

But I do think that what you've written is a really useful bit of code. Is there any reason that this doesn't follow the more 'standard' pastescript/package format?

Regards,
Rob

Unfortunately I don't currently have the time to be able to look into making the changes necessary to support py2exe. That said if you or anyone else is interested in providing a patch for it I'll happily look to get it integrated.

As a pointer a potential solution might be found here: http://stackoverflow.com/questions/1511461/py2exe-and-the-file-system/1844634#1844634

Changed in python-yql:
status: New → Triaged
importance: Undecided → Wishlist
tags: added: py2exe

Hi Stuart,

Ditto on the 'time' :)

I've got my own hacked solution for this (which I'm comfortable with pro
tem) but thought it might be useful to air the problem.

Thanks for your quick response.

On 31 October 2011 18:22, Stuart Colville <email address hidden> wrote:

> Unfortunately I don't currently have the time to be able to look into
> making the changes necessary to support py2exe. That said if you or
> anyone else is interested in providing a patch for it I'll happily look
> to get it integrated.
>
> As a pointer a potential solution might be found here:
> http://stackoverflow.com/questions/1511461/py2exe-and-the-file-
> system/1844634#1844634
>
> ** Changed in: python-yql
> Status: New => Triaged
>
> ** Changed in: python-yql
> Importance: Undecided => Wishlist
>
> ** Tags added: py2exe
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/884352
>
> Title:
> YQL and compilation using py2exe
>
> Status in Python YQL:
> Triaged
>
> Bug description:
> Hi. I ran into a problem using a pip installed version of 'yql' when
> trying to compile using py2exe. Unfortunately I've lost most of the
> tracebacks relating to the errors caused but in a nutshell, the
> methods that py2exe uses to track dependencies got caught up on the
> `sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))`
> that's used in yql.__init__. I'd not want to get caught up in the
> niceties of what is and isn't pythonic (!) and neither am I qualified
> to do so...! :)
>
> But I do think that what you've written is a really useful bit of
> code. Is there any reason that this doesn't follow the more 'standard'
> pastescript/package format?
>
> Regards,
> Rob
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-yql/+bug/884352/+subscriptions
>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers