Showing posts with label wxPython. Show all posts
Showing posts with label wxPython. Show all posts
2016/03/21
Using wxPython phoenix with Python 3.5
http://wxpython.org/Phoenix/snapshot-builds/
위 사이트에서 받은 wxPython_Phoenix-3.0.3.dev1964+f780b21-cp35-cp35m-win32.whl 파일을 설치하고 간단한 코드로 테스트 하였더니 아래와 같은 에러 코드를 뿜어댔다.
Traceback (most recent call last):
File "...\test.py", line 1, in <module>
import wx
File "D:\...\lib\site-packages\wx\__init__.py", line 17, in <module>
from wx.core import *
File "D:\...\lib\site-packages\wx\core.py", line 6, in <module>
from ._core import *
ImportError: DLL load failed: [The respective module not found.
(message translated form the original localised version)]
위 에러 코드는 환경에따라 조금 다를 수 있다.
해결을 위해 구글링 해보았지만 답을 찾을 수 없었다. 문제로 wxmsw30u_core_vc140.dll 이 언급이 되어 파일의 존재를 확인해 보니 존재하고 있었다. 혹시 재배포 패키지가 해결책이 될 수 있을것 같아서 Visual C++ Redistributable for Visual Studio 2015를 아래 경로에서 다운받아 설치해 보았다.
https://www.microsoft.com/en-us/download/details.aspx?id=48145
재배포 패키지 설치 후 문제가 해결 되었다.
위 사이트에서 받은 wxPython_Phoenix-3.0.3.dev1964+f780b21-cp35-cp35m-win32.whl 파일을 설치하고 간단한 코드로 테스트 하였더니 아래와 같은 에러 코드를 뿜어댔다.
Traceback (most recent call last):
File "...\test.py", line 1, in <module>
import wx
File "D:\...\lib\site-packages\wx\__init__.py", line 17, in <module>
from wx.core import *
File "D:\...\lib\site-packages\wx\core.py", line 6, in <module>
from ._core import *
ImportError: DLL load failed: [The respective module not found.
(message translated form the original localised version)]
위 에러 코드는 환경에따라 조금 다를 수 있다.
해결을 위해 구글링 해보았지만 답을 찾을 수 없었다. 문제로 wxmsw30u_core_vc140.dll 이 언급이 되어 파일의 존재를 확인해 보니 존재하고 있었다. 혹시 재배포 패키지가 해결책이 될 수 있을것 같아서 Visual C++ Redistributable for Visual Studio 2015를 아래 경로에서 다운받아 설치해 보았다.
https://www.microsoft.com/en-us/download/details.aspx?id=48145
재배포 패키지 설치 후 문제가 해결 되었다.
2016/01/10
Using wxPython on Python 3.4
wxPython 은 python에서 wxWidgets 라이브러리를 사용할 수 있도록 해 주는 라이브러리로 python v2 버전만을 지원한다.
python v3 버전을위해 wxPython Phoenix 이 개발중이다. python v3.4에 wxPython Phoenix을 설치하여 wxWidgets를 사용할 수 있다.
설치를 위해서는 wxPython Phoenix 홈페이지에서는 아래와 같은 명령어를 안내하고 있다.
pip install -U --pre \
-f http://wxpython.org/Phoenix/snapshot-builds/ \
wxPython_Phoenix
하지만 종종 설치 실패를 하였다. 그래서 http://wxpython.org/Phoenix/snapshot-builds/ 사이트에서 최신 버전의 URL 주소를 가져와 직접 설치를 하면 된다.
현재(2016/01/10) 최신 버전은 wxPython_Phoenix-3.0.3.dev1836 이다.
아래 명령을 수행하여 설치를 하였다.
pip install http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1836+f764b32-cp34-none-win32.whl
그리고 간단하게 아래 코드를 이용하며 실행 여부를 확인하였다.
python v3 버전을위해 wxPython Phoenix 이 개발중이다. python v3.4에 wxPython Phoenix을 설치하여 wxWidgets를 사용할 수 있다.
설치를 위해서는 wxPython Phoenix 홈페이지에서는 아래와 같은 명령어를 안내하고 있다.
pip install -U --pre \
-f http://wxpython.org/Phoenix/snapshot-builds/ \
wxPython_Phoenix
하지만 종종 설치 실패를 하였다. 그래서 http://wxpython.org/Phoenix/snapshot-builds/ 사이트에서 최신 버전의 URL 주소를 가져와 직접 설치를 하면 된다.
현재(2016/01/10) 최신 버전은 wxPython_Phoenix-3.0.3.dev1836 이다.
아래 명령을 수행하여 설치를 하였다.
pip install http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1836+f764b32-cp34-none-win32.whl
그리고 간단하게 아래 코드를 이용하며 실행 여부를 확인하였다.
import wx app = wx.App() frame = wx.Frame(None, -1, "Hello World") frame.Show() app.MainLoop()
Subscribe to:
Posts
(
Atom
)