Hi,

I want to do something like this in my OSQA script on Dreamhost

from slughifi import *

  • On my local machine (Windows XP), I just put the slughifi.py file in C:\\Python25\\Lib\\site-packages and it works.

  • However, on my Dreamhost (which installed using the guide here), I tried to put the file in /local/lib/python2.5/site-packages but it didn't work

  • If I put the file in the same folder as the script that will import it, then it works though

Could someone help me with this ? Thanks

asked 12 May '10, 04:27

Sim's gravatar image

Sim
45171015
accept rate: 12%

edited 13 May '10, 22:58


Since is a single file, you can just put that in the root of the project and it should work.

link

answered 12 May '10, 06:14

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

currently the path to osqa is like this : /home/user-name/domain-name/osqa

so you meant to put the file directly in /home/user-name/domain-name/osqa ?

(12 May '10, 06:35) Sim

Yes, that's it.

(12 May '10, 15:52) Hernani Cerq... ♦♦

I tried but couldn't fix the issue. Any other suggestions ? Thanks

(13 May '10, 02:19) Sim

What is the error you get?

(13 May '10, 06:05) Hernani Cerq... ♦♦

the script just didn't start (waiting forever when I browse to my website, I use Dreamhost)

I end up putting the lib in the same folder as the script that will import it. Then it works.

(13 May '10, 22:56) Sim
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×12

Asked: 12 May '10, 04:27

Seen: 569 times

Last updated: 13 May '10, 22:58

powered by OSQA