Comments (15)
"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.
@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.
@muammar I will also try building a mkchromecast binary on my machine to see if the problem persists.
from mkchromecast.
@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.
@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.
@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.
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.
@muammar Yes, this version works. Thank you 👍
from mkchromecast.
Thanks for testing :). Glad it worked. Cheers.
from mkchromecast.
@muammar Could you elaborate your solution? Isn't it possible to compile things with the correct options on recent machines?
from mkchromecast.
@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.
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.
@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.
from mkchromecast.
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)
- Too many packets buffered for output stream 0:1 HOT 1
- Cannot stream youtube video on ubuntu 23.04 HOT 4
- Crash when starting
- Allowing port 5000 on UFW is not enough to communicate with SONOS HOT 1
- module 'pychromecast' has no attribute 'get_chromecasts_as_dict'.
- Can't find my Sonos
- can you please add PCM/WAVE support, and set as preferred streaming method? HOT 3
- Trying to install soco for Sonos and it does not work HOT 2
- Refactor mkchromecast to make `__init__.py` minimal and avoid `import __init__`
- Deprecate youtube-dl for yt-dlp HOT 2
- Add encapsulation, reduce code duplication, and simplify cascading logic
- Does not play any audio on google speakers HOT 1
- sys tray disappears after searching for devices
- TypeError: Descriptors cannot not be created directly. HOT 2
- Using --video crashes the app HOT 2
- archlinux mkchromecast-git package targets unstable `master` branch HOT 5
- Error with start HOT 2
- Support for playlists
- Restore ability to use updated settings without restarting mkchromecast HOT 1
- How is it possible to transmit the volume, pause and resume via command line?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkchromecast.