votes up 3

Invalid egg file name: (param1)

Package:
Exception Class:
WheelError

Raise code

def egg2wheel(egg_path, dest_dir):
    filename = os.path.basename(egg_path)
    match = egg_info_re.match(filename)
    if not match:
        raise WheelError('Invalid egg file name: {}'.format(filename))

    egg_info = match.groupdict()
    dir = tempfile.mkdtemp(suffix="_e2w")
    if os.path.isfile(egg_path):
        # assume we have a bdist_egg otherwise
🙏 Scream for help to Ukraine
Today, 2nd July 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 1 votes down

To be compiled to the wheel, the .egg filename must match the next format:

(?P<name>.+?)-(?P<ver>.+?)(-(?P<pyver>py\d\.\d+)(-(?P<arch>.+?))?)?.egg$

Examples of correct name:

example-0.1-py3.5.egg

The arch param is missing in the example and it is ok, because he is optional, as you can see in RegExp (it has ?). However, filename can also include architecture if it has some native architecture compatible dependencies inside:

visionegg-1.2.1-py2.5-win32.egg

The info:

  • "Egg" is a single file distribution format for Python projects.
  • They hold some metadata such as licensing details, release dependencies, etc.
  • The .egg file is a .zip file. So if you change the extension to “zip”, you can extract the archive.
  • if you have some .egg file, you could install it as a package using easy_install the command
  • Read how to create an egg in python to try it out

May 08, 2021 ivictbor answer

Add a possible fix

Please authorize to post fix