Results 1 to 3 of 3

Thread: When deployed to Heroku, python setup.py egg info did not run successfully.

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2022-07
    Posts
    1
    Login to Give a bone
    0

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

    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 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:
      Collecting pypaystack==1.24
    remote:          Downloading pypaystack-1.24.tar.gz (5.4 kB)
    remote:          Preparing metadata (setup.py): started
    remote:          Preparing metadata (setup.py): finished with status 'error'
    remote:          error: subprocess-exited-with-error
    remote:
    remote:          × python setup.py 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/setup.py", line 2, in <module>
    remote:                  from pypaystack import version
    remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/__init__.py", line 3, in <module>
    remote:                  from .customers import Customer
    remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/customers.py", line 1, in <module>
    remote:                  from .baseapi import BaseAPI
    remote:                File "/tmp/pip-install-h6ay7jb3/pypaystack_2a3b97aa3d934da4b6c7a7d81a4a6ad2/pypaystack/baseapi.py", line 2, in <module>
    remote:                  import requests
    remote:              ModuleNotFoundError: No module named 'requests'
    remote:              [end of output]
    remote:
    remote:          note: This error originates from a subprocess, and is likely not a problem with pip.
    remote:        error: metadata-generation-failed
    remote:
    remote:        × Encountered error while generating package metadata.
    remote:        ╰─> See above for output.
    remote:
    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.
    Thanks!

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: When deployed to Heroku, python setup.py egg info did not run successfully.

    I'm not saying nobody here will not help you, but I'm not certain the user's of this forum do much work in web development or use Heroku in their daily work.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Woo! Hoo! my 1st post
    Join Date
    2022-09
    Posts
    1
    Login to Give a bone
    0

    Default Re: When deployed to Heroku, python setup.py egg info did not run successfully.

    Requests is not a built in module (does not come with the default python installation), so you will have to install module:

    Windows

    Use pip install requests (or pip3 install requests for python3) if you have pip installed and Pip.exe added to the Path Environment Variable. If pip is installed but not in your path you can use python -m pip install requests (or python3 -m pip install requests for python3)

    Alternatively from a cmd prompt, use > Path\easy_install.exe requests, where Path is your Python*\Scripts folder, if it was installed. (For example: C:\Python32\Scripts)

    If you manually want to add a library to a windows machine, you can download the compressed library, uncompress it, and then place it into the Lib\site-packages folder of your python path. (For example: C:\Python27\Lib\site-packages)


    Linux

    For Debian/Ubuntu Python2: sudo apt-get install python-requests

    For Debian/Ubuntu Python3: sudo apt-get install python3-requests

Similar Threads

  1. CP319-2: Python Hype: Introduction to Python Programming with Autodesk Maya
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2013-05-05, 01:36 PM
  2. Has any deployed Tririga lately?
    By melcatcox in forum Facilities Management In Practice
    Replies: 3
    Last Post: 2010-05-25, 01:13 PM
  3. Share parameters - Not successfully saved
    By agustnj.187972 in forum Revit Architecture - General
    Replies: 3
    Last Post: 2009-09-02, 12:20 PM
  4. Replies: 3
    Last Post: 2007-07-13, 12:54 PM
  5. Toolbar images not being successfully applied to custom toolbar
    By tbrown.113150 in forum AutoCAD CUI Menus
    Replies: 3
    Last Post: 2007-04-06, 05:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •