No module named sqlalchemy

2,335 views
Skip to first unread message

Kiffin Gish

unread,
Feb 17, 2009, 3:18:30 PM2/17/09
to bes...@googlegroups.com
While trying to setup the Bespin Python Server, I followed verbatim the instructions in the README.txt and ran 'paver create_db' but got the following error:

'ImportError: No module named sqlalchemy'

Did I miss something?

--
Kiffin Gish
Gouda, The Netherlands
http://www.linkedin.com/in/kiffin

Kevin Dangoor

unread,
Feb 17, 2009, 3:25:49 PM2/17/09
to bes...@googlegroups.com
On Tue, Feb 17, 2009 at 3:18 PM, Kiffin Gish <kiffi...@gmail.com> wrote:
> While trying to setup the Bespin Python Server, I followed verbatim the
> instructions in the README.txt and ran 'paver create_db' but got the
> following error:
>
> 'ImportError: No module named sqlalchemy'
>
> Did I miss something?

It sounds like something failed to install. If you're on a linux
system, make sure you have the python-devel package installed (on the
Mac, you'll need Xcode). If that's what you're missing, you can rerun
the bootstrap script once you've installed the needed piece.

If that's not the problem, then you'll likely have a pip-log.txt file
that will have some clues as to what went wrong at the end of the
file.

Good luck!

Kevin


--
Kevin Dangoor

work: http://labs.mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com

Xantus

unread,
Feb 19, 2009, 6:16:03 AM2/19/09
to Bespin
FYI, the package is 'python-dev' on Ubuntu

David

On Feb 17, 12:25 pm, Kevin Dangoor <dang...@gmail.com> wrote:

Kiffin

unread,
Feb 19, 2009, 8:49:27 AM2/19/09
to Bespin
I have Ubuntu 8.10 and once I installed 'python-dev' everything worked
fine, thanks! Maybe the README.txt file needs updating?

Kevin Dangoor

unread,
Feb 19, 2009, 9:01:41 AM2/19/09
to bes...@googlegroups.com
On Thu, Feb 19, 2009 at 8:49 AM, Kiffin <kiffi...@gmail.com> wrote:
>
> I have Ubuntu 8.10 and once I installed 'python-dev' everything worked
> fine, thanks! Maybe the README.txt file needs updating?

I've updated the README for the next time I push to hg.mozilla.org.
I've highlighted
the line about installing python-dev because I think some people have missed it.

Barttos

unread,
Feb 19, 2009, 10:35:53 AM2/19/09
to Bespin
yes :-) readme need it, first time i installed all modules manually

On Feb 19, 4:01 pm, Kevin Dangoor <dang...@gmail.com> wrote:

membiblio

unread,
Feb 24, 2009, 10:09:19 PM2/24/09
to Bespin
I too have tried to install the bespin python server following the
instructions in the readme.txt and after running python create_db get
the same 'ImportError: No module named sqlalchemy' except:

I am running CentOS 5 and have already installed python-devel
successfully.

In my pip-log.txt I find:

raise InstallationError(
InstallationError: Could not install requirement httplib2 (from -r
requirements.txt (line 11)) because of HTTP error HTTP Error 404: Not
Found for URL http://bitworking.org/projects/httplib2/dist/httplib2-0.4.0.tar.gz
(from http://pypi.python.org/simple/httplib2)

Does anyone have a suggestion?

Thank you

Kevin Dangoor

unread,
Feb 25, 2009, 11:28:09 AM2/25/09
to bes...@googlegroups.com
On Tue, Feb 24, 2009 at 10:09 PM, membiblio <newm...@gmail.com> wrote:
>    raise InstallationError(
> InstallationError: Could not install requirement httplib2 (from -r
> requirements.txt (line 11)) because of HTTP error HTTP Error 404: Not
> Found for URL http://bitworking.org/projects/httplib2/dist/httplib2-0.4.0.tar.gz
> (from http://pypi.python.org/simple/httplib2)

It looks like httplib2 has a broken download URL in the Python Package Index.

I've changed the requirements file to point to the real location of
httplib2 at googlecode.

membiblio

unread,
Feb 28, 2009, 10:25:08 PM2/28/09
to Bespin
Kevin, Thank you for updating the broken url. I downloaded the latest
package off the bespin release site and this is what I now get:

(bespin)[x&y bespin]$ paver dojo create_db
---> pavement.dojo


Captured Task Output:
---------------------

---> pavement.dojo
Traceback (most recent call last):
File "/home/newmanrf/bespin/bespin/lib/python2.4/site-packages/
Paver-1.0a2-py2.4.egg/paver/tasks.py", line 158, in call_task
return do_task()
File "/home/newmanrf/bespin/bespin/lib/python2.4/site-packages/
Paver-1.0a2-py2.4.egg/paver/tasks.py", line 155, in do_task
return func(**kw)
File "pavement.py", line 445, in dojo
destfile = path(urlparse(options.download_url).path)
AttributeError: 'tuple' object has no attribute 'path'


Does anyone have a suggestion for this issue?

Thank you


Kevin Dangoor

unread,
Feb 28, 2009, 10:27:04 PM2/28/09
to bes...@googlegroups.com
On Sat, Feb 28, 2009 at 10:25 PM, membiblio <newm...@gmail.com> wrote:
>  File "/home/newmanrf/bespin/bespin/lib/python2.4/site-packages/
> Paver-1.0a2-py2.4.egg/paver/tasks.py", line 155, in do_task
>    return func(**kw)
>  File "pavement.py", line 445, in dojo
>    destfile = path(urlparse(options.download_url).path)
> AttributeError: 'tuple' object has no attribute 'path'
>
>
> Does anyone have a suggestion for this issue?

Bespin requires Python 2.5

adojaan

unread,
Mar 2, 2009, 2:08:56 AM3/2/09
to Bespin
The same here.
---> pavement.create_db
Traceback (most recent call last):
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 158, in call_task
return do_task()
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 155, in do_task
return func(**kw)
File "pavement.py", line 175, in create_db
from bespin import config, model, db_versions
File "/home/kristjan/htdocs/bespin-6969bcea4c23/backend/python/
bespin/config.py", line 33, in <module>
from sqlalchemy import create_engine
ImportError: No module named sqlalchemy

Sqlalchemy is installed 0-4-6-1
Python ins installed 2.5 (also 2.4 is present as I see from synaptic,
should be removed?)

Best,
Kristjan Adojaan

adojaan

unread,
Mar 2, 2009, 2:08:56 AM3/2/09
to Bespin
The same here.
---> pavement.create_db
Traceback (most recent call last):
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 158, in call_task
return do_task()
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 155, in do_task
return func(**kw)
File "pavement.py", line 175, in create_db
from bespin import config, model, db_versions
File "/home/kristjan/htdocs/bespin-6969bcea4c23/backend/python/
bespin/config.py", line 33, in <module>
from sqlalchemy import create_engine
ImportError: No module named sqlalchemy

adojaan

unread,
Mar 2, 2009, 2:08:56 AM3/2/09
to Bespin
The same here.
---> pavement.create_db
Traceback (most recent call last):
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 158, in call_task
return do_task()
File "/home/kristjan/htdocs/bespin-6969bcea4c23/lib/python2.5/site-
packages/Paver-1.0a2-py2.5.egg/paver/tasks.py", line 155, in do_task
return func(**kw)
File "pavement.py", line 175, in create_db
from bespin import config, model, db_versions
File "/home/kristjan/htdocs/bespin-6969bcea4c23/backend/python/
bespin/config.py", line 33, in <module>
from sqlalchemy import create_engine
ImportError: No module named sqlalchemy

Kevin Dangoor

unread,
Mar 2, 2009, 9:41:10 AM3/2/09
to bes...@googlegroups.com

You need not remove Python 2.4, as long as you make sure you run
bootstrap.py with Python 2.5.

Basically, "no module named sqlalchemy" means that it didn't install
sqlalchemy and likely failed somewhere before that. Take a look at
pip-log.txt and that should help narrow down what didn't install and
why.

Reply all
Reply to author
Forward
0 new messages