Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors trying to run code
#1
I'm very new to python and received some help to create the code, but it isn't super complicated. I am receiving the following errors when trying to run the code.

Error:
File "C:\Users\Me\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\Me\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Me\Documents\GameProgramFolder\py_game\__main__.py", line 85, in <module> main() File "C:\Users\Me\Documents\GameProgramFolder\py_game\__main__.py", line 64, in main module = __import__(os.path.splitext(filename)[0]) File "C:\Users\Me\Documents\GameProgramFolder\py_game\py34.py", line 35, in exec_module exec(code, module.__dict__) File "C:\Users\Me\Documents\GameProgramFolder\Scripts\fight.py", line 3, in <module> import mylibrary File "C:\Users\Me\Documents\GameProgramFolder\py_game\py34.py", line 35, in exec_module exec(code, module.__dict__) File "C:\Users\Me\Documents\GameProgramFolder\py_game\mylibrary.py", line 5, in <module> import requests ModuleNotFoundError: No module named 'requests'
I tried searching for a solution. I added the path environment, uninstalled python and reinstalled, and tried this solution: https://bugs.python.org/msg353736. I don't know enough about what these errors mean to search for a better solution.
Reply


Messages In This Thread
Errors trying to run code - by ziggyztz - Nov-03-2019, 02:40 AM
RE: Errors trying to run code - by Larz60+ - Nov-03-2019, 03:16 AM
RE: Errors trying to run code - by ziggyztz - Nov-03-2019, 03:48 AM
RE: Errors trying to run code - by newbieAuggie2019 - Nov-03-2019, 04:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Are there errors in the code for my coin toss systems? Matlibplot is too perfect . Coolkat 0 378 Nov-13-2023, 11:54 AM
Last Post: Coolkat
  My code won't say Player wins or computer wins. No errors. its_a_meLuigi64 2 1,639 Dec-01-2021, 04:43 PM
Last Post: its_a_meLuigi64
  Rmarkdown opened by python code - errors Rav013 0 2,096 Apr-27-2021, 03:13 PM
Last Post: Rav013
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 4,649 Apr-13-2021, 01:26 PM
Last Post: amirian
  2 errors in code numbnumb54 2 2,037 Jul-24-2020, 02:28 PM
Last Post: Marbelous
  Code errors rhyjom 0 1,469 Jun-21-2020, 04:50 PM
Last Post: rhyjom
  Errors in code coolcassie 2 2,132 Dec-03-2019, 12:10 AM
Last Post: coolcassie
  errors in code sylvie1987100 3 2,326 Sep-11-2019, 12:54 PM
Last Post: sylvie1987100
  Decorator toy code throws syntax errors kevinxhi 3 3,587 Sep-04-2017, 03:01 AM
Last Post: kevinxhi

Forum Jump:

User Panel Messages

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