When deployed to Heroku, python setup.py egg info did not run successf

When deployed to Heroku, python setup.py egg info did not run successf - Python - Programmation

Marsh Posté le 14-07-2022 à 12:05:58    

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. I am highly interested in programming, which is why I set a goal for myself to learn Python. And I'm facing some issues! 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.

Code :
  1. Collecting pypaystack==1.24
  2. remote:          Downloading pypaystack-1.24.tar.gz (5.4 kB)
  3. remote:          Preparing metadata (setup.py): started
  4. remote:          Preparing metadata (setup.py): finished with status 'error'
  5. remote:          error: subprocess-exited-with-error
  6. remote:
  7. remote:          × python setup.py egg_info did not run successfully.
  8. remote:          │ exit code: 1
  9. remote:          ╰─> [12 lines of output]
  10. remote:              Traceback (most recent call last):
  11. remote:                File "<string>", line 2, in <module>
  12. remote:                File "<pip-setuptools-caller>", line 34, in <module>
  13. remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/setup.py", line 2, in <module>
  14. remote:                  from pypaystack import version
  15. remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/__init__.py", line 3, in <module>
  16. remote:                  from .customers import Customer
  17. remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/customers.py", line 1, in <module>
  18. remote:                  from .baseapi import BaseAPI
  19. remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/baseapi.py", line 2, in <module>
  20. remote:                  import requests
  21. remote:              ModuleNotFoundError: No module named 'requests'
  22. remote:              [end of output]
  23. remote:
  24. remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
  25. remote:        error: metadata-generation-failed
  26. remote:
  27. remote:        × Encountered error while generating package metadata.
  28. remote:        ╰─> See above for output.
  29. remote:
  30. remote:        note: This is an issue with the package mentioned above, not pip.
  31. remote:        hint: See above for details.
  32. 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.
Thanks!

Reply

Marsh Posté le 14-07-2022 à 12:05:58   

Reply

Marsh Posté le 15-07-2022 à 16:02:28    

Hello, welcome to the forum. Please note that this is a french forum however, if you want to write in english you might want to choose another forum or something like stackoverflow. ;)

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed