cgkit-user Mailing List for Python Computer Graphics Kit
Brought to you by:
mbaas
You can subscribe to this list here.
2005 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(3) |
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(48) |
Jun
(14) |
Jul
(9) |
Aug
(5) |
Sep
|
Oct
(3) |
Nov
(7) |
Dec
(6) |
2007 |
Jan
(2) |
Feb
(2) |
Mar
(7) |
Apr
(15) |
May
(12) |
Jun
(7) |
Jul
(24) |
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(20) |
May
(3) |
Jun
(4) |
Jul
(10) |
Aug
(21) |
Sep
(1) |
Oct
(5) |
Nov
|
Dec
(3) |
2009 |
Jan
(7) |
Feb
(4) |
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(4) |
Nov
|
Dec
(7) |
2010 |
Jan
(2) |
Feb
(6) |
Mar
|
Apr
(2) |
May
(7) |
Jun
(4) |
Jul
|
Aug
(6) |
Sep
(6) |
Oct
(4) |
Nov
(7) |
Dec
(2) |
2011 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(8) |
May
|
Jun
(3) |
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
(9) |
Mar
(8) |
Apr
(7) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
(3) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(7) |
Nov
(3) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(2) |
Jul
(9) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <y_m...@yb...> - 2023-08-12 07:41:02
|
Hi, I will report. it is light and fun. LANG=C xdg-user-dirs-gtk-update sudo apt update sudo apt upgrade sudo apt install build-essential sudo apt install python-is-python2 sudo apt install python2-dev sudo apt install libode-dev sudo apt install lib3ds-dev sudo apt install freeglut3-dev sudo apt install libboost-all-dev Download cgkit. https://sourceforge.net/p/cgkit/code/ci/master/tree/ glmaterial.py, line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) replaced tostring() with tobytes(). self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tobytes()) Download PyProtocol. http://peak.telecommunity.com/dist/ Download get-pip.py for 2.7. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py # python get-pip.py mak@mx:~/.local/bin $ ./pip install pygame $ ./pip install pyopengl $ ./pip install serial $ ./pip install pyode $ ./pip install pillow $ ./pip install scons $ unzip PyProtocols-0.9.3.zip $ sudo python setup.py --without-speedups install $ ./pip list DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Package Version ----------- ------- future 0.18.3 iso8601 0.1.16 Pillow 6.2.2 pip 20.3.4 pygame 2.0.3 PyODE 1.2.1 PyOpenGL 3.1.7 PyProtocols 0.9.3 PyYAML 5.4.1 scons 3.1.2 serial 0.0.97 setuptools 44.1.1 wheel 0.37.1 $ cd ~/Downloads/cgkit-code/utilities/ mak@mx:~/Downloads/cgkit-code/utilities $ python checkenv.py ---------------------------------------------------------------------- Python 2.7.18 (default, Jul 14 2021, 08:11:37) [GCC 10.2.1 20210110] Platform: linux2 ---------------------------------------------------------------------- Python version: 2.7........... OK PyProtocols................... is installed PyOpenGL...................... is installed PIL........................... is installed pygame........................ pygame 2.0.3 (SDL 2.0.16, Python 2.7.18) Hello from the pygame community. https://www.pygame.org/contribute.html is installed PyODE......................... is installed PySerial...................... is installed cgkit (base).................. missing cgkit (C++ lib)............... failed The cgkit supportlib could not be imported. One possible reason for that is that shared libraries (such as the boost_python runtime or OpenGL) could not be found. cgkit (all)................... failed $ ls /usr/lib/x86_64-linux-gnu/libboost_python*.* /usr/lib/x86_64-linux-gnu/libboost_python39.a /usr/lib/x86_64-linux-gnu/libboost_python39.so /usr/lib/x86_64-linux-gnu/libboost_python39.so.1.74.0 Download following: libboost-python1.67.0_1.67.0-17ubuntu8_amd64.deb libboost-python1.67-dev_1.67.0-17ubuntu8_amd64.deb $ dpkg -x libboost-python1.67.0_1.67.0-17ubuntu8_amd64.deb usr $ dpkg -x libboost-python1.67-dev_1.67.0-17ubuntu8_amd64.deb usr Copy following: libboost_python27.so libboost_python27.so.1.67.0 libboost_python27.a $ sudo cp libboost_python27*.* /usr/lib/x86_64-linux-gnu/ $ ls /usr/lib/x86_64-linux-gnu/libboost_python*.* /usr/lib/x86_64-linux-gnu/libboost_python27.a /usr/lib/x86_64-linux-gnu/libboost_python27.so /usr/lib/x86_64-linux-gnu/libboost_python27.so.1.67.0 /usr/lib/x86_64-linux-gnu/libboost_python39.a /usr/lib/x86_64-linux-gnu/libboost_python39.so /usr/lib/x86_64-linux-gnu/libboost_python39.so.1.74.0 $ ls /usr/lib/x86_64-linux-gnu/lib3ds*.* /usr/lib/x86_64-linux-gnu/lib3ds-1.so /usr/lib/x86_64-linux-gnu/lib3ds-1.so.3.0.0 /usr/lib/x86_64-linux-gnu/lib3ds-1.so.3 /usr/lib/x86_64-linux-gnu/lib3ds.so $ /home/mak/.local/bin/scons changed config.cfg ###################################################################### # Boost.Python settings ###################################################################### # Name of the Boost.Python library to link with BOOST_LIB = "boost_python27" ####### Libd3DS ####### LIB3DS_AVAILABLE = True LIB3DS_PATH = r"/usr/lib/x86_64-linux-gnu/" #LIB3DS_LIBNAME = "lib3ds-120s" Build cgkit. $ python setup.py build 1.Build error; wrappers/py_arrayslots1.cpp: In function ‘void class_ArraySlots()’: wrappers/py_slot.h:43:75: error: unable to find string literal operator ‘operator""sname’ with ‘const char [11]’, ‘long unsigned int’ arguments 43 | #define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \ | ^~~~~~~~~~~ wrappers/py_slot.h:43:75: note: in definition of macro ‘ARRAYSLOT’ 43 | #define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \ | ^~~~~~~~~~~ wrappers/py_slot.h:43:75: error: unable to find string literal operator ‘operator""sname’ with ‘const char [11]’, ‘long unsigned int’ arguments 43 | #define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \ | ^~~~~~~~~~~ wrappers/py_slot.h:43:75: note: in definition of macro ‘ARRAYSLOT’ 43 | #define ARRAYSLOT(sname,stype) class_<_ArraySlotIterator<stype> >("_"sname"_Iterator", init<ArraySlot<stype>&>()) \ | 1.Build error; [solved] py_slot.h,line:43, Put blank spaces on both sides of sname. >("_" sname "_Iterator", 2.Build error; wrappers/py_geoms1.cpp: In member function ‘boost::python::api::object _VariableIterator::next()’: wrappers/py_geoms1.cpp:145:24: error: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const support3d::VarStorage&, const support3d::VarType&, const int&}](info.support3d::PrimVarInfo::storage, info.support3d::PrimVarInfo::type, info.support3d::PrimVarInfo::multiplicity)’ from ‘std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, support3d::VarStorage, support3d::VarType, int>’ to ‘boost::python::api::object’ 145 | return make_tuple(name, info.storage, info.type, info.multiplicity); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, support3d::VarStorage, support3d::VarType, int> wrappers/py_geoms1.cpp: In function ‘boost::python::api::object findVariable(support3d::GeomObject*, std::string)’: wrappers/py_geoms1.cpp:166:22: error: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, support3d::VarStorage&, support3d::VarType&, int&}](info->support3d::PrimVarInfo::storage, info->support3d::PrimVarInfo::type, info->support3d::PrimVarInfo::multiplicity)’ from ‘std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, support3d::VarStorage, support3d::VarType, int>’ to ‘boost::python::api::object’ 166 | return make_tuple(name, info->storage, info->type, info->multiplicity); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, support3d::VarStorage, support3d::VarType, int> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 2.Build error; [solved] py_geoms1.cpp,line:145 and line:166 boost::python::make_tuple replaced make_tuple with boost::python::make_tuple. --------------------------------------------------------------------------- sudo python setup.py install --record files.txt if you uninstall cgkit... cat files.txt | sudo xargs rm -rf mak@mx:~/Downloads/cgkit-code/utilities $ python checkenv.py -------------------------------------------------do --------------------- Python 2.7.18 (default, Jul 14 2021, 08:11:37) [GCC 10.2.1 20210110] Platform: linux2 ---------------------------------------------------------------------- Python version: 2.7........... OK PyProtocols................... is installed PyOpenGL...................... is installed PIL........................... is installed pygame........................ pygame 2.0.3 (SDL 2.0.16, Python 2.7.18) Hello from the pygame community. https://www.pygame.org/contribute.html is installed PyODE......................... is installed PySerial...................... is installed cgkit (base).................. 2.0.0 (Aug 12 2023) cgkit (C++ lib)............... OK cgkit (all)................... OK $ viewer.py -N softimage demo1.py $ viewer.py -N softimage demo4.py pygame 2.0.3 (SDL 2.0.16, Python 2.7.18) Hello from the pygame community. https://www.pygame.org/contribute.html Texname: 1 Loading "maps/uvmap.png"... texturing is ok. It is light and fun. but pyode1.2.1 is old? $ viewer.py -N softimage piddemo1.py The ball moves freely. Thank you for your support. yuichirou yokomakura |
From: <y_m...@yb...> - 2023-08-11 11:52:23
|
Hi, I am using cgkit on python2.7 now. thank you for your support. I will report. I try to use Python3.x. Python2.7 is OK. but Python3.x does not work. pip list DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Package Version ---------- ------- cgkit 2.0.0 ode 0.15.2 Pillow 6.2.2 pip 19.1.1 pygame 1.9.6 PyOpenGL 3.1.5 setuptools 41.2.0 wheel 0.37.1 File "C:\Python27\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) File "C:\Python27\lib\site-packages\PIL\Image.py", line 779, in tostring "tostring() has been removed. Please call tobytes() instead." NotImplementedError: tostring() has been removed. Please call tobytes() instead. it works. \demos> viewer.py .\simplescene.py pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Texname: 1 Loading "uvmap.png"... Loading "uvmap.png"... pip list DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Package Version ---------- ------- cgkit 2.0.0 ode 0.15.2 Pillow 6.2.2 pip 19.1.1 pygame 1.9.6 PyOpenGL 3.1.7 setuptools 41.2.0 wheel 0.37.1 demos> viewer.py .\simplescene.py pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Texname: 1 Loading "uvmap.png"... Loading "uvmap.png"... Python2.7 is OK. -------------------------------------------------- Python3.x is Boost.Python.ArgumentError. python3.2 are : cgkit-2.0.0.win32-py3.2.exe I could not use get-pip.py Pillow-2.2.2.win32-py3.2.exe pygame-1.9.2a0.win32-py3.2.msi PyOpenGL-3.0.2.win32.exe python-3.2.msi I could not find ode. demo1.py,demo2.py,demo3.py work. \demos>viewer.py simplescene.py Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "C:\Python32\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python32\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python32\Scripts\viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "C:\Python32\Scripts\viewer.py", line 676, in draw renderer.paint(root) File "C:\Python32\lib\site-packages\cgkit\glmaterial.py", line 105, in loadTexData self._passPILImage(img) File "C:\Python32\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) Boost.Python.ArgumentError: Python argument types in GLTexture.texData(GLTexture, int, int, int, int, bytes) did not match C++ signature: texData(class support3d::GLTexture {lvalue}, int, int, int, int, char *) -------------------------------------------------- python3.4 are : Package Version ---------- ------- cgkit 2.0.0 ode 0.15.2 Pillow 2.8.2 pip 19.1.1 pygame 1.9.4 PyOpenGL 3.1.0 setuptools 2.1 wheel 0.33.6 \demos> viewer.py .\simplescene.py pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "C:\Python34\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python34\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python34\Scripts\viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "C:\Python34\Scripts\viewer.py", line 676, in draw renderer.paint(root) File "C:\Python34\lib\site-packages\cgkit\glmaterial.py", line 105, in loadTexData self._passPILImage(img) File "C:\Python34\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) Boost.Python.ArgumentError: Python argument types in GLTexture.texData(GLTexture, int, int, IntConstant, IntConstant, bytes) did not match C++ signature: texData(class support3d::GLTexture {lvalue}, int, int, int, int, char * __ptr64) replaced PyOpenGL-3.1.3b2 replaced Pillow 5.4.1 pip install .\PyOpenGL-3.1.3b2-cp34-cp34m-win_amd64.whl DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429). Processing c:\users\yuchi\downloads\pyopengl-3.1.3b2-cp34-cp34m-win_amd64.whl Installing collected packages: PyOpenGL Successfully installed PyOpenGL-3.1.3b2 PS C:\Users\yuchi\Downloads> pip list DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429). Package Version ---------- ------- cgkit 2.0.0 ode 0.15.2 Pillow 5.4.1 pip 19.1.1 pygame 1.9.4 PyOpenGL 3.1.3b2 setuptools 2.1 wheel 0.33.6 viewer.py .\simplescene.py pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "C:\Python34\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python34\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python34\Scripts\viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "C:\Python34\Scripts\viewer.py", line 676, in draw renderer.paint(root) File "C:\Python34\lib\site-packages\cgkit\glmaterial.py", line 105, in loadTexData self._passPILImage(img) File "C:\Python34\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tobytes()) Boost.Python.ArgumentError: Python argument types in GLTexture.texData(GLTexture, int, int, IntConstant, IntConstant, bytes) did not match C++ signature: texData(class support3d::GLTexture {lvalue}, int, int, int, int, char * __ptr64) ------------------------------------------------------- it occured same error on Windows11 cgkit-2.0.0-cp34-none-win_amd64.whl. other I used Mx linux22 and 19 and Pop!OS Python2.7 is OK. but it does not work on Python3.9 and Python3.10. it occured same error. I used https://sourceforge.net/p/cgkit/code/ci/py3k/tree/. thank you for your support. yuichirou yokomakura |
From: Matthias B. <mat...@gm...> - 2018-11-18 09:22:40
|
Hi Gary, thanks for the clarification. Just out of curiosity, which functionality of the package are you planning on using? I was actually thinking of dusting off the package and also get rid of some parts that I think are less useful anyway (such as that entire scene part and some library bindings). I would then also try to move from Boost.Python to Pybind11 and rely on a compiler that supports at least C++11. This would eliminate the dependency on Boost and make the build process more lightweight. There would then be no runtime dependency on a binding library anymore and the above problem would go away. Cheers, Matthias On 18.11.18 16:52, Gary Deschaines wrote: > Hi Mickael and Matthias, > > Upon building and installing cgkit 2.0.0 (non-light) for Python 2.7 on > an Ubuntu 16.04 platform I encountered a similar import error when > attempting to run cgkit programs since I had only installed the > libboost-python-dev package. > > The libboost-all-dev package also needs to be installed. > > Respectfully, > Gary Deschaines > > > > > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |
From: Gary D. <ge...@ho...> - 2018-11-18 03:53:08
|
Hi Mickael and Matthias, Upon building and installing cgkit 2.0.0 (non-light) for Python 2.7 on an Ubuntu 16.04 platform I encountered a similar import error when attempting to run cgkit programs since I had only installed the libboost-python-dev package. The libboost-all-dev package also needs to be installed. Respectfully, Gary Deschaines |
From: Matthias B. <mat...@gm...> - 2016-01-06 21:12:13
|
Hi Mickael, sorry for the delay. That symbol looks like it's from Boost Python, so you have to make sure you link against the correct libraries. Could it be that there are several versions of Boost installed and there has been a mixup between headers and libs? Matthias On 18.12.15 07:26, Mickael Laine wrote: > Hi, > > I've been trying to get cgkit working for the past couple days. I've > followed all the instruction and tried on both Ubuntu and Fedora. There > doesn't seem to be any problems during setup but I always get the > following error when trying to run a program that worked for others. > Here's the error: > > Traceback (most recent call last): > File "simulator_v5.py", line 19, in <module> > import cgkit.cgtypes as cgtypes > File "/usr/local/lib/python3.4/dist-packages/cgkit/cgtypes.py", line > 58, in <module> > from . import _core > ImportError: > /usr/local/lib/python3.4/dist-packages/cgkit/_core.cpython-34m.so > <http://core.cpython-34m.so>: undefined symbol: > _ZTIN5boost6python7objects21py_function_impl_baseE > > Can't figure out what is wrong. Do you have any ideas? > > Thanks, > > M. Laine > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |
From: Mickael L. <mic...@gm...> - 2015-12-18 07:26:17
|
Hi, I've been trying to get cgkit working for the past couple days. I've followed all the instruction and tried on both Ubuntu and Fedora. There doesn't seem to be any problems during setup but I always get the following error when trying to run a program that worked for others. Here's the error: Traceback (most recent call last): File "simulator_v5.py", line 19, in <module> import cgkit.cgtypes as cgtypes File "/usr/local/lib/python3.4/dist-packages/cgkit/cgtypes.py", line 58, in <module> from . import _core ImportError: /usr/local/lib/python3.4/dist-packages/cgkit/_ core.cpython-34m.so: undefined symbol: _ZTIN5boost6python7objects21py_function_impl_baseE Can't figure out what is wrong. Do you have any ideas? Thanks, M. Laine |
From: makura <y_m...@ya...> - 2015-06-09 12:31:19
|
Hello, I don't have used PyProtocols. I have used pip. it is very simple. Thank you. http://www.lfd.uci.edu/~gohlke/pythonlibs/ Pillow-2.8.2-cp27-none-win32.whl pygame-1.9.2a0-cp27-none-win32.whl ode-0.13.1-cp27-none-win32.whl PyOpenGL-3.1.1a1-cp27-none-win32.whl cgkit-2.0.0-cp27-none-win32.whl W:\pythoncgkitinstall>pip install Pillow-2.8.2-cp27-none-win32.whl Processing w:\python_cg_programing\pythoncgkitinstall\pillow-2.8.2-cp27-none-win32.whl Installing collected packages: Pillow Successfully installed Pillow-2.8.2 W:\pythoncgkitinstall>pip install pygame-1.9.2a0-cp27-none-win32.whl Processing w:\python_cg_programing\pythoncgkitinstall\pygame-1.9.2a0-cp27-none-win32.whl Installing collected packages: pygame Successfully installed pygame-1.9.2a0 W:\pythoncgkitinstall>pip install ode-0.13.1-cp27-none-win32.whl Processing w:\python_cg_programing\pythoncgkitinstall\ode-0.13.1-cp27-none-win32.whl Installing collected packages: ode Successfully installed ode-0.13.1 W:\pythoncgkitinstall>pip install cgkit-2.0.0-cp27-none-win32.whl Processing w:\python_cg_programing\pythoncgkitinstall\cgkit-2.0.0-cp27-none-win32.whl Installing collected packages: cgkit Successfully installed cgkit-2.0.0 W:\pythoncgkitinstall>pip install PyOpenGL-3.1.1a1-cp27-none-win32.whl Processing w:\python_cg_programing\pythoncgkitinstall\pyopengl-3.1.1a1-cp27-none-win32.whl Installing collected packages: PyOpenGL Successfully installed PyOpenGL-3.1.1a1 W:\pythoncgkitinstall>pip freeze cgkit==2.0.0 ode==0.13.1 Pillow==2.8.2 pygame==1.9.2a0 pyglet==1.2.2 PyOpenGL==3.1.1a1 pyprocessing==0.1.3.22 |
From: makura <y_m...@ya...> - 2015-05-21 13:44:26
|
Hello, I have used Pixar's RenderMan 19 RIS and cgkit. I have changed render.py. line 56: "prman" : ("prman -d it", "shader", "txmake"), I can use 'it'. following are simplescene.py demo. -------------------------------------- #simplescene_ris.py # RenderMan RIS demo from subprocess import check_call check_call(["txmake", "uvmap.png", "uvmap.tex"]) Globals(rib="""Integrator "PxrPathTracer" "handle" "int numLightSamples" [4] "int numBxdfSamples" [4] "int allowCaustics" [0] Hider "raytrace" "constant string integrationmode" ["path"] "int maxsamples" [50] "constant int incremental" [1]""", background = (0.2,0.4,0.6) ) # Material definition that will be used for all object mat="""Pattern "PxrTexture" "obj1_mat1_texture" "string filename" ["uvmap.tex"] "int invertT" [0] Bxdf "PxrDisney" "obj1_mat1" "reference float presence" ["obj1_mat1_texture:resultA"] "reference color baseColor" ["obj1_mat1_texture:resultRGB"] "color emitColor" [0 0 0] "float metallic" [0.4] "float specular" [0.4] "float specularTint" [0] "float anisotropic" [0] "float roughness" [0.1] "float subsurface" [0] "color subsurfaceColor" [0 0 0] "float sheen" [0] "float sheenTint" [0.5] "float clearcoat" [0] "float clearcoatGloss" [1]""" mat2="""Pattern "PxrTexture" "obj1_mat1_texture" "string filename" ["uvmap.tex"] "int invertT" [0] Bxdf "PxrLMDiffuse" "obj1_mat1" "reference float presence" ["obj1_mat1_texture:resultA"] "reference color frontColor" ["obj1_mat1_texture:resultRGB"] "color backColor" [0.5 0.5 0.5] "float roughness" [0] "color sheen" [0 0 0] "float translucence" [0] "color incandescence" [0 0 0]""" # Create a camera... TargetCamera( pos = (1,7,3), target = (0,0,1) ) # Create a distant light transm = mat4 ( 1 ) transm = transm.lookAt( (0,0,0), (5,5,5) ) lgt=RMLightSource(name = "RMLightSource", shader = None, transform =transm) lgt.rib=""" AreaLightSource "PxrAreaLight" "light1" "string shape" ["distant"] "float intensity" [0.5] Geometry "distantlight" """ # Create a couple of objects... p=Plane( lx = 10, ly = 10, pos = (0,0,0) ) p.rib=mat s=Sphere( radius = 1.0, pos = (-2,0,1) ) s.rib=mat c=CCylinder( radius = 0.5, length = 2.0, pos = (0,0,1.5) ) c.rib=mat b=Box( lx = 2.0, ly = 0.75, lz = 1.5, pos = (2,0,1) ) b.rib=mat -------------------------------------- Thank you. Yuichirou Yokomakura |
From: LinkedIn S. <sec...@li...> - 2014-11-17 12:43:55
|
Hi Temujin, You've successfully changed your LinkedIn password. Thanks for using LinkedIn! The LinkedIn Team When and where this happened: Date:November 17, 2014 12:43 PM Browser:Chrome Operating System:Linux IP Address:94.196.221.46 Approximate Location:United Kingdom Didn't do this? Be sure to change your password right away: https://www.linkedin.com/e/v2?e=3r7qv-i2ltpoct-3z&a=uas-request-password-reset&midToken=AQHNkCRq8Yx4Bg&ek=security_reset_password_notification |
From: LinkedIn S. <sec...@li...> - 2014-11-17 12:43:03
|
Hi Temujin, You recently requested a password reset. To change your LinkedIn password, paste the following link into your browser: https://www.linkedin.com/e/rpp/6308599/cgkit-user%40lists%2Esourceforge%2Enet/4925680103668125827/?hs=true&tok=2Sj82Dp0RqaCw1 The link will expire in 24 hours, so be sure to use it right away. Thanks for using LinkedIn! The LinkedIn Team |
From: Matthias B. <mat...@gm...> - 2014-07-10 21:01:11
|
Hi, sorry for the delay. On 07.07.14 15:50, makura wrote: > viewer.py simplescene.py (and uvmap.png). > it does not work. > I can not use "import Image". > I replaced "from Image import * " in _Image.py to "from PIL import Image ". > [...] Someone has already provided a patch that changed the PIL imports so that Pillow can be used as well. So far, this was only in the py2k branch (and it wasn't released anyway), but I have merged it into the py3k branch and pushed the changes. If you want you could get the Python files from the git repository and check if it works for you. I have also applied the other changes you posted earlier. Thanks for that! Is that OpenGL Boost error you are getting also related to PIL/Pillow? Did the error go away once you changed the imports? Cheers, Matthias |
From: makura <y_m...@ya...> - 2014-07-07 14:50:12
|
Hello, I used OS X10.9 and Windows7 32bit and Windows vista 64bit. I installed Python3.3.5, cgkit-py3.3, pygame, PyOpenGL and Pillow. Installing Pygame for Python 3 on OS X http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x How to install Python3 + Pygame on mac os x - 2014 iMac - YouTube viewer.py demo1.py viewer.py demo2.py viewer.py demo3.py these work. Thank you for your support. but , viewer.py simplescene.py (and uvmap.png). it does not work. I can not use "import Image". I replaced "from Image import * " in _Image.py to "from PIL import Image ". about OS X 10.9 Mavericks : $ viewer.py simplescene.py Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 699, in <module> viewer.run() File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/cgkit/tool.py", line 198, in run self.action() File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 676, in draw renderer.paint(root) File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/cgkit/glmaterial.py", line 104, in loadTexData img = Image.open(fullname) AttributeError: 'module' object has no attribute 'open' I replaced "from PIL import Image " in _Image.py to "from PIL.Image import * ". $ viewer.py simplescene.py Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 699, in <module> viewer.run() File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/cgkit/tool.py", line 198, in run self.action() File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "/Library/Frameworks/Python.framework/Versions/3.3/bin/viewer.py", line 676, in draw renderer.paint(root) File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/cgkit/glmaterial.py", line 105, in loadTexData self._passPILImage(img) File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/cgkit/glmaterial.py", line 141, in _passPILImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) Boost.Python.ArgumentError: Python argument types in GLTexture.texData(GLTexture, int, int, IntConstant, IntConstant, bytes) did not match C++ signature: texData(support3d::GLTexture {lvalue}, int, int, int, int, char*) about Windows vista 64bit : I replaced "from Image import * " in _Image.py to "from PIL import Image ". C:\Python33\sample\pythoncgkit\chapter1>viewer.py simplescene.py Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "C:\Python33\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "C:\Python33\Scripts\viewer.py", line 676, in draw renderer.paint(root) File "C:\Python33\lib\site-packages\cgkit\glmaterial.py", line 104, in loadTex Data img = Image.open(fullname) AttributeError: 'module' object has no attribute 'open' I replaced "from PIL import Image " in _Image.py to "from PIL.Image import * ". C:\Python33\sample\pythoncgkit\chapter1>viewer.py simplescene.py Texname: 1 Loading "uvmap.png"... Traceback (most recent call last): File "C:\Python33\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\viewer.py", line 384, in action self.draw(self.cam, self.width, self.height) File "C:\Python33\Scripts\viewer.py", line 676, in draw renderer.paint(root) File "C:\Python33\lib\site-packages\cgkit\glmaterial.py", line 105, in loadTex Data self._passPILImage(img) File "C:\Python33\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPI LImage self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring()) Boost.Python.ArgumentError: Python argument types in GLTexture.texData(GLTexture, int, int, IntConstant, IntConstant, bytes) did not match C++ signature: texData(class support3d::GLTexture {lvalue}, int, int, int, int, char * __pt r64) Where should I rewrite in them at? Thank you. Yuichirou Yokomakura |
From: makura <y_m...@ya...> - 2014-07-03 15:08:15
|
Hello, I could try changing "ribexport.py", line 557. f = open(filename, "wt") it works. D:\Aplication\cgkit>render.py -r3delight simplescene.py Exporting main.rib... 3 passes... Converting "uvmap.png" Traceback (most recent call last): File "C:\Python33\Scripts\render.py", line 361, in <module> render.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\render.py", line 237, in action bakestvar = bakestvar File "C:\Python33\lib\site-packages\cgkit\cmds.py", line 981, in save exp.exportFile(os.path.basename(filename), **options) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 271, in exportFi le rpass.doPass(frameNr) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 1267, in doPass self.copyImageMap(map) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 1297, in copyIma geMap img = Image.open(texmap) NameError: global name 'Image' is not defined I have installed Pillow. I add imort PIL.Image I could try changing "ribexport.py", line 1297. img = PIL.Image.open(texmap) it works. I can use cgkit for Python3.3 under Windows Vista 64bit and Windows7 32bit. Thank you for your support. Yuichirou Yokomakura ----- Original Message ----- >From: makura <y_m...@ya...> >To: cgkit user discussions <cgk...@li...> >Date: 2014/7/3, Thu 06:59 >Subject: Re: [cgkit-user] Window of viewer.py has closed. > > >Hello, > >if interface in interfaces: > >changed. > >next messages are : >----- >C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py >Exporting main.rib... >1 passes... >Traceback (most recent call last): > File "C:\Python33\Scripts\render.py", line 361, in <module> > render.run() > File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run > self.action() > File "C:\Python33\Scripts\render.py", line 237, in action > bakestvar = bakestvar > File "C:\Python33\lib\site-packages\cgkit\cmds.py", line 981, in save > exp.exportFile(os.path.basename(filename), **options) > File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 280, in exportFi >le > rpass.doPass(frameNr) > File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 832, in doPass > lid = self.exporter.applyLightSource(lgt) > File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 364, in applyLig >htSource > explgt.shaderSource()) > File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 557, in writeSha >der > f = file(filename, "wt") >NameError: global name 'file' is not defined >------ > >Thank you >Yuichirou Yokomakura > > > >----- Original Message ----- >>From: Matthias Baas <mat...@gm...> >>To: makura <y_m...@ya...>; cgkit user discussions <cgk...@li...> >>Date: 2014/7/3, Thu 06:10 >>Subject: Re: [cgkit-user] Window of viewer.py has closed. >> >>On 02.07.14 18:48, makura wrote: >>> C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py >>> [...] >>> File "C:\Python33\lib\site-packages\cgkit\protocols.py", line 53, in adapt >>> if interfaces.has_key(interface): >>> AttributeError: 'dict' object has no attribute 'has_key' >>> >>> If I add ".encode("cp932")",Where should I write in it at? >>> do viewer.py and render.py work? >> >>I think the problem rather is that in Python 3, the dict object doesn't >>have a has_key() method anymore. That should be written as: >> >> if interface in interfaces: >> >>Could you try changing that line and see if it then works again? >>Let me know if that fixes it. >> >>Cheers, >> >>Matthias >> >> >> >> >------------------------------------------------------------------------------ >Open source business process management suite built on Java and Eclipse >Turn processes into business applications with Bonita BPM Community Edition >Quickly connect people, data, and systems into organized workflows >Winner of BOSSIE, CODIE, OW2 and Gartner awards >http://p.sf.net/sfu/Bonitasoft >_______________________________________________ >cgkit-user mailing list >cgk...@li... >https://lists.sourceforge.net/lists/listinfo/cgkit-user > > > |
From: makura <y_m...@ya...> - 2014-07-03 14:56:07
|
Hello, it works. Thank you for your support. viewer.py", line 424, in handleEvents > key = e.str key = e.unicode Thanks. Yuichirou Yokomakura ----- Original Message ----- >From: Matthias Baas <mat...@gm...> >To: makura <y_m...@ya...>; cgkit user discussions <cgk...@li...> >Date: 2014/7/3, Thu 06:07 >Subject: Re: [cgkit-user] Window of viewer.py has closed. > >Hi, > >On 01.07.14 16:05, makura wrote: >> The window is closed as soon as I pressed Alt key and others. >> Navigation mode (Default: Maya) does not work. >> following are error: >> >> -------- >> C:\Python33\sample>viewer.py demo1.py >> Traceback (most recent call last): >> File "C:\Python33\Scripts\viewer.py", line 699, in <module> >> viewer.run() >> File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run >> self.action() >> File "C:\Python33\Scripts\viewer.py", line 389, in action >> self.handleEvents(events) >> File "C:\Python33\Scripts\viewer.py", line 424, in handleEvents >> key = e.str >> AttributeError: 'Event' object has no attribute 'str' > >I don't have pygame for Python 3 on OSX (unfortunately, on pygame.org >there is no version for OSX), so I think I never tried this out myself. >On the Python 2 branch I'm actually using "e.unicode" instead of "e.str" >and I can't remember anymore when/why I changed this. >You could try changing it do e.unicode and see if that works again. If >it's not working, you could try printing dir(e) to see what attributes >are defined on the Event object. I'm not sure if maybe something changed >between pygame 1.9.1 and 1.9.2? (there is not much information about >1.9.2 on the website) > >Cheers, > >Matthias > > > > |
From: makura <y_m...@ya...> - 2014-07-02 21:59:23
|
Hello, if interface in interfaces: changed. next messages are : ----- C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py Exporting main.rib... 1 passes... Traceback (most recent call last): File "C:\Python33\Scripts\render.py", line 361, in <module> render.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\render.py", line 237, in action bakestvar = bakestvar File "C:\Python33\lib\site-packages\cgkit\cmds.py", line 981, in save exp.exportFile(os.path.basename(filename), **options) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 280, in exportFi le rpass.doPass(frameNr) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 832, in doPass lid = self.exporter.applyLightSource(lgt) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 364, in applyLig htSource explgt.shaderSource()) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 557, in writeSha der f = file(filename, "wt") NameError: global name 'file' is not defined ------ Thank you Yuichirou Yokomakura ----- Original Message ----- >From: Matthias Baas <mat...@gm...> >To: makura <y_m...@ya...>; cgkit user discussions <cgk...@li...> >Date: 2014/7/3, Thu 06:10 >Subject: Re: [cgkit-user] Window of viewer.py has closed. > >On 02.07.14 18:48, makura wrote: >> C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py >> [...] >> File "C:\Python33\lib\site-packages\cgkit\protocols.py", line 53, in adapt >> if interfaces.has_key(interface): >> AttributeError: 'dict' object has no attribute 'has_key' >> >> If I add ".encode("cp932")",Where should I write in it at? >> do viewer.py and render.py work? > >I think the problem rather is that in Python 3, the dict object doesn't >have a has_key() method anymore. That should be written as: > > if interface in interfaces: > >Could you try changing that line and see if it then works again? >Let me know if that fixes it. > >Cheers, > >Matthias > > > > |
From: Matthias B. <mat...@gm...> - 2014-07-02 21:10:35
|
On 02.07.14 18:48, makura wrote: > C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py > [...] > File "C:\Python33\lib\site-packages\cgkit\protocols.py", line 53, in adapt > if interfaces.has_key(interface): > AttributeError: 'dict' object has no attribute 'has_key' > > If I add ".encode("cp932")",Where should I write in it at? > do viewer.py and render.py work? I think the problem rather is that in Python 3, the dict object doesn't have a has_key() method anymore. That should be written as: if interface in interfaces: Could you try changing that line and see if it then works again? Let me know if that fixes it. Cheers, Matthias |
From: Matthias B. <mat...@gm...> - 2014-07-02 21:07:49
|
Hi, On 01.07.14 16:05, makura wrote: > The window is closed as soon as I pressed Alt key and others. > Navigation mode (Default: Maya) does not work. > following are error: > > -------- > C:\Python33\sample>viewer.py demo1.py > Traceback (most recent call last): > File "C:\Python33\Scripts\viewer.py", line 699, in <module> > viewer.run() > File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run > self.action() > File "C:\Python33\Scripts\viewer.py", line 389, in action > self.handleEvents(events) > File "C:\Python33\Scripts\viewer.py", line 424, in handleEvents > key = e.str > AttributeError: 'Event' object has no attribute 'str' I don't have pygame for Python 3 on OSX (unfortunately, on pygame.org there is no version for OSX), so I think I never tried this out myself. On the Python 2 branch I'm actually using "e.unicode" instead of "e.str" and I can't remember anymore when/why I changed this. You could try changing it do e.unicode and see if that works again. If it's not working, you could try printing dir(e) to see what attributes are defined on the Event object. I'm not sure if maybe something changed between pygame 1.9.1 and 1.9.2? (there is not much information about 1.9.2 on the website) Cheers, Matthias |
From: makura <y_m...@ya...> - 2014-07-02 17:48:17
|
Hello, I think this problem is Shift_JIS ("cp932"). I tried... C:\PyOpenGL-Demo-3.0.1b1\PyOpenGL-Demo\GLUT>gears.py glutCreateWindow("pyGears".encode("cp932")) it works. but this does not works. C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py Exporting main.rib... Traceback (most recent call last): File "C:\Python33\Scripts\render.py", line 361, in <module> render.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\render.py", line 237, in action bakestvar = bakestvar File "C:\Python33\lib\site-packages\cgkit\cmds.py", line 981, in save exp.exportFile(os.path.basename(filename), **options) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 172, in exportF le explgt = self.adapt(obj, ILightSource) File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 672, in adapt return protocols.adapt(obj, interface) File "C:\Python33\lib\site-packages\cgkit\protocols.py", line 53, in adapt if interfaces.has_key(interface): AttributeError: 'dict' object has no attribute 'has_key' If I add ".encode("cp932")",Where should I write in it at? do viewer.py and render.py work? Thank you. Yuichirou Yokomakura ----- Original Message ----- >From: makura <y_m...@ya...> >To: "cgk...@li..." <cgk...@li...> >Date: 2014/7/2, Wed 00:05 >Subject: [cgkit-user] Window of viewer.py has closed. > > >Hello, >I used Python3.3. >I installed cgkit under Windows7 32bit. > >Downloaded >cgkit-2.0.0.win32-py3.3.exe (1.7 MB). >python-3.3.5.msi Windows x86 MSI installer. >pygame-1.9.2a0-hg_56e0eadfc267.win32-py3.3.msi >https://bitbucket.org/pygame/pygame/downloads >pillow >PyOpenGL-3.1.0.win32-py3.3.exe > > >viewer.py demo1.py >OK. > >but >The window is closed as soon as I pressed Alt key and others. >Navigation mode (Default: Maya) does not work. >following are error: > >-------- >C:\Python33\sample>viewer.py demo1.py >Traceback (most recent call last): > File "C:\Python33\Scripts\viewer.py", line 699, in <module> > viewer.run() > File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run > self.action() > File "C:\Python33\Scripts\viewer.py", line 389, in action > self.handleEvents(events) > File "C:\Python33\Scripts\viewer.py", line 424, in handleEvents > key = e.str >AttributeError: 'Event' object has no attribute 'str' >-------- > >>chcp 65001 >>viewer.py demo1.py >same error. > >Thank you. >Yuichirou Yokomakura >------------------------------------------------------------------------------ >Open source business process management suite built on Java and Eclipse >Turn processes into business applications with Bonita BPM Community Edition >Quickly connect people, data, and systems into organized workflows >Winner of BOSSIE, CODIE, OW2 and Gartner awards >http://p.sf.net/sfu/Bonitasoft >_______________________________________________ >cgkit-user mailing list >cgk...@li... >https://lists.sourceforge.net/lists/listinfo/cgkit-user > > > |
From: makura <y_m...@ya...> - 2014-07-01 15:05:12
|
Hello, I used Python3.3. I installed cgkit under Windows7 32bit. Downloaded cgkit-2.0.0.win32-py3.3.exe (1.7 MB). python-3.3.5.msi Windows x86 MSI installer. pygame-1.9.2a0-hg_56e0eadfc267.win32-py3.3.msi https://bitbucket.org/pygame/pygame/downloads pillow PyOpenGL-3.1.0.win32-py3.3.exe viewer.py demo1.py OK. but The window is closed as soon as I pressed Alt key and others. Navigation mode (Default: Maya) does not work. following are error: -------- C:\Python33\sample>viewer.py demo1.py Traceback (most recent call last): File "C:\Python33\Scripts\viewer.py", line 699, in <module> viewer.run() File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run self.action() File "C:\Python33\Scripts\viewer.py", line 389, in action self.handleEvents(events) File "C:\Python33\Scripts\viewer.py", line 424, in handleEvents key = e.str AttributeError: 'Event' object has no attribute 'str' -------- >chcp 65001 >viewer.py demo1.py same error. Thank you. Yuichirou Yokomakura |
From: Matthias B. <mat...@gm...> - 2014-06-03 20:29:21
|
Hi Ryan, I have never worked with two tablets at the same time, so I'm not sure what the correct way of doing this is. But if you already have two separate contexts that each is connected to a different device, isn't that enough to differentiate the events? Why would you still need the movemask? (I'm actually not sure if the movemask is used to distinguish between devices) I'm afraid if you need more details about the individual fields of the context or packet object you'll have to check the actual wintab documentation (see section 7.3, for example): http://www.wacomeng.com/windows/docs/Wintab_v140.htm Cheers, Matthias On 03.06.14 01:14, Ryan Morehead wrote: > I'm trying to use two Intuos 5 tablets (simultaneous input from each) to > move two cursors at once in pygame. > > I thought that I would be able to do this by initializing two separate > contexts and using the context.movemask to specify which cursors could > create move events for each. > > I haven't been able to get movemask to work in the way I thought it > would. Specifically, the first tablet's stylus is identified as cursor 2 > using the info commands, and the second tablet's cursor is 7. > > I'm not exactly clear on how to use the cursor mask command, but when I > set it to movemask = 2, it doesn't have any effect. > > I am, however, able to specify which device can create movement events > in the context. > > It occurs to me that the way I'm trying to do this is entirely > incorrect, but either way I could use some help. > > Below is the code for each context. > > class Tablet1(object): > def __init__(self, screen, hwnd=None): > self.hwnd = pygame.display.get_wm_info()["window"] > self.context = wintab.Context() > self.context.pktdata = (PK_X | PK_Y | PK_CURSOR) > self.context.movemask = 2 > self.context.device = 0 > self.context.open(self.hwnd, True) > > class Tablet2(object): > def __init__(self, screen, hwnd=None): > self.hwnd = pygame.display.get_wm_info()["window"] > self.context = wintab.Context() > self.context.pktdata = (PK_X | PK_Y | PK_CURSOR) > self.context.device = 1 > self.context.movemask = 7 > self.context.open(self.hwnd, True) > > Thanks, > > Ryan |
From: Ryan M. <rya...@gm...> - 2014-06-03 00:15:30
|
Hello, I'm trying to use two Intuos 5 tablets (simultaneous input from each) to move two cursors at once in pygame. I thought that I would be able to do this by initializing two separate contexts and using the context.movemask to specify which cursors could create move events for each. I haven't been able to get movemask to work in the way I thought it would. Specifically, the first tablet's stylus is identified as cursor 2 using the info commands, and the second tablet's cursor is 7. I'm not exactly clear on how to use the cursor mask command, but when I set it to movemask = 2, it doesn't have any effect. I am, however, able to specify which device can create movement events in the context. It occurs to me that the way I'm trying to do this is entirely incorrect, but either way I could use some help. Below is the code for each context. class Tablet1(object): def __init__(self, screen, hwnd=None): self.hwnd = pygame.display.get_wm_info()["window"] self.context = wintab.Context() self.context.pktdata = (PK_X | PK_Y | PK_CURSOR) self.context.movemask = 2 self.context.device = 0 self.context.open(self.hwnd, True) class Tablet2(object): def __init__(self, screen, hwnd=None): self.hwnd = pygame.display.get_wm_info()["window"] self.context = wintab.Context() self.context.pktdata = (PK_X | PK_Y | PK_CURSOR) self.context.device = 1 self.context.movemask = 7 self.context.open(self.hwnd, True) Thanks, Ryan |
From: Matthias B. <mat...@gm...> - 2014-03-09 22:56:42
|
Hi, On 08.03.14 20:25, π wrote: > I'm very keen to get CGKit up and running on my OSX Mavericks MacBook Air. > > First I try to see if I can install using pip, and I cannot. Then I > learn that I need python 3.3, so I install it using Homebrew: > [...] > Now I run the installer from *http://sourceforge.net/projects/cgkit/* > > But it fails saying Python 3 is not installed. > > http://imagebin.org/index.php?mode=image&id=297981 > > I don't know how to proceed now. The cgkit installers only work with the Python version from www.python.org. So if you want to use the installers, you have to get Python from there and install that one instead of the one from homebrew. The alternative is to get the cgkit sources and build your own version against the version of Python you want to use. See the docs for instructions how to build the package (depending on what functionality you need, you may even get away with a pure Python build which doesn't need any external libraries). Cheers, Matthias |
From: π <sun...@gm...> - 2014-03-08 20:25:49
|
Hello CGKit people, I've recently discovered Python from having to generate my own Blender export scripts, and I have instantly taken to the language. I'm very keen to get CGKit up and running on my OSX Mavericks MacBook Air. First I try to see if I can install using pip, and I cannot. Then I learn that I need python 3.3, so I install it using Homebrew: piBookAir:pi_hrtf_23feb pi$ brew install python3 ==> Installing dependencies for python3: sqlite, xz ==> Installing python3 dependency: sqlite ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.3.mavericks.bottle.1.tar.gz ######################################################################## 100.0% ==> Pouring sqlite-3.8.3.mavericks.bottle.1.tar.gz ==> Caveats This formula is keg-only, so it was not symlinked into /usr/local. Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. OS X provides an older sqlite3. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables: LDFLAGS: -L/usr/local/opt/sqlite/lib CPPFLAGS: -I/usr/local/opt/sqlite/include ==> Summary 🍺 /usr/local/Cellar/sqlite/3.8.3: 9 files, 2.0M ==> Installing python3 dependency: xz ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/xz-5.0.5.mavericks.bottle.2.tar.gz ######################################################################## 100.0% ==> Pouring xz-5.0.5.mavericks.bottle.2.tar.gz 🍺 /usr/local/Cellar/xz/5.0.5: 58 files, 1.5M ==> Installing python3 ==> Downloading http://python.org/ftp/python/3.3.4/Python-3.3.4.tgz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/python3/3.3.4 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3. ==> make ==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.3.4 ==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.3.4/share/python3 ==> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-2.2.tar.gz ######################################################################## 100.0% ==> /usr/local/Cellar/python3/3.3.4/bin/python3 -s setup.py install --force --verbose --install-scripts=/usr/loca ==> Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz ######################################################################## 100.0% ==> /usr/local/Cellar/python3/3.3.4/bin/python3 -s setup.py install --force --verbose --install-scripts=/usr/loca ==> Caveats Setuptools and Pip have been installed. To update them pip3 install --upgrade setuptools pip3 install --upgrade pip You can install Python packages with `pip3 install <your_favorite_package>` They will install into the site-package directory /usr/local/lib/python3.3/site-packages See: https://github.com/Homebrew/homebrew/wiki/Homebrew-and-Python .app bundles were installed. Run `brew linkapps` to symlink these to /Applications. ==> Summary 🍺 /usr/local/Cellar/python3/3.3.4: 4777 files, 94M, built in 2.3 minutes piBookAir:pi_hrtf_23feb pi$ python3 Python 3.3.4 (default, Mar 8 2014, 14:52:56) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> quit() piBookAir:pi_hrtf_23feb pi$ I don't quite understand some of these messages: This formula is keg-only, so it was not symlinked into /usr/local. Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. Did I already have Python3 on my system? I don't think so: piBookAir:pi_hrtf_23feb pi$ sudo find / -iname "python3*" Password: /Applications/blender.app/Contents/MacOS/2.69/python/lib/python3.3 find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory /Library/Caches/Homebrew/Formula/python3.brewing /Library/Caches/Homebrew/python3--pip-1.5.4.tar.gz /Library/Caches/Homebrew/python3--setuptools-2.2.tar.gz /Library/Caches/Homebrew/python3-3.3.4.tgz /Users/pi/Downloads/blender-2.69-e07e8e3-OSX-10.6-x86_64/blender.app/Contents/MacOS/2.69/python/lib/python3.3 /Users/pi/Downloads/blender-2.69-e07e8e3-OSX-10.6-x86_64/blenderplayer.app/Contents/MacOS/2.69/python/lib/python3.3 /Users/pi/Library/Logs/Homebrew/python3 /usr/local/bin/python3 /usr/local/bin/python3-config /usr/local/bin/python3.3 /usr/local/bin/python3.3-config /usr/local/Cellar/python3 /usr/local/Cellar/python3/3.3.4/bin/python3 /usr/local/Cellar/python3/3.3.4/bin/python3-config /usr/local/Cellar/python3/3.3.4/bin/python3.3 /usr/local/Cellar/python3/3.3.4/bin/python3.3-config /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3 /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3-config /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3.3 /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3.3-config /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3.3m /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/bin/python3.3m-config /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/include/python3.3m /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/lib/pkgconfig/python3.pc /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/lib/python3.3 /usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/share/doc/python3.3 /usr/local/Cellar/python3/3.3.4/share/man/man1/python3.1 /usr/local/Cellar/python3/3.3.4/share/man/man1/python3.3.1 /usr/local/lib/python3.3 /usr/local/Library/Formula/python3.rb /usr/local/Library/LinkedKegs/python3 /usr/local/opt/python3 /usr/local/share/man/man1/python3.1 /usr/local/share/man/man1/python3.3.1 /usr/local/share/python3 /usr/share/vim/vim73/autoload/python3complete.vim piBookAir:pi_hrtf_23feb pi$ ls -la /usr/local/lib/python3.3 total 0 drwxr-xr-x 3 pi admin 102 8 Mar 14:53 . drwxr-xr-x 197 pi admin 6698 8 Mar 14:53 .. drwxr-xr-x 8 pi admin 272 8 Mar 14:53 site-packages piBookAir:pi_hrtf_23feb pi$ ls -la /usr/local/lib/python3.3/site-packages/ total 992 drwxr-xr-x 8 pi admin 272 8 Mar 14:53 . drwxr-xr-x 3 pi admin 102 8 Mar 14:53 .. drwxr-xr-x 3 pi admin 102 8 Mar 14:53 __pycache__ -rw-r--r-- 1 pi admin 234 8 Mar 14:53 easy-install.pth drwxr-xr-x 4 pi admin 136 8 Mar 14:53 pip-1.5.4-py3.3.egg -rw-r--r-- 1 pi admin 495300 8 Mar 14:53 setuptools-2.2-py3.3.egg -rw-r--r-- 1 pi admin 27 8 Mar 14:53 setuptools.pth -rw-r--r-- 1 pi admin 2602 8 Mar 14:53 sitecustomize.py piBookAir:pi_hrtf_23feb pi$ which python3 /usr/local/bin/python3 piBookAir:pi_hrtf_23feb pi$ ls -la /usr/local/bin/python3 lrwxr-xr-x 1 pi admin 35 8 Mar 14:54 /usr/local/bin/python3 -> ../Cellar/python3/3.3.4/bin/python3 Could it be finding the Python3 hiding in Blender? I don't see how; that is not in the path. Now I run the installer from http://sourceforge.net/projects/cgkit/ But it fails saying Python 3 is not installed. http://imagebin.org/index.php?mode=image&id=297981 I don't know how to proceed now. Is there any chance that CGKit could be revised so that it can be installed with pip3? It is so smooth when all necessary packages can be installed with pip! π |
From: Baptiste L. <bap...@gm...> - 2013-11-18 23:21:20
|
Yes, thanks, I managed to build it, that was the right option. I had a small problem linking to lib3ds, but I eventually found the right line in setup.py (LIB3DS_AVAILABLE = True). Sorry for asking kind of beginner question, and thanks for this piece of software and fast answer. I have now a nice 3D display of a kite simulator. ++ Baptiste LABAT On Mon, Nov 18, 2013 at 10:47 PM, Matthias Baas <mat...@gm...>wrote: > Hi, > > On 18.11.13 19:21, Baptiste Labat wrote: > > bat@bat-UX32VD:~/00PythonSoftware/FreeKiteSim/3D_Viewer$ > > ./FreeKiteViewer.sh > > Traceback (most recent call last): > > File "/usr/local/bin/viewer.py", line 63, in <module> > > from cgkit.all import * > > File "/usr/local/lib/python2.7/dist-packages/cgkit/all/__init__.py", > > line 46, in <module> > > from cgkit import _core > > ImportError: libboost_python-py27.so.1.46.1: cannot open shared object > > file: No such file or directory > > > > I can install libboost-python1.49 and libboost-python1.53 from ubuntu > > repository but not 1.46.1 > > Where did you get the cgkit binary from? It looks like it was simply > built against a different version of boost than what you have on your > system. So you either have to build cgkit yourself with the version of > boost you have or you have to get boost 1.46.1 from somewhere. > > Cheers, > > Matthias > > > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user > |
From: Matthias B. <mat...@gm...> - 2013-11-18 21:47:36
|
Hi, On 18.11.13 19:21, Baptiste Labat wrote: > bat@bat-UX32VD:~/00PythonSoftware/FreeKiteSim/3D_Viewer$ > ./FreeKiteViewer.sh > Traceback (most recent call last): > File "/usr/local/bin/viewer.py", line 63, in <module> > from cgkit.all import * > File "/usr/local/lib/python2.7/dist-packages/cgkit/all/__init__.py", > line 46, in <module> > from cgkit import _core > ImportError: libboost_python-py27.so.1.46.1: cannot open shared object > file: No such file or directory > > I can install libboost-python1.49 and libboost-python1.53 from ubuntu > repository but not 1.46.1 Where did you get the cgkit binary from? It looks like it was simply built against a different version of boost than what you have on your system. So you either have to build cgkit yourself with the version of boost you have or you have to get boost 1.46.1 from somewhere. Cheers, Matthias |