environment.yml ํ์ผ์ ํ์ฉํด์ anaconda ๊ฐ์ํ๊ฒฝ์ ๊ตฌ์ฑํ๋ ์ค์ ํ๋ คํ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. ์ด ์๋ฌ๊ฐ ๋ฐ์ํ์ ๋๋ openGL์ด๊ณ ๋ญ๊ณ ํ๋๋ ๋ชจ๋ฅผ ๋๋ผ์ ์ฅ? ์ ์๋์ง? ์ํ์๋ค. ์ ๋ฌธ์ ์ฒจ๋ถํ๋ค...
OSError: ("dlopen(OpenGL, 0x000A): tried: '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/python3.7/lib-dynload/../../OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/bin/../lib/OpenGL' (no such file), 'OpenGL' (no such file), '/usr/local/lib/OpenGL' (no such file), '/usr/lib/OpenGL' (no such file), '/Users/user/Desktop/PanoAnnotator2/OpenGL' (no such file)", 'OpenGL', None)
ImportError: ('Unable to load OpenGL library', "dlopen(OpenGL, 0x000A): tried: '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/python3.7/lib-dynload/../../OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/lib/OpenGL' (no such file), '/Users/user/opt/anaconda3/envs/environment/bin/../lib/OpenGL' (no such file), 'OpenGL' (no such file), '/usr/local/lib/OpenGL' (no such file), '/usr/lib/OpenGL' (no such file), '/Users/user/Desktop/PanoAnnotator2/OpenGL' (no such file)", 'OpenGL', None)
์ด๋ค ๊ณผ์ ์ผ๋ก ๋ฐ์ํ ์ค๋ฅ์ธ์ง๋ ์๋ ์ปค๋ฉ๋๋ฅผ ์ฐธ๊ณ ํด์ฃผ์ธ์...
conda env create -f ./{environmental yml file path}
conda env list
conda activate {environment name}
python3 ./MainWindow.py
// => error occur
- ../anaconda3/envs/pano_annotator/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py ํ์ผ์์
- _loadLibraryWindows ํจ์์ try ํ๋จ fullName์ ์๋ ์ฝ๋์ ๊ฐ์ด ๋ฐ๊พธ๋ฉด ํด๊ฒฐ๋๋ค.
def _loadLibraryWindows(dllType, name, mode):
"""Load a given library for Windows systems
returns the ctypes C-module object
"""
fullName = None
try:
### rewriting full name here
fullName = '/System/Library/Frameworks/OpenGL.framework/OpenGL'
if fullName is not None:
name = fullName
elif os.path.isfile( os.path.join( DLL_DIRECTORY, name + '.dll' )):
name = os.path.join( DLL_DIRECTORY, name + '.dll' )
except Exception as err:
_log.info( '''Failed on util.find_library( %r ): %s''', name, err )
# Should the call fail, we just try to load the base filename...
pass
try:
return dllType( name, mode )
except Exception as err:
err.args += (name,fullName)
raise
'๐ DEEEEEBUG' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[flutter/dart] dart migrate ๋ช ๋ น์ด ์ํ ์ File Exception error (0) | 2022.01.14 |
---|