Closed mamer999 closed 7 years ago
Hi, what is the error message - i.e. can you tell exactly which line of code is causing it? What do you mean by "...no Problem."? Are all the dll files in the same directory as the py file? Are the dll and python 32 or 64 bit?
I have Win10 with developers (or whatever latest revision is called) on this laptop and pi3d works most of the time - some demos are unreliable and I occasionally get an error message when I stop them.
Let me know what you find
Paddy
Hi,
error message is:
Traceback (most recent call last):
File "myfirst2.py", line 2, in
Excellent detail thanks.
I have 2.7.12 on this laptop (linux) but will try and test. It could be something to do with http://bugs.python.org/issue29294 might be able to do a hackish patch in the except block to convert from unicode to str.
You have also found another bug - the pi3d.Log.logger() has been changed in the pi3d classes themselves to use the normal python logging system. I will fix this while finding the cause of the windll error.
Could you try a minor patch? I have python 3.5 on the windows partition on this machine (I know I ought to set up virtual environments etc).
If you can find where pi3d/constants/__init__.py
has been installed (c:/users/patrick/appdata/local/programs/python35-32/lib/site-packages/pi3d/pi3d/constants/__init__.py
on this but could be elsewhere) change line 72
return ctypes.WinDLL(str(name))
Thanks
Paddy
Hi Paddy,
Yes, that works!
Thanks
Jürgen (mamer999)
Gesendet von Mail für Windows 10
Von: paddywwoof Gesendet: Mittwoch, 30. August 2017 15:00 An: pi3d/pi3d.github.com Cc: mamer999; Author Betreff: Re: [pi3d/pi3d.github.com] PI3D not running with Windows 10/Python2.7.13 (#4)
Could you try a minor patch? I have python 3.5 on the windows partition on this machine (I know I ought to set up virtual environments etc). If you can find where pi3d/constants/init.py has been installed (c:/users/patrick/appdata/local/programs/python35-32/lib/site-packages/pi3d/pi3d/constants/init.py on this but could be elsewhere) change line 72 return ctypes.WinDLL(str(name)) Thanks Paddy — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Great. Hopefully that's it. I've put a commit into the develop branch so it will be in the next release.
Thanks again for pointing out the problem.
Paddy
Error when importing pi3d (Loading libGLESv2.dll). With Python 2.7.12 no Problem. Tested on 4 PC's with Windows 10.