On Windows, I am trying to start Aspen by issuing the 'aspen' command.
Below is the sequence of commands:
c:\gheat-0.2>python
Python 2.5.4...
Type "help"...
>>> import aspen
>>> aspen
<module 'aspen' from
'c:\python25\lib\site-packages\aspen-0.8-py2.5.egg\aspen
\__init__.pyc'>
So instead of starting the server, Python simply reports the location
of the module. How can I start Aspen on Windows?
Also, am I correct in understanding the concept of a home directory in
Aspen? Can any directory be designated a home directory simply by
issuing the aspen command from within it? Or must a home directory be
placed within the aspen/apps directory? Must I name a home directory
similar to www.example.com?
Thanks,
Mike
On Mar 24 2008, 2:45 pm, Chad Whitacre <c...@zetaweb.com> wrote:
> Need more info. What is the actual command you're giving in thewindowsshell?
> chad
> Ben Edwards wrote:
> > Mr. Whitacre,
> > I am a graduate student at the University of New Mexico studying crime
> > here in the city of Albuquerque. In an effort to be able to map areas of
> > the city where crime occurs I came across your gheat project. I was
> > immediately impressed, and went about trying to get it up and running
> > with my own data. I am however, having some trouble getting the Aspen
> > web server up and running inWindows, and since you have mentioned that
> > you had gheat running inwindowsI was hoping you could lend a hand.
> > Python and PIL have been installed correctly, but when I got to run the
> > aspen script, the one with the simple:
> > import aspen
> > aspen.main()
> > Python errors out saying:
> > C:\Python25\python.exe: can't open file '': [Errno 2] No such file or
> > directory
> > Being a computer engineer in a former life, and vaguely familiar with
> > python, I have tried to poke around in some of the aspen files but can't
> > seem to locate the offending script. Any help you could provide would be
> > fantastic, but if you can't get to it I understand as well and I'll keep
> > trying to hack away at it. Thank you in advance.
You need to run the aspen script from the Windows command-line. This script is installed when you install aspen, I believe into C:\Python25\Scripts. What you've done instead is to run Python from the windows command-line, and then baldly assert the aspen module (kind of a no-op).
Try:
C:\> python c:\python25\scripts\aspen.bat
Or something like that ... I'll get aspen set up here on Windows and then I can help you further. But that should point you in the right direction.
> Can any directory be designated a home directory simply by
> issuing the aspen command from within it?
Yes, bingo.
> Or must a home directory be placed within the aspen/apps
> directory?
> So instead of starting the server, Python simply reports the location
> of the module. How can I start Aspen on Windows?
> Also, am I correct in understanding the concept of a home directory in
> Aspen? Can any directory be designated a home directory simply by
> issuing the aspen command from within it? Or must a home directory be
> placed within the aspen/apps directory? Must I name a home directory
> similar to www.example.com?
> Thanks,
> Mike
> On Mar 24 2008, 2:45 pm, Chad Whitacre <c...@zetaweb.com> wrote:
>> Ben,
>> Need more info. What is the actual command you're giving in thewindowsshell?
>> chad
>> Ben Edwards wrote:
>>> Mr. Whitacre,
>>> I am a graduate student at the University of New Mexico studying crime
>>> here in the city of Albuquerque. In an effort to be able to map areas of
>>> the city where crime occurs I came across your gheat project. I was
>>> immediately impressed, and went about trying to get it up and running
>>> with my own data. I am however, having some trouble getting the Aspen
>>> web server up and running inWindows, and since you have mentioned that
>>> you had gheat running inwindowsI was hoping you could lend a hand.
>>> Python and PIL have been installed correctly, but when I got to run the
>>> aspen script, the one with the simple:
>>> import aspen
>>> aspen.main()
>>> Python errors out saying:
>>> C:\Python25\python.exe: can't open file '': [Errno 2] No such file or
>>> directory
>>> Being a computer engineer in a former life, and vaguely familiar with
>>> python, I have tried to poke around in some of the aspen files but can't
>>> seem to locate the offending script. Any help you could provide would be
>>> fantastic, but if you can't get to it I understand as well and I'll keep
>>> trying to hack away at it. Thank you in advance.
>>> God Bless,
>>> Ben Edwards
> You need to run the aspen script from the Windows command-line.
> This script is installed when you install aspen, I believe into
> C:\Python25\Scripts. What you've done instead is to run Python
> from the windows command-line, and then baldly assert the aspen
> module (kind of a no-op).
> Try:
> C:\> python c:\python25\scripts\aspen.bat
> Or something like that ... I'll get aspen set up here on Windows
> and then I can help you further. But that should point you in the
> right direction.
> > Can any directory be designated a home directory simply by
> > issuing the aspen command from within it?
> Yes, bingo.
> > Or must a home directory be placed within the aspen/apps
> > directory?
> > So instead of starting the server, Python simply reports the location
> > of the module. How can I start Aspen on Windows?
> > Also, am I correct in understanding the concept of a home directory in
> > Aspen? Can any directory be designated a home directory simply by
> > issuing the aspen command from within it? Or must a home directory be
> > placed within the aspen/apps directory? Must I name a home directory
> > similar towww.example.com?
> > Thanks,
> > Mike
> > On Mar 24 2008, 2:45 pm, Chad Whitacre <c...@zetaweb.com> wrote:
> >> Ben,
> >> Need more info. What is the actual command you're giving in thewindowsshell?
> >> chad
> >> Ben Edwards wrote:
> >>> Mr. Whitacre,
> >>> I am a graduate student at the University of New Mexico studying crime
> >>> here in the city of Albuquerque. In an effort to be able to map areas of
> >>> the city where crime occurs I came across your gheat project. I was
> >>> immediately impressed, and went about trying to get it up and running
> >>> with my own data. I am however, having some trouble getting the Aspen
> >>> web server up and running inWindows, and since you have mentioned that
> >>> you had gheat running inwindowsI was hoping you could lend a hand.
> >>> Python and PIL have been installed correctly, but when I got to run the
> >>> aspen script, the one with the simple:
> >>> import aspen
> >>> aspen.main()
> >>> Python errors out saying:
> >>> C:\Python25\python.exe: can't open file '': [Errno 2] No such file or
> >>> directory
> >>> Being a computer engineer in a former life, and vaguely familiar with
> >>> python, I have tried to poke around in some of the aspen files but can't
> >>> seem to locate the offending script. Any help you could provide would be
> >>> fantastic, but if you can't get to it I understand as well and I'll keep
> >>> trying to hack away at it. Thank you in advance.
> >>> God Bless,
> >>> Ben Edwards
> > You need to run the aspen script from the Windows command-line.
> > This script is installed when you install aspen, I believe into
> > C:\Python25\Scripts. What you've done instead is to run Python
> > from the windows command-line, and then baldly assert the aspen
> > module (kind of a no-op).
> > Try:
> > C:\> python c:\python25\scripts\aspen.bat
> > Or something like that ... I'll get aspen set up here on Windows
> > and then I can help you further. But that should point you in the
> > right direction.
> > > Can any directory be designated a home directory simply by
> > > issuing the aspen command from within it?
> > Yes, bingo.
> > > Or must a home directory be placed within the aspen/apps
> > > directory?
> > > So instead of starting the server, Python simply reports the location
> > > of the module. How can I start Aspen on Windows?
> > > Also, am I correct in understanding the concept of a home directory in
> > > Aspen? Can any directory be designated a home directory simply by
> > > issuing the aspen command from within it? Or must a home directory be
> > > placed within the aspen/apps directory? Must I name a home directory
> > > similar towww.example.com?
> > > Thanks,
> > > Mike
> > > On Mar 24 2008, 2:45 pm, Chad Whitacre <c...@zetaweb.com> wrote:
> > >> Ben,
> > >> Need more info. What is the actual command you're giving in thewindowsshell?
> > >> chad
> > >> Ben Edwards wrote:
> > >>> Mr. Whitacre,
> > >>> I am a graduate student at the University of New Mexico studying crime
> > >>> here in the city of Albuquerque. In an effort to be able to map areas of
> > >>> the city where crime occurs I came across your gheat project. I was
> > >>> immediately impressed, and went about trying to get it up and running
> > >>> with my own data. I am however, having some trouble getting the Aspen
> > >>> web server up and running inWindows, and since you have mentioned that
> > >>> you had gheat running inwindowsI was hoping you could lend a hand.
> > >>> Python and PIL have been installed correctly, but when I got to run the
> > >>> aspen script, the one with the simple:
> > >>> import aspen
> > >>> aspen.main()
> > >>> Python errors out saying:
> > >>> C:\Python25\python.exe: can't open file '': [Errno 2] No such file or
> > >>> directory
> > >>> Being a computer engineer in a former life, and vaguely familiar with
> > >>> python, I have tried to poke around in some of the aspen files but can't
> > >>> seem to locate the offending script. Any help you could provide would be
> > >>> fantastic, but if you can't get to it I understand as well and I'll keep
> > >>> trying to hack away at it. Thank you in advance.
> > >>> God Bless,
> > >>> Ben Edwards