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

  • SEARCH
  • Home
  • 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 6986555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:49:27+00:00 2026-05-27T18:49:27+00:00

I am new to python and Pyramid. I have installed pyramid today and i

  • 0

I am new to python and Pyramid.
I have installed pyramid today and i already have python 2.7.1 pre-installed on my mac machine. I have installed pyramid with the instructions mentioned in the official website. I have used the virtualenv with nositepackages as mentioned in the website and i installed pyramid in my /users/sreekanth directory

After installing i tried my first sample program as mentioned in the docs.

When I try to run the program i am getting an error which is as below.

sreekanths-MacBook-Pro:tasks Sreekanth$ ../bin/python2.7 tasks.py
Traceback (most recent call last):
  File "tasks.py", line 87, in <module>
    config.scan()
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/config/__init__.py", line 893, in scan
    scanner.scan(package, categories=categories, onerror=onerror)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/venusian-1.0a2-py2.7.egg/venusian/__init__.py", line 95, in scan
    invoke(name, ob)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/venusian-1.0a2-py2.7.egg/venusian/__init__.py", line 92, in invoke
    callback(self, name, ob)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/view.py", line 210, in callback
    config.add_view(view=ob, **settings)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/config/views.py", line 575, in wrapper
    return wrapped(*arg, **defaults)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/config/util.py", line 59, in wrapper
    result = wrapped(self, *arg, **kw)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/config/views.py", line 926, in add_view
    context = self.maybe_dotted(context)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/config/__init__.py", line 808, in maybe_dotted
    return self.name_resolver.maybe_resolve(dotted)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/path.py", line 318, in maybe_resolve
    return self._resolve(dotted, package)
  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/path.py", line 325, in _resolve
    return self._zope_dottedname_style(dotted, package)


  File "/Users/Sreekanth/env/lib/python2.7/site-packages/pyramid-1.3a3-py2.7.egg/pyramid/path.py", line 374, in _zope_dottedname_style
    __import__(used)
ImportError: No module named execptions

And also i am not able to import pyramid module from the python shell. Below is the error message i am getting.

sreekanths-MacBook-Pro:bin Sreekanth$ pwd
/Users/Sreekanth/env/bin
sreekanths-MacBook-Pro:bin Sreekanth$ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyramid
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyramid

Could someone kindly explain me what i am missing and how I can make this work.

  • 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-05-27T18:49:28+00:00Added an answer on May 27, 2026 at 6:49 pm

    The first error indicates you have a typo in your program. Most likely, you wrote

    from pyramid.execptions import NotFound
    

    instead of

    from pyramid.exceptions import NotFound
    #              ^^
    

    And since you’ve installed pylons/pyramid into a virtualenv, you need to activate it first, with source bin/activate in the command line. That will set the correct python path, which you can check by examining sys.path in a python console.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed the new python release and would like to run .py files
I need to run some code on a Linux machine with Python 2.3.4 pre-installed.
I am really new to Python and I have been looking for an example
I'm new to python, and have a list of longs which I want to
I re-installed Python 2.7 with the official DMG installer from python.org because I needed
For a new (Python) web application with the Pyramid web framework, I'd like to
I am new to python, I have changed my path to point to the
I'm fairly new to python and pyramid framework. Recently I was introduced to SQLSoup
I'm a new Python programmer who is making the leap from 2.6.4 to 3.1.1.
I'm a new Python programmer who is having a little trouble using 'self' in

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.