AudioToolbox symbol not found when running mame64 on OS X Mojave - emulation

Earlier builds of Mame 0.205 run fine, but now when I build Mame 0.211 I get this error message:
./mame64
dyld: Symbol not found: __ZTINSt3__112bad_weak_ptrE
Referenced from: /Users/myself/mame/m06/./mame64
Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
in /Users/myself/mame/m06/./mame64
Abort trap: 6
I'm running OS X Mojave 10.14.5 on a MacBook Pro.
Do I have a bad install of AudioToolbox, or some other problem?

Related

error when importing torchrec module M1 Max

I have a MacBook Pro with M1 Max processor, macOS 12.4. I was following the Pytorch tutorial for their library torchrec (CPU only). When I try to import the library torchrec I am prompt with the following error
OSError: dlopen(/opt/homebrew/Caskroom/miniforge/base/envs/dlrm_env2/lib/python3.10/site-packages/fbgemm_gpu/
fbgemm_gpu_py.so, 0x0006): tried: '/opt/homebrew/Caskroom/miniforge/base/envs/
dlrm_env2/lib/python3.10/site-packages/fbgemm_gpu/fbgemm_gpu_py.so' (not a mach-o file)
Any suggestion in how to solve it? I tried to create a new environment and install again the library but still I am prompt with the same error.

symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon' Mac M1 Pycharm error

I am trying to use face_recognition for python in my django project but it does not seem to work as it is giving error when i write import face-recognition I am using it in pycharm, M1 macbook air, django rest framework. Following is the versions
Python 3.8
face_recognition 1.3.0
dlib 19.23.0
here is error:
ImportError: dlopen(/venv/lib/python3.8/site-packages/_dlib_pybind11.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'
If anyone can help me solve this error or know any work around to get it working ?

Macbook PRO 2015 OS Big SUR Python Crash

I am trying to launch python 3 on my macbook, it use to work before ... now if I launch on the termina "python3" it crash and I got this message.
I don't know what to do...
> user:~ my_mac$ python3 dyld: Library not loaded:
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python
> Reason: image not found Abort trap: 6
I Tried to upgrade the python version and got this message:
> ==> python#3.9 Python has been installed as /usr/local/bin/python3
>
> Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
> `python3`, `python3-config`, `pip3` etc., respectively, have been
> installed into /usr/local/opt/python#3.9/libexec/bin
>
> You can install Python packages with pip3 install <package> They
> will install into the site-package directory
> /usr/local/lib/python3.9/site-packages
Here the error page.
>Process: Python [65598]
>Path: >/Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python
>Identifier: Python
>Version: 3.5.2 (3.5.2)
>Code Type: X86-64 (Native)
>Parent Process: bash [48227]
>Responsible: Terminal [48225]
>User ID: 501
>
>Date/Time: 2021-02-06 09:57:55.710 +0100
>OS Version: macOS 11.1 (20C69)
>Report Version: 12
>Anonymous UUID: FB4549E5-EACE-CBB0-1BA6-6767B1DAD93D
>
>Sleep/Wake UUID: 7A0A2DD1-F786-48A4-8641-D98824F7673B
>
>Time Awake Since Boot: 510000 seconds
>Time Since Wake: 5200 seconds
>
>System Integrity Protection: enabled
>
>Crashed Thread: 0
>
>Exception Type: EXC_CRASH (SIGABRT)
>Exception Codes: 0x0000000000000000, 0x0000000000000000
>Exception Note: EXC_CORPSE_NOTIFY
>
>Termination Reason: DYLD, [0x1] Library missing
>
>Application Specific Information:
>dyld: launch, loading dependent libraries
>
>Dyld Error Message:
> dyld: No shared cache present
>Library not loaded: >/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> Referenced from: >/Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python
> Reason: image not found
>
>Binary Images:
> 0x100000000 - 0x100000fff +org.python.python (3.5.2 - 3.5.2) <78B09BD7-3C8E-0E55->F3A1-BA0FF24E8496> >/Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python
> 0x7fff6679f000 - 0x7fff6683afff dyld (832.7.1) <DEA51514-B4E8-3368-979B-89D0F8397ABC> >/usr/lib/dyld
>
>Model: MacBookPro11,5, BootROM 425.0.0.0.0, 4 processors, Quad-Core Intel Core i7, 2,8 GHz, 16 >GB, SMC 2.30f2

I'm unable to create the .exe for the most simple 'hello world' example

I've used py2exe successfully for previous projects on previous build machines, but now I've freshly installed everything from scratch and can't run the simplest example:
setup.py:
from distutils.core import setup
import py2exe
setup(console=['hello.py'])
hello.py:
print("Hello World")
Command: python3 setup.py py2exe
Output:
running py2exe
1 missing Modules
------------------
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
Building 'dist\hello.exe'.
error: [WinError 87] The parameter is incorrect.
dest\hello.exe is generated (37 kB!) but gives the following error when run:
Could not locate script resource:The specified resource type cannot be found in the image file.
FATAL ERROR: Could not locate script
The versions I have installed are:
python --version
Python 3.8.6
pip freeze
cachetools==4.1.1
future==0.18.2
numpy==1.19.3
opencv-python==4.4.0.46
pefile==2019.4.18
py2exe==0.10.1.0
pyreadline==2.1
pywin32==300
systeminfo
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Hotfix(s): 6 Hotfix(s) Installed.
[01]: KB4580419
[02]: KB4561600
[03]: KB4577266
[04]: KB4580325
[05]: KB4586864
[06]: KB4586781
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
I know that there is clearly something weird happening (I've already hit the issue with 'numpy' here: https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html ) ... but I can't quite see what it is.
Thanks !
-- Mac
You just misstyped the command line flag, should be: python setup.py py2exe.
Works fine for me on Win7, Python 3.8.0:
(py38) λ python setup.py py2exe
running py2exe
2 missing Modules
------------------
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
? readline imported from cmd, code, pdb
Building 'dist\hello.exe'.
Building shared code archive 'dist\library.zip'.
Copy c:\users\f3k\envs\py38\scripts\python38.dll to dist
...
Copy DLL C:\Python38\DLLs\libffi-7.dll to dist\
C:\temp
(py38) λ dist\hello.exe
Hello World

Theano 0.10: Can not use cuDNN on context None: cannot compile with cuDNN

I just updated theano to 0.10 version with pip:
pip install --no-deps git+https://github.com/Theano/Theano.git#egg=Theano
But it cannot be imported successfully, with the error message as follows:
Can not use cuDNN on context None: cannot compile with cuDNN.
We got this error: c:\users\yl~1\appdata\local\temp\try_flags_jbgv_m.c:4:19:  
fatal error: cudnn.h: No such file or directory compilation terminated.   
Mapped name None to device cuda: GeForce 940M (0000:01:00.0)
I haven't configured theano to use cudnn. I feel theano should works without it.
My .theanorc is:
Without the .theanorc file, theano works fine.
I have also posted this issue at:
https://github.com/Theano/Theano/issues/6063#issuecomment-310064365
The best solution I have is to bypass cudnn by add in the .theanorc:
[dnn]
enabled = False
but at the price of the decreased computation speed

Resources