Giter Site home page Giter Site logo

Comments (15)

muammar avatar muammar commented on July 17, 2024

"The "illegal instruction" message is simply telling you that your binaries contain instructions the version of the OS that you are attempting to run them under does not understand."[1]

I am aware of this problem. I saw it when creating the app in my macbook pro 2015, and launching it in older models. To tackle it, I used another Macbook pro from 2011 (model 8,2) to build the binary that is being currently shipped.

@glimpsed could you tell the model of your mac to discard this as the cause of the problem?. I have to accept that I am trying to build a universal application with py2app but your report is a prove that it is not working. I will investigate it in more details.

A way to solve this locally, would be to use the Makefile shipped in the git repo, and do a make deploy to build the binary. It will require you to install pyqt5 using brew as described in the README, and the packages inside requirements.txt (except of course pyqt5). Additionally, you would need to install using pip these packages:

pip install bs4 google py2app

After that, the make deploy would create a standalone app that should work in your machine. I will write something in the wiki regarding this.

Thanks for your report.

[1] http://stackoverflow.com/a/14269066/1995261

from mkchromecast.

glimpsed avatar glimpsed commented on July 17, 2024

@muammar I have a Mac Pro (Early 2009), model identifier MacPro4,1, running OS X 10.11.

I've also tested the app on an older test machine, an iMac (20-inch, Late 2006), model identifier iMac (20-inch, Late 2006), running OS X 10.6.8 to see if the problem is the OS X version.

from mkchromecast.

glimpsed avatar glimpsed commented on July 17, 2024

@muammar I will also try building a mkchromecast binary on my machine to see if the problem persists.

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

@glimpsed thank you for this valuable information. So this confirms that the app I created is like "semi standalone". It won't work for models below 2011. I have prepared the instructions to build the app. In the meanwhile, I will keep investigating how to fix this in the setup.py file for py2app.

Thanks for building the binary on your machine. If it works, you could pass it to me to publish it, so that people with your model can use it.

Cheers.

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

@glimpsed I forgot to mention that the app is built using python3. I have updated that in the instructions. AFAIK, pyqt5 + python2 using py2app does not play very well.

Reference: https://bitbucket.org/ronaldoussoren/py2app/issues/198/

from mkchromecast.

glimpsed avatar glimpsed commented on July 17, 2024

@muammar Thanks. Unfortunately though, even with python3 installed i couldn't build the binary for mkchromecast on my machine.

First of all pip didn't install all the dependencies, therefore I had to use easy_install to do it. However, make deploy failed to build the binary saying that there is no python3 installation in /usr/local/opt.

I don't really know what the problem is, therefore, at this moment, I hope you can build a truly standalone version of the mkchromecast app.

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

Hi @glimpsed I think I have found a solution to the problem. Could you try using this binary, please? https://drive.google.com/file/d/0BxT_3XOg2MENR05BcjNvQmRZb28/view?usp=sharing

Tell me if it works for you. I had to create a virtualbox machine emulating an old processor. It works fine in my laptop, it should work in yours as well.

Cheers,

from mkchromecast.

glimpsed avatar glimpsed commented on July 17, 2024

@muammar Yes, this version works. Thank you 👍

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

Thanks for testing :). Glad it worked. Cheers.

from mkchromecast.

sandvige avatar sandvige commented on July 17, 2024

@muammar Could you elaborate your solution? Isn't it possible to compile things with the correct options on recent machines?

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

@sandvige I tried changing some of the options here, and nothing worked. I ended up installing macOS on a VirtualBox machine, and creating the app there. As VirtualBox will emulate an old processor, then your bundle will work in the vast majority of Apple hardware as far as I can tell. I hope this helps you.

from mkchromecast.

sandvige avatar sandvige commented on July 17, 2024

Ok thanks! I will try to boot a Mac OS X VM in VirtualBox... it looks like it's not that easy to do... Should I use that kind of things: https://techsviewer.com/install-macos-sierra-virtualbox-windows/ ? This looks a bit hacky :(

from mkchromecast.

muammar avatar muammar commented on July 17, 2024

@sandvige yes, that's what I used. But you know, I suggest you use Yosemite instead of Sierra. For some reason, if you use Sierra, then the bundle won't run in macOS < Sierra. sigh.

https://techsviewer.com/install-mac-os-x-10-10-yosemite-retail-on-vmware-on-pc/

from mkchromecast.

sandvige avatar sandvige commented on July 17, 2024

from mkchromecast.

sam1penny avatar sam1penny commented on July 17, 2024

I also have this problem and i was wondering if you deleted this file or if the link is wrong?
(you attached this file a few comments up)
https://drive.google.com/file/d/0BxT_3XOg2MENR05BcjNvQmRZb28/view?usp=sharing

from mkchromecast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.