Categories > Coding > Python >

When deployed to Heroku, python egg info did not run successfully.

New Reply


Senior Developer

Posts: 2

Threads: 2

Joined: Jul, 2022

Reputation: 1

  • 0


Hi everybody,
I joined this group to learn more about web development. I am familiar with Java, C, and HTML, and am actively learning CSS and Python. And I'm facing some issue! Can somebody help me?

After deploying and hosting my website, I upgraded my pip version. Then I installed the pypaystack package. When I try to push to Heroku, I get the error shown below. In the development stage, the project is running smoothly.

  Collecting pypaystack==1.24
remote:          Downloading pypaystack-1.24.tar.gz (5.4 kB)
remote:          Preparing metadata ( started
remote:          Preparing metadata ( finished with status 'error'
remote:          error: subprocess-exited-with-error
remote:          × python egg_info did not run successfully.
remote:          │ exit code: 1
remote:          ╰─> [12 lines of output]
remote:              Traceback (most recent call last):
remote:                File "<string>", line 2, in <module>
remote:                File "<pip-setuptools-caller>", line 34, in <module>
remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/", line 2, in <module>
remote:                  from pypaystack import version
remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/", line 3, in <module>
remote:                  from .customers import Customer
remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/", line 1, in <module>
remote:                  from .baseapi import BaseAPI
remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/", line 2, in <module>
remote:                  import requests
remote:              ModuleNotFoundError: No module named 'requests'
remote:              [end of output]
remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
remote:        error: metadata-generation-failed
remote:        × Encountered error while generating package metadata.
remote:        ╰─> See above for output.
remote:        note: This is an issue with the package mentioned above, not pip.
remote:        hint: See above for details.
remote:  !     Push rejected, failed to compile Python app.

What can be the issue? I even created a new virtual environment but the error remains.
I'm hoping that this community will assist me on my path.


Novaline Owner

moderator Mention

Posts: 1064

Threads: 34

Joined: Jul, 2021

Reputation: 41

  • 0


ModuleNotFoundError: No module named 'requests'


You have to add requests to your requirements.txt file


i love femboys


Posts: 575

Threads: 30

Joined: Mar, 2021

Reputation: 14

  • 0


nice pfp lol

Posts: 558

Threads: 46

Joined: Apr, 2022

Reputation: 18

  • 0


Simple, it looks as if you need to run

import requests


Skid Buster

patron Mention

Posts: 166

Threads: 7

Joined: Jul, 2022

Reputation: 4

  • 0


(Insert Forum Signature Here)




Posts: 1125

Threads: 126

Joined: Apr, 2021

Reputation: 0

  • 0


Hello, welcome to the WRD Community!

As for the error you're faicng, there are 2 solutions:


1. Add "import requests" to your code

2. Use "pip install requests" 


Thats all. Hope it works! 


New Reply

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )