Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8517927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:50:34+00:00 2026-06-11T05:50:34+00:00

I am running BeautifulSoup on python platform on openshift . I tried to set

  • 0

I am running BeautifulSoup on python platform on openshift. I tried to set the BeautifulSoup>=4.0 in the “install_requires” section in the setup.py file, but it can not search for BeautifulSoup 4, rather it install BeautifulSoup 3.2.1, but for my project I need to install BeautifulSoup >= 4.0. So how to get the latest package of BeautifulSoup installed?

Here is my setup.py` file looks.

#!/usr/bin/env python

from setuptools import setup

setup(
    name='YourAppName',
    version='1.0',
    description='OpenShift App',
    author='Your Name',
    author_email='example@example.com',
    url='http://www.python.org/sigs/distutils-sig/',
    install_requires=['Django>=1.3', 'BeautifulSoup>=4.0', 'robotexclusionrulesparser',],
)

Here is the error looks like:

remote: Installed /var/lib/stickshift/1b1a7d93656c4782a58fab6c6df2d226/python-2.6/virtenv
remote: Processing dependencies for YourAppName==1.0
remote: Searching for BeautifulSoup>=4.0
remote: Reading http://pypi.python.org/simple/BeautifulSoup/
remote: Reading http://www.crummy.com/software/BeautifulSoup/
remote: Reading http://www.crummy.com/software/BeautifulSoup/download/
remote: Reading http://www.crummy.com/software/BeautifulSoup/bs3/
remote: Reading http://www.crummy.com/software/BeautifulSoup/bs3/download/
remote: No local packages or download links found for BeautifulSoup>=4.0
remote: Best match: None
remote: Traceback (most recent call last):
remote:   File "/var/lib/stickshift/1b1a7d93656c4782a58fab6c6df2d226/app-root/runtime/repo/setup.py", line 12, in <module>
remote:     install_requires=['Django>=1.3', 'BeautifulSoup>=4.0', 'robotexclusionrulesparser',],
remote:   File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
remote:     dist.run_commands()
remote:   File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
remote:     self.run_command(cmd)
remote:   File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
remote:     cmd_obj.run()
remote:   File "build/bdist.linux-i686/egg/setuptools/command/develop.py", line 27, in run
remote:   File "build/bdist.linux-i686/egg/setuptools/command/develop.py", line 102, in install_for_development
remote:   File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 519, in process_distribution
remote:     
remote:   File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
remote:     distributions, errors = working_set.find_plugins(
remote:   File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
remote:     
remote:   File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
remote:     raise TypeError("Can't add %r to environment" % (other,))
remote:   File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 434, in easy_install
remote:     
remote:   File "build/bdist.linux-i686/egg/setuptools/package_index.py", line 475, in fetch_distribution
remote: AttributeError: 'NoneType' object has no attribute 'clone'

Any help please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:50:36+00:00Added an answer on June 11, 2026 at 5:50 am

    As per the upstream project’s documentation apparently version 4.x needs to be referenced via a different naming convention for pip installs.

    http://www.crummy.com/software/BeautifulSoup/#Download

    I setup a demo app to test and set my setup.py to contain the following:

    from setuptools import setup

    setup(name='YourAppName',
          version='1.0',
          description='OpenShift App',
          author='Your Name',
          author_email='example@example.com',
          url='http://www.python.org/sigs/distutils-sig/',
          install_requires=['Django>=1.3','beautifulsoup4'],
         )
    

    Then a git commit and push resulted in the following snippet.

    remote: Searching for beautifulsoup4
    remote: Reading http://pypi.python.org/simple/beautifulsoup4/remote: Reading http://www.crummy.com/software/BeautifulSoup/bs4/
    remote: Reading http://www.crummy.com/software/BeautifulSoup/bs4/download/
    remote: Best match: beautifulsoup4 4.1.3
    remote: Downloading http://www.crummy.com/software/BeautifulSoup/bs4/download/beautifulsoup4-4.1.3.tar.gz
    remote: Processing beautifulsoup4-4.1.3.tar.gz
    remote: Running beautifulsoup4-4.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JgA5HZ/beautifulsoup4-4.1.3/egg-dist-tmp-1vIJ2i
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im running python 3.1.2 on my ubuntu 10.04 which version of BeautifulSoup i need
I'm using BeautifulSoup to extract some text from an HTML but I just can't
Running this program is printing forked! 7 times. Can someone explain how forked! is
Running SQL Server 2008 (not R2). I have a few reports that have URLs
Running this in python will result in a WindowsError stating it cannot find the
Running Nh 3.2 using SQLite throws the following exception: ---> NHibernate.HibernateException: Could not create
Running Rails 3.1.3... I'll use a simple example of nested associations (not sure if
running: ruby 1.9.3p0 with Rails 3.2.1 Trying to use rspec but when I try
Running Linux (Ubuntu 11.10), the same regular expression works in JavaScript, but fails when
Running a gwtp-sample-basic-spring app in Eclipse, I see the welcome page, but after some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.