mapgears / scribeui

http://scribeui.org
MIT License
28 stars 15 forks source link

Windows Installation #102

Open tlubenov opened 10 years ago

tlubenov commented 10 years ago

There are several libraries that cannot be installed under Windows env. some of these are: cryptacular and m2crypto. Did you try to install it under windows 7? Would you like to provide some instructions?

jlap commented 10 years ago

Cryptacular is used for workspace password storage. A quick search leads me to believe that m2crypto isn't used (Flask to Pyramid pyramid leftovers maybe?)

Pyramid itself is perfectly windows compatible, which is good.

I'll have to take a look in the requires.txt to see what libs are unavailable in Windows, where they are used and how to update them, as Windows compatibility is definitely something we want.

I won't have the time to do this within the scope of GSoC2014 though.

tlubenov commented 10 years ago

Thank you for fast response. I'll try to install under win7. If everything works fine can share the installation procedure. Is there way to pass cryptacular? It is available only at pypm at business level of account purchase.

tlubenov commented 10 years ago

Would you like please sent me a sqlite db filled with sample data?

jlap commented 10 years ago

I don't think you can bypass cryptacular unless you never password-protect a workspace, maybe, I didn't try. It'll have to be changed in the code.

I'm not sure how a db will help you though?

tlubenov commented 10 years ago

I install scribeui under win7 with virtualenv and python2.7.8. cryptacular i find at http://pypm-free.activestate.com and place in virtualenv, the psycopg2 just copy and paste (not possible to pip install under virtualenv in windows 7). Rest of libs are trivial to install. but when try to start with >paster serve local.ini and go to localhost:6543 it raise the error.

sqlalchemy.exc.OperationalError OperationalError: (OperationalError) no such table: workspaces u'SELECT workspaces.name AS workspaces_name \nFROM workspaces ORDER BY workspaces.name' ()

so i think with some sample sqllite db may fix the things.

When i final the installation will share the procedure here.

jlap commented 10 years ago

The makefile usually takes care of creating the database. It uses alembic, with a command such as:

 bin/alembic -c local.ini revision --autogenerate -m "initial rev"
tlubenov commented 10 years ago

The makefile not works for me. So try to workaround everything in it.

jlap commented 10 years ago

Here's a db with a demo workspace.

tlubenov commented 10 years ago

Thank you. It works! Where to publish the installation procedure?

tlubenov commented 10 years ago

Dear Jessica, One last question. Is there a way to customize static files (js, css etc) and where to edit the source code. Using

 paster serve local.ini

not serve no one js/css/img file

jlap commented 10 years ago

There is no way to confugure the static files right now.

For the installation instructions, try writing them on this ticket, it'll help finding out what kind of work is needed to make the installation smoother on windows.