I got a black screen (see with_fresh_install.png in attached files). But if i source an old virtual env (same python version) of previous cocos2d test, map is correctly loaded (see with_old_venv.png). I can found little versions differences between fresh and old venv:
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) source /home/bux/Projets/cocos/venv3.5/bin/activate
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip freeze
cocos2d==0.6.4
future==0.16.0
pkg-resources==0.0.0
pyglet==1.3.0b1
six==1.10.0
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) source venv3.5/bin/activate
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip freeze
cocos2d==0.6.5
future==0.16.0
pkg-resources==0.0.0
pyglet==1.3.0
six==1.11.0
Thank's.
--
You received this message because you are subscribed to the Google Groups "cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to cocos-...@googlegroups.com.
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.
1.3.0b1 and
1.3.0
Could you try this:
- create new venv
- pip install the dependencies first, asking for the specific versions in the 'known good' install
- pip install cocos
- verify installed versions are as expected
- try the program to see if behaves well.
if it does well, pip unistall pyglet and do a pip install pyglet without version; that should give last pyglet.
Try the program to see if runs well or not.
➜ cocos2d_tiledmap_demo git:(master) virtualenv --no-site-packages -p /usr/bin/python3.5 venv3.5
Running virtualenv with interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /tmp/cocos2d_tiledmap_demo/venv3.5/bin/python3.5
Also creating executable in /tmp/cocos2d_tiledmap_demo/venv3.5/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
➜ cocos2d_tiledmap_demo git:(master) source venv3.5/bin/activate
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip install pyglet==1.3.0b1
Collecting pyglet==1.3.0b1
Using cached pyglet-1.3.0b1-py2.py3-none-any.whl
Collecting future (from pyglet==1.3.0b1)
Installing collected packages: future, pyglet
Successfully installed future-0.16.0 pyglet-1.3.0b1
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip install six==1.10.0
Collecting six==1.10.0
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.10.0
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip install cocos2d
Collecting cocos2d
Requirement already satisfied: six>=1.4 in ./venv3.5/lib/python3.5/site-packages (from cocos2d)
Requirement already satisfied: pyglet>=1.2 in ./venv3.5/lib/python3.5/site-packages (from cocos2d)
Requirement already satisfied: future in ./venv3.5/lib/python3.5/site-packages (from pyglet>=1.2->cocos2d)
Installing collected packages: cocos2d
Successfully installed cocos2d-0.6.5
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) pip freeze
cocos2d==0.6.5
future==0.16.0
pkg-resources==0.0.0
pyglet==1.3.0b1
six==1.10.0
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) python -c "import pyglet; print(pyglet.version)"
1.3.0b1
(venv3.5) ➜ cocos2d_tiledmap_demo git:(master) python demo.py
To unsubscribe from this group and stop receiving emails from it, send an email to cocos-discus...@googlegroups.com.
/home/bux/testcocos
cd /home/bux/testcocos
/home/bux/testcocos/myenv
/home/bux/testcocos/
pyglet with the clone; it will be at the last version in the default branch./home/bux/testcocos/cocos
/home/bux/testcocos/myenv/
/lib/python3.5/site-packages/
py35_cocos_pyglet.pth/home/bux/testcocos/
pyglet/home/bux/testcocos/cocos
/home/bux/testcocos/
pyglet/home/bux/testcocos/cocos
list the tags with
git tags -l
Lets try 0.6.5 ; it has the tag release-0.6.5
git checkout
release-0.6.5
- Okay, now run your test from the venv
python ....
- if it runs bad, go to a prior pyglet tag and test again (don't go to tags 1.2.x)
- if it runs ok, advance to the next tag in pyglet and test again
- also test with the newer pyglet tag, currently
pyglet-1.4.0a1
This should tell which pyglet version, if any, has problems.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos-discuss+unsubscribe@googlegroups.com.
tip 3930:d401d45e0d0d
pyglet-1.4.0a1 3910:e7ab9d8d8ea3
pyglet-1.3.0 3781:64acbbeafb8f
pyglet-1.3.0rc2 3772:5d692ab5986e
pyglet-1.3.0rc1 3748:14afb5a0054d
pyglet-1.2.4 3292:10f07039613b
pyglet-1.2.3 3222:92cd120b6cb9
pyglet-1.2.2 3073:12bb2e852335
pyglet-1.2.0 2990:b5a21da8dbba
pyglet-1.2.0rc3 2978:b36873813f83
release-1.2rc1 2949:5194a6b8be4f
release-1.2alpha1 2721:5df7a60a32bb
last_pyobjc_version 2670:7ed1b86b049f
pyglet-1.1.4 2264:dff26a5c440e
pyglet-1.1.4-rc1 2258:bd0bf56e2101
pyglet-1.1.3 2182:0e88949deaba
pyglet-1.1.2 2160:59cb56b04ee4
pyglet-1.1.1 2118:97ed8929975e
pyglet-1.1 2084:2db88439ccb3
pyglet-1.1beta2 2036:cb3e6f1ed68c
pyglet-1.1beta1 1959:ce8a50069a13
pyglet-1.1alpha2 1909:21fb7f6ce977
pyglet-1.1alpha1 1795:e22423cd9c4a
pyglet-1.0 1544:b5ed21968f06
pyglet-1.0beta3 1452:b30bbb44efa6
pyglet-1.0beta2 1364:c7eac959dc0c
pyglet-1.0beta1 1337:084e5d57609d
pyglet-1.0alpha2 1143:f2b5c7e11d7f
pyglet-1.0alpha1 937:727c422fcc95
from cocos.director import director
from cocos.tiles import load
from cocos.layer import ScrollingManager
from cocos.layer import pyglet
from cocos.scene import Scene
from cocos.sprite import Sprite
director.init()
a = load("demo.tmx")["mytiles"]
img = Sprite('eyes.png')
scroller = ScrollingManager()
scroller.add(a)
scene = Scene()
scene.add(scroller)
scene.add(img)
director.run(scene)