cx_freeze and single-file eggs
Asked Answered
A

1

8

I'm trying to use cx_freeze on Windows 7 with a python2.7 distutils script, and it seems to get tripped up on 2 packages: rsa & pyasn1:

error: [Error 3] The system cannot find the path specified:
'c:\\python27\\lib\\site-packages\\pyasn1-0.1.9-py2.7.egg\\pyasn1/*.*'

(the error for rsa is analogous.)

At first I thought this was a permissions issue (both egg files showed a padlock badge), but even after changing permissions, the error remains.

Then I noticed that these two eggs are not directories, but individual files, which would explain why cx_freeze can't find the requested subdirectory.

I have tried specifying these as either packages or includes; either way, I get the error shown.

I have also tried designating them as excludes and then copying the eggs in directly; this allows the cx_freeze script to complete, but then the executable can't find the eggs.

So my question is: how can I get my cx_freeze script to recognize these eggs?

Acarpous answered 7/2, 2017 at 17:4 Comment(2)
Which version of cx_Freeze?Mersey
@Mersey : the latest; just installed it this weekAcarpous
A
0

The solution that worked for me was to re-install the problematic packages with zip-safe set to False, forcing them to be installed as directories.

Acarpous answered 10/2, 2017 at 23:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.