Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97977 > unrolled thread

started writing pygame

Started byharirammanohar159@gmail.com
First post2015-10-28 01:53 -0700
Last post2015-10-29 10:03 -0700
Articles 6 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  started writing pygame harirammanohar159@gmail.com - 2015-10-28 01:53 -0700
    Re: started writing pygame captain_sensible <andybrookestar@googlemail.com> - 2015-10-28 10:18 -0700
    Re: started writing pygame harirammanohar159@gmail.com - 2015-10-28 20:18 -0700
    Re: started writing pygame harirammanohar159@gmail.com - 2015-10-29 01:42 -0700
    Re: started writing pygame harirammanohar159@gmail.com - 2015-10-29 02:00 -0700
      Re: started writing pygame captain_sensible <andybrookestar@googlemail.com> - 2015-10-29 10:03 -0700

#97977 — started writing pygame

Fromharirammanohar159@gmail.com
Date2015-10-28 01:53 -0700
Subjectstarted writing pygame
Message-ID<90c1a751-d3a9-4f59-a0bb-69d6491d6f96@googlegroups.com>
Hi All,

I just started learning pygame :)
Facing issue while running the code after installing game from the site (http://programarcadegames.com/index.php?lang=en&chapter=introduction_to_graphics)- 5.9 Open a Blank Window

Error:

Traceback (most recent call last):
  File "./pygame_base_template.py", line 4, in <module>
    import pygame
  File "/usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/__init__.py", line 95, in <module>
    from pygame.base import *
ImportError: /usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/base.cpython-34m.so: undefined symbol: PyCObject_FromVoidPtr

Thanks in advance..

[toc] | [next] | [standalone]


#97984

Fromcaptain_sensible <andybrookestar@googlemail.com>
Date2015-10-28 10:18 -0700
Message-ID<ae8960e6-46d8-4ecf-a8e3-92beaabee730@googlegroups.com>
In reply to#97977
i'm mainly a PHP man but wanted to get into Python. Personally if you just started pygame I would consider Livewires which has a lower learning curve.This book has a heavy bias towards graphics & games whilst still going through concepts of python object programming.i recommend it.! 

http://www.amazon.com/Python-Programming-Absolute-Beginner-3rd/dp/1435455002/ref=sr_1_32?ie=UTF8&qid=1446056048&sr=8-32&keywords=python

it might help if you post the content of your code for line 95.i'm no python expert but traceback  does mention something not installed or something not imported properly!

[toc] | [prev] | [next] | [standalone]


#97990

Fromharirammanohar159@gmail.com
Date2015-10-28 20:18 -0700
Message-ID<8064466e-a9fd-48d8-9619-b7849bf2931d@googlegroups.com>
In reply to#97977
On Wednesday, 28 October 2015 14:24:03 UTC+5:30, hariramm...@gmail.com  wrote:
> Hi All,
> 
> I just started learning pygame :)
> Facing issue while running the code after installing game from the site (http://programarcadegames.com/index.php?lang=en&chapter=introduction_to_graphics)- 5.9 Open a Blank Window
> 
> Error:
> 
> Traceback (most recent call last):
>   File "./pygame_base_template.py", line 4, in <module>
>     import pygame
>   File "/usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/__init__.py", line 95, in <module>
>     from pygame.base import *
> ImportError: /usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/base.cpython-34m.so: undefined symbol: PyCObject_FromVoidPtr
> 
> Thanks in advance..

@captain..
if you have the book, can you give me...

[toc] | [prev] | [next] | [standalone]


#97991

Fromharirammanohar159@gmail.com
Date2015-10-29 01:42 -0700
Message-ID<af11230a-1537-4516-93f6-e1cf63cc374c@googlegroups.com>
In reply to#97977
On Wednesday, 28 October 2015 14:24:03 UTC+5:30, hariramm...@gmail.com  wrote:
> Hi All,
> 
> I just started learning pygame :)
> Facing issue while running the code after installing game from the site (http://programarcadegames.com/index.php?lang=en&chapter=introduction_to_graphics)- 5.9 Open a Blank Window
> 
> Error:
> 
> Traceback (most recent call last):
>   File "./pygame_base_template.py", line 4, in <module>
>     import pygame
>   File "/usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/__init__.py", line 95, in <module>
>     from pygame.base import *
> ImportError: /usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/base.cpython-34m.so: undefined symbol: PyCObject_FromVoidPtr
> 
> Thanks in advance..

can any one let me know where i am going wrong, actually i used yum to install libraries/dependencies and downloaded source and compiled to specified location, where there is no chance of improper installation, whatever the dependent package are not available through yum,it just thrown warning as not available... if any one having process to install pygame very smooth in linux including all dependencies, can you share...

[toc] | [prev] | [next] | [standalone]


#97994

Fromharirammanohar159@gmail.com
Date2015-10-29 02:00 -0700
Message-ID<8faa43f1-aa11-4cad-aab9-0a8715828130@googlegroups.com>
In reply to#97977
On Wednesday, 28 October 2015 14:24:03 UTC+5:30, hariramm...@gmail.com  wrote:
> Hi All,
> 
> I just started learning pygame :)
> Facing issue while running the code after installing game from the site (http://programarcadegames.com/index.php?lang=en&chapter=introduction_to_graphics)- 5.9 Open a Blank Window
> 
> Error:
> 
> Traceback (most recent call last):
>   File "./pygame_base_template.py", line 4, in <module>
>     import pygame
>   File "/usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/__init__.py", line 95, in <module>
>     from pygame.base import *
> ImportError: /usr/utils/python/3.4.3/custommodules/lib/python3.4/site-packages/pygame/base.cpython-34m.so: undefined symbol: PyCObject_FromVoidPtr
> 
> Thanks in advance..

@captain 
i have tried the link given in the book to download the software and its redirecting to some other third party site...

[toc] | [prev] | [next] | [standalone]


#98000

Fromcaptain_sensible <andybrookestar@googlemail.com>
Date2015-10-29 10:03 -0700
Message-ID<291c3dec-51e9-4a83-baab-4e1c891aa90b@googlegroups.com>
In reply to#97994
mmm if your using yum that probably means your using Fedora Linux? the same distro as Linux Torvalds! Too clever for me , i just use Slackware14.1 but at least I control whats on my system and how it gets on my system!for pygame its a complete package!

For Livewires I have the files , so just reply to me privately to which email account you want the files sending. I would have thought Fedora would have a package for pygame on its repo somewhere rather than installing from source.manual install might have more control "make, make install" and all that stuff! 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web