-2

Just following an online tutorial to get a grasp of Esky.
tutorial here - at correct timestamp

I can get the "factorial.py" file to run, without Esky - that's basic. Building the exe, in both py2exe and esky form, easy enough.

However, when running the factorial.py (or .exe) with the new Esky lines included, fails, code below

Traceback (most recent call last):
  File "factorial.py", line 4, in <module>
    app = esky.Esky(sys.executable, "http://localhost:8000")
  File "C:\Python27\lib\site-packages\esky\__init__.py", line 249, in __init__
    self.reinitialize()
  File "C:\Python27\lib\site-packages\esky\__init__.py", line 317, in reinitialize
    raise EskyBrokenError("no frozen versions found")
esky.errors.EskyBrokenError: no frozen versions found

I've got the Esky .zip file on a localhost HTTP server, as the demo does, and I can navigate to it through a browser.

Note:
I'm on Python2.7
I've written the code, letter for letter, as the lecturer does

All help appreciated

oliversarfas
  • 86
  • 1
  • 9

1 Answers1

0

Your best bet would be to try cx freeze, it solved my issues as well. It also has the benefits of being cross platform.

Unfortunately Esky is not being actively developed for almost 5 years now, so it needs some love.

Also check windows firewall / antivirus programs are not blocking the port/program.

timeyyy
  • 654
  • 9
  • 20
  • How would you go about the auto updates with can freeze? I've used it before for basic local installation and exe files, but you have to build the app for any changes. – oliversarfas Jun 26 '15 at 12:27
  • sorry i don't follow the question – timeyyy Jun 26 '15 at 12:30
  • Cx-freeze locks the application to whatever your source was when you built it. I want to be able to install the application onto a user, and have the application fetch updates automatically. Hence the need for esky – oliversarfas Jun 26 '15 at 12:31
  • first sentence of the esky readme, Esky is an auto-update framework for frozen Python applications. Py2exe also freezes the code, Esky is a wrapper for these programs that handles the updating logic. – timeyyy Jun 26 '15 at 12:33
  • I'm fully aware of what Esky does, and how it works. My issue is that Esky cannot find my frozen package – oliversarfas Jun 26 '15 at 12:34
  • what exactly do you mean by fails in your original question? – timeyyy Jun 26 '15 at 12:38
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/81644/discussion-between-arden-and-oliversarfas). – timeyyy Jun 26 '15 at 12:40
  • Have removed p2exe, installed cx-freeze. rerun with a few amendments and all is working. – oliversarfas Jun 26 '15 at 12:49