• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
cropped CodeSpecialist e1592127475203

Code Specialist

Code and Programming Blog

  • Home
  • Clean Code
  • Code Principles
  • Code Interview
  • Python

PyYAML 5.3.1 Github Actions Error

Home » Errors » PyYAML 5.3.1 Github Actions Error

July 26, 2020 by Yannic Schröer Leave a Comment

FileNotFoundError: [Errno 2] No such file or directory: '/opt/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/PyYAML-5.3.1-py3.7-linux-x86_64.egg

If you encounter this error on Github it is possibly because Github recently updated from Python 3.7.7 to Python 3.7.8 and PyYAML produces an error therein. The easiest way to fix this is by changing the used Python version explicitly back to 3.7.7.

Old config:

Hands-on with GitHub Actions: (Affiliate)

We now explicitly use Python 3.7.7 in row 11 and actions/setup_python@v2 in row 17:

If this didn’t fix your issue please leave a comment so we can look further into it.

yannic schroeer
Yannic Schröer

I am a developer and entrepreneur from Germany. I chose studying computer science because I love building things. I am of the opinion that there isn’t one truth (especially for computer science concepts) and whoever claims so isn’t that trustworthy in my eyes. I constantly try to improve things and myself. In my spare time I support businesses by offering them most of my services for free. Beside that I am kind of addict to e-learning courses.

Our Book Recommendations on Python (Affiliate)

Category iconErrors,  Python Tag iconGithub Actions,  PyYAML

Related Posts

pkg resources preview
No matching distribution found for pkg-resources==0.0.0
March 25, 2021
decoration on dark grey table
Decorators in Python
February 23, 2021
person using white and silver computer keyboard
New Syntax Features in Python 3.9
February 12, 2021

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published.

Primary Sidebar

Search

Categories

  • Algorithms
  • Cloud
  • Code Interview
  • Code Principles
  • Environment
  • Errors
  • Hardware
  • Learn to Code
  • Nice to know
  • Object Orientation
  • Python
  • Technical Background
  • Write Better Code

Tags

Alternative (1) Announcement (1) Clean Code (7) Cloud Foundry (1) Cloud Native (1) Code (1) Code Interview Question (2) Code Philosophy (1) Comments (1) Computer Graphics (2) Concurrency (1) Control Characters (1) Data Science (1) Data Structures (1) decorators (2) dictionaries (3) Easter Eggs (1) funny (1) Github Actions (1) Marching Cubes (1) Meshing (1) Microservice (1) Nice to know (1) Parallelisation (1) Programming Facts (1) Pythonic (3) PyYAML (1) Readability (4) Simple is good (2) Software Engineering (2) switch (1) Syntax (1) Tricks (1) type hints (1) Ubuntu 20.04 (1) Underscores (1) Unix (1) Video (1) Virtualization with Windows (1)

Footer

Recent Posts

  • Cloud Foundry Components
  • No matching distribution found for pkg-resources==0.0.0
  • SOLID Principles with Python Code Examples
  • 5 Hardware Ideas to Upgrade your Programming Experience
  • 5 Programming facts every programmer must know

Tags

Alternative Announcement Clean Code Cloud Foundry Cloud Native Code Code Interview Question Code Philosophy Comments Computer Graphics Concurrency Control Characters Data Science Data Structures decorators dictionaries Easter Eggs funny Github Actions Marching Cubes Meshing Microservice Nice to know Parallelisation Programming Facts Pythonic PyYAML Readability Simple is good Software Engineering switch Syntax Tricks type hints Ubuntu 20.04 Underscores Unix Video Virtualization with Windows

Categories

  • Algorithms
  • Cloud
  • Code Interview
  • Code Principles
  • Environment
  • Errors
  • Hardware
  • Learn to Code
  • Nice to know
  • Object Orientation
  • Python
  • Technical Background
  • Write Better Code

Recent Comments

  • Nina on Bubble Sort in Python and how to Visualize it
  • Bhan on Concurrency in Python

Follow Us

  • Facebook
  • Instagram
  • Pinterest
  • Twitter

Quicklinks

  • About us
  • Become a writer
  • Guest Post

Privacy Policy | Legal Notice | Contact

 

All rights reserved © 2020-2021 code-specialist.com