mu startup failure

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
flounder
 
Posts: 494
Joined: Wed Sep 18, 2013 9:10 pm

mu startup failure

Post by flounder »

I am using Mac OS 10.11 (El Capitan). I downloaded the mu editor and tried to run it, but got the following:

Code: Select all

Josephs-MacBook-Air:~ flounder$ /Applications/mu ; exit;
[20385] Error loading Python lib '/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIbizAE9/Python': dlopen: dlopen(/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIbizAE9/Python, 10): Symbol not found: _clock_getres
  Referenced from: /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIbizAE9/Python (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib
 in /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIbizAE9/Python
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
There was nothing to suggest what version of Python I should have to run this. I suspect I have the wrong version.

Code: Select all

Josephs-MacBook-Air:Contents flounder$ python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 12:54:16) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

User avatar
flounder
 
Posts: 494
Joined: Wed Sep 18, 2013 9:10 pm

Re: mu startup failure

Post by flounder »

Well, I discovered that the current version of Python is 3.6, so I did the download and installed that. But it didn't help. I suspect mu is looking for the generic "python", which is 2.7, and not "python3":

Code: Select all

Josephs-MacBook-Air:Contents flounder$ python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 12:54:16) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
Josephs-MacBook-Air:Contents flounder$ python3
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
I still see

Code: Select all

Josephs-MacBook-Air:~ flounder$ /Applications/mu ; exit;
[20497] Error loading Python lib '/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIqwnC1n/Python': dlopen: dlopen(/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIqwnC1n/Python, 10): Symbol not found: _clock_getres
  Referenced from: /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIqwnC1n/Python (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib
 in /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIqwnC1n/Python
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
So I am still mu-free.

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: mu startup failure

Post by danhalbert »

Which version of mu did you download? Was it the one listed here? https://learn.adafruit.com/adafruit-cir ... r-mac-os-x

User avatar
flounder
 
Posts: 494
Joined: Wed Sep 18, 2013 9:10 pm

Re: mu startup failure

Post by flounder »

I clicked the green button thst said “download the latest mu for Mac OSX” on the page you gave me the link to. That is the only link I know of. The results were as I have shown.
joe

User avatar
danhalbert
 
Posts: 4654
Joined: Tue Aug 08, 2017 12:37 pm

Re: mu startup failure

Post by danhalbert »

Mu comes with its own version of Python hidden inside, so you don't need to install one. But we have only built and tried the version you're using on Sierra and High Sierra, so your issue may be due to El Capitan. We hope to have better support and builds of mu in the future for more versions of MacOS -- sorry it's not working for you now.

User avatar
DLBoyd151
 
Posts: 21
Joined: Wed Nov 08, 2017 1:23 pm

Re: mu startup failure

Post by DLBoyd151 »

You can try to use pip to resolve these issues. This has worked on Windows and Linux for some users who have experienced library issues, but I don't know if it will work on Mac.

Assuming pip is installed, the command (for Linux) would be
pip3 install --user mu-editor --upgrade

I am not sure if Mac's command would be different. It is important to include the --upgrade option. This will tell pip to ensure library dependencies are updated.

User avatar
flounder
 
Posts: 494
Joined: Wed Sep 18, 2013 9:10 pm

Re: mu startup failure

Post by flounder »

No Joy. I remain mu-less.

Code: Select all

Josephs-MacBook-Air:Contents flounder$ pip3 install --user mu-editor --upgrade
Collecting mu-editor
  Downloading mu_editor-1.0.0b13-py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 365kB/s 
Collecting qtconsole==4.3.1 (from mu-editor)
  Downloading qtconsole-4.3.1-py2.py3-none-any.whl (108kB)
    100% |████████████████████████████████| 112kB 1.0MB/s 
Collecting pyqt5==5.9 (from mu-editor)
  Downloading PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl (82.2MB)
    100% |████████████████████████████████| 82.2MB 12kB/s 
Collecting pyflakes==1.6.0 (from mu-editor)
  Downloading pyflakes-1.6.0-py2.py3-none-any.whl (227kB)
    100% |████████████████████████████████| 235kB 1.4MB/s 
Collecting qscintilla==2.10.1 (from mu-editor)
  Downloading QScintilla-2.10.1-5.9.1-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl (2.0MB)
    100% |████████████████████████████████| 2.0MB 349kB/s 
Collecting pyserial==3.4 (from mu-editor)
  Downloading pyserial-3.4-py2.py3-none-any.whl (193kB)
    100% |████████████████████████████████| 194kB 779kB/s 
Collecting matplotlib==2.0.2 (from mu-editor)
  Downloading matplotlib-2.0.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (12.8MB)
    100% |████████████████████████████████| 12.8MB 63kB/s 
Collecting pycodestyle==2.3.1 (from mu-editor)
  Downloading pycodestyle-2.3.1-py2.py3-none-any.whl (45kB)
    100% |████████████████████████████████| 51kB 1.3MB/s 
Collecting jupyter-core (from qtconsole==4.3.1->mu-editor)
  Downloading jupyter_core-4.4.0-py2.py3-none-any.whl (126kB)
    100% |████████████████████████████████| 133kB 1.0MB/s 
Collecting ipykernel>=4.1 (from qtconsole==4.3.1->mu-editor)
  Downloading ipykernel-4.8.0-py3-none-any.whl (108kB)
    100% |████████████████████████████████| 112kB 1.2MB/s 
Collecting traitlets (from qtconsole==4.3.1->mu-editor)
  Downloading traitlets-4.3.2-py2.py3-none-any.whl (74kB)
    100% |████████████████████████████████| 81kB 1.3MB/s 
Collecting ipython-genutils (from qtconsole==4.3.1->mu-editor)
  Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-client>=4.1 (from qtconsole==4.3.1->mu-editor)
  Downloading jupyter_client-5.2.2-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 92kB 1.2MB/s 
Collecting pygments (from qtconsole==4.3.1->mu-editor)
  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
    100% |████████████████████████████████| 849kB 671kB/s 
Collecting sip<4.20,>=4.19.3 (from pyqt5==5.9->mu-editor)
  Downloading sip-4.19.7-cp36-cp36m-macosx_10_6_intel.whl (51kB)
    100% |████████████████████████████████| 51kB 1.2MB/s 
Collecting six>=1.10 (from matplotlib==2.0.2->mu-editor)
  Downloading six-1.11.0-py2.py3-none-any.whl
Collecting python-dateutil (from matplotlib==2.0.2->mu-editor)
  Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
    100% |████████████████████████████████| 194kB 1.0MB/s 
Collecting cycler>=0.10 (from matplotlib==2.0.2->mu-editor)
  Downloading cycler-0.10.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib==2.0.2->mu-editor)
  Downloading pytz-2017.3-py2.py3-none-any.whl (511kB)
    100% |████████████████████████████████| 512kB 707kB/s 
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 (from matplotlib==2.0.2->mu-editor)
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 1.3MB/s 
Collecting numpy>=1.7.1 (from matplotlib==2.0.2->mu-editor)
  Downloading numpy-1.14.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)
    100% |████████████████████████████████| 4.7MB 184kB/s 
Collecting tornado>=4.0 (from ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading tornado-4.5.3.tar.gz (484kB)
    100% |████████████████████████████████| 491kB 804kB/s 
Collecting ipython>=4.0.0 (from ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading ipython-6.2.1-py3-none-any.whl (745kB)
    100% |████████████████████████████████| 747kB 275kB/s 
Collecting decorator (from traitlets->qtconsole==4.3.1->mu-editor)
  Downloading decorator-4.2.1-py2.py3-none-any.whl
Collecting pyzmq>=13 (from jupyter-client>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading pyzmq-16.0.4-cp36-cp36m-macosx_10_6_intel.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 495kB/s 
Collecting BANNED>=0.10 (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading BANNED-0.11.1-py2.py3-none-any.whl (250kB)
    100% |████████████████████████████████| 256kB 926kB/s 
Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading simplegeneric-0.8.1.zip
Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading prompt_toolkit-1.0.15-py3-none-any.whl (247kB)
    100% |████████████████████████████████| 256kB 886kB/s 
Collecting pexpect; sys_platform != "win32" (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading pexpect-4.3.1-py2.py3-none-any.whl (55kB)
    100% |████████████████████████████████| 61kB 1.2MB/s 
Collecting setuptools>=18.5 (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading setuptools-38.4.0-py2.py3-none-any.whl (489kB)
    100% |████████████████████████████████| 491kB 966kB/s 
Collecting pickleshare (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading pickleshare-0.7.4-py2.py3-none-any.whl
Collecting appnope; sys_platform == "darwin" (from ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading appnope-0.1.0-py2.py3-none-any.whl
Collecting parso==0.1.1 (from BANNED>=0.10->ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading parso-0.1.1-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 1.3MB/s 
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython>=4.0.0->ipykernel>=4.1->qtconsole==4.3.1->mu-editor)
  Downloading ptyprocess-0.5.2-py2.py3-none-any.whl
Installing collected packages: decorator, six, ipython-genutils, traitlets, jupyter-core, tornado, parso, BANNED, simplegeneric, wcwidth, prompt-toolkit, ptyprocess, pexpect, setuptools, pickleshare, appnope, pygments, ipython, pyzmq, python-dateutil, jupyter-client, ipykernel, qtconsole, sip, pyqt5, pyflakes, qscintilla, pyserial, cycler, pytz, pyparsing, numpy, matplotlib, pycodestyle, mu-editor
  Running setup.py install for tornado ... done
  Running setup.py install for simplegeneric ... done
Successfully installed appnope-0.1.0 cycler-0.10.0 decorator-4.2.1 ipykernel-4.8.0 ipython-6.2.1 ipython-genutils-0.2.0 BANNED-0.11.1 jupyter-client-5.2.2 jupyter-core-4.4.0 matplotlib-2.0.2 mu-editor-1.0.0b13 numpy-1.14.0 parso-0.1.1 pexpect-4.3.1 pickleshare-0.7.4 prompt-toolkit-1.0.15 ptyprocess-0.5.2 pycodestyle-2.3.1 pyflakes-1.6.0 pygments-2.2.0 pyparsing-2.2.0 pyqt5-5.9 pyserial-3.4 python-dateutil-2.6.1 pytz-2017.3 pyzmq-16.0.4 qscintilla-2.10.1 qtconsole-4.3.1 setuptools-38.4.0 simplegeneric-0.8.1 sip-4.19.7 six-1.11.0 tornado-4.5.3 traitlets-4.3.2 wcwidth-0.1.7
Josephs-MacBook-Air:Contents flounder$ /applications/mu
[27782] Error loading Python lib '/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIKg4Nwj/Python': dlopen: dlopen(/var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIKg4Nwj/Python, 10): Symbol not found: _clock_getres
  Referenced from: /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIKg4Nwj/Python (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib
 in /var/folders/qk/48tgmmgj3bq6x7_r2cxw_20w0000gn/T/_MEIKg4Nwj/Python
Josephs-MacBook-Air:Contents flounder$ 

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”