Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pygames and livewires
#1
I m learning python from Michael Dawson books, and he use library livewires to import and code pygame library, a do not know how to import and use this library in pypthon 3.5 , can somebody help  ?
Quote
#2
pip install LiveWires
Quote
#3
(Dec-20-2016, 06:43 PM)Larz60+ Wrote: pip install LiveWires
I install LiverWires but pycharm do not accept to import the library, and code from LiverWires, Do you work in that library ?
Quote
#4
the import is

import livewires
Quote
#5
(Dec-20-2016, 08:07 PM)Larz60+ Wrote: the import is

import livewires

But in book write 
from livewires import games
but in pycharm don t work
Quote
#6
Well if it has a module named games, that's how you would load it.
you might try:
import livewires.games

there's something funky about that package
I installed it, and it's in the proper place.
the file games.py exists, yet an error is generated
when trying to import
Is this for the LiveWires Python Course?
You might want to visit their github site and see if there are special instructions
It's located here: https://github.com/livewires/python
Quote
#7
(Dec-21-2016, 01:07 AM)Larz60+ Wrote: Well if it has a module named games, that's how you would load it.
you might try:
import livewires.games

there's something funky about that package
I installed it, and it's in the proper place.
the file games.py exists, yet an error is generated
when trying to import
Is this for the LiveWires Python Course?
You might want to visit their github site and see if there are special instructions
It's located here: https://github.com/livewires/python
from this course http://kvspgtcs.org/wp-content/uploads/2...ginner.pdf chapter 11, but I use new version of book. in that he use python 3.1


import livewires.games doesn t work
maybe that library doesn t work on python 3.5 ?
Quote
#8
the problem is in the package.
There is nothing either of us can do.
You need to contact the author (email and name available on Pypi) https://pypi.python.org/pypi/LiveWires/2.1
use the XML-RPC command:
release_data = ppi.get_release_data('LiveWires', '2.1')
You can use the wrapper I wrote here: https://github.com/Larz60p/PyPiInfo
nilamo likes this post
Quote
#9
(Dec-21-2016, 01:34 PM)Larz60+ Wrote: the problem is in the package.
There is nothing either of us can do.
You need to contact the author (email and name available on Pypi) https://pypi.python.org/pypi/LiveWires/2.1
use the XML-RPC command:
release_data = ppi.get_release_data('LiveWires', '2.1')
You can use the wrapper I wrote here: https://github.com/Larz60p/PyPiInfo

thank you a lot, but it is look like nobady can help me, this package simply don t work
Quote
#10
(Dec-21-2016, 01:34 PM)Larz60+ Wrote: the problem is in the package.
There is nothing either of us can do.
You need to contact the author (email and name available on Pypi) https://pypi.python.org/pypi/LiveWires/2.1

OP, read the whole post.  Larz60 lets you know what you can do.
It's dangerous to go alone!  Take this: https://docs.python.org/3/library/index.html
HackerRank seems neat: https://www.hackerrank.com/nilamo
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Pygames image Strofix 0 16 3 hours ago
Last Post: Strofix

Forum Jump:


Users browsing this thread: 1 Guest(s)