Python Forum
Running python scripts from github etc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running python scripts from github etc
#1
Hi.
I sometimes find some python scripts on github for example that I want to try out, but the documentation doesn't include instructions how to run the script. For me as a newbie I don't where to turn, maybe you can point me in the right direction?

So for example, i want to run this https://github.com/molobrakos/tellsticknet .
I've downloaded the source as a zip file and extracted it, and I've tried invoking the different py-files from console by typing python3 xxx.py but I just run into "no module named '...'" errors.
How do I get these missing modules?
Reply
#2
(Mar-03-2021, 08:18 PM)pacmyc Wrote: Hi.
I sometimes find some python scripts on github for example that I want to try out, but the documentation doesn't include instructions how to run the script. For me as a newbie I don't where to turn, maybe you can point me in the right direction?

So for example, i want to run this https://github.com/molobrakos/tellsticknet .
I've downloaded the source as a zip file and extracted it, and I've tried invoking the different py-files from console by typing python3 xxx.py but I just run into "no module named '...'" errors.
How do I get these missing modules?
Well, if you told us what the module names were, it might help. Are they modules of the files you downloaded, or standard modules?
Reply
#3
Repo has requirements.txt and there are following modules listed:

docopt
setuptools
requests
pyyaml
hbmqtt
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#4
Yes, where do I get them?
Reply
#5
(Mar-03-2021, 08:31 PM)perfringo Wrote: Repo has requirements.txt and there are following modules listed:

docopt
setuptools
requests
pyyaml
hbmqtt

Yes, where do I get them?
Reply
#6
I did "pip3 install xxx " for all the requirements but still get errors;

~/tellstick/tellsticknet-master/tellsticknet$ python3 discovery.py
Traceback (most recent call last):
File "discovery.py", line 7, in <module>
from .util import sock_sendto, sock_recvfrom
ImportError: attempted relative import with no known parent package



~/tellstick/tellsticknet-master/tellsticknet$ python3 __main__.py
Traceback (most recent call last):
File "__main__.py", line 39, in <module>
from tellsticknet import __version__, const
ModuleNotFoundError: No module named 'tellsticknet'
Reply
#7
There is setup.py in Repo,that usually mean that is also on PyPi.
tellsticknet 0.1.2
The you install with pip install tellsticknet

There is an issue Any development still on?
So it may not work,they discuss alternatives there.
pacmyc likes this post
Reply
#8
Thanx!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to us python.exe from our network to run scripts cubangt 3 859 Aug-17-2023, 07:53 PM
Last Post: deanhystad
  Advice for installing python app from github ? Adi44 6 1,179 Aug-07-2023, 06:34 PM
Last Post: snippsat
  How can I download Python files from GitHub? bitcoin10mil 2 2,822 Aug-26-2020, 09:03 PM
Last Post: Axel_Erfurt
  Running scripts and location of saved interpreted user-defined classes and functions leodavinci1990 3 2,511 Aug-25-2020, 03:43 AM
Last Post: micseydel
  Reading SQL scripts from excel file and run it using python saravanatn 2 2,547 Aug-23-2020, 04:49 PM
Last Post: saravanatn
  No Scripts File present after python installation ag2207 5 4,880 Jul-30-2020, 11:11 AM
Last Post: buran
  configure Github with python yellareddy 1 8,728 Apr-20-2020, 05:37 PM
Last Post: buran
  Running two scripts and more.... Brian_c 0 1,507 Mar-25-2020, 10:31 PM
Last Post: Brian_c
  How to merge my two python scripts in one ? HK2432 0 2,146 Jan-31-2020, 10:16 PM
Last Post: HK2432
  How can I Open and close .py file from python scripts SayHiii 9 5,730 Dec-17-2019, 06:10 AM
Last Post: Malt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020