SWAPY icon indicating copy to clipboard operation
SWAPY copied to clipboard

Port to Python3.X

Open moden-py opened this issue 10 years ago • 3 comments

Python 3 can automatically solve a lot on unicode problems. Blocker now - there are no native WXPython for Python 3. Should try Phoenix - port WX for Pyhon 3. http://wxpython.org/Phoenix/docs/html/

moden-py avatar Dec 19 '15 13:12 moden-py

Had some issues related to installing SWAPY on a Windows 8.1 Pro 64-bit machine. Was not able to find any clear installation instructions, so assumed that running the instructions in the build.bat file in the repo would suffice. Note that I have both Python 3 and Python 2 installed (Anaconda 64-bit) and that the default Python on the command line is Python 3.

I cloned the repo, and installed the dependencies, and not knowing that this was Python 2 software, I tried to execute the build.bat steps with Python 3. This would not work, and resulted in a popup with : Fatal Error!: pyi_rth_pkgres returned -1.

After finding this thread, I figured that the issue was that I was trying to build SWAPY with Python 3 so, I tried to build SWAPY with Python 2 instead, and that resulted in exactly the same error.

Questions:

  • Are there build/installation instructions for SWAPY for Windows?
  • Is the error above known? It appears to be arising from a module in PyInstaller. Is there a known fix?

PS. I am aware that SWAPY binaries are available for download on SourceForge, but those seem to be almost a year old.

tchakravarty avatar Apr 18 '16 06:04 tchakravarty

Hi @tchakravarty, thank you for your report. We run auto building on CI - AppVeyor under Windows Server 2012 (Windows 8) I did not see the problem before. You may look through the CI scripts:

  • /appveyor.yml
  • ci/build.ps1 but this steps are equivalent to the steps from build.bat.

Please note, you are able to download 'compiled' binaries from the releases page or run SWAPY without compilation like a Python script.

moden-py avatar Apr 18 '16 07:04 moden-py

@moden-py Thanks for the extremely prompt response. I had not looked in the releases tab for the latest version of the compiled binaries. However, now I am running into some other issues, but for that, I will make a separate issue thread.

As an FYI, I am still unable to build the binary myself, for the purposes of this thread.

Thanks.

tchakravarty avatar Apr 18 '16 12:04 tchakravarty