Paul,

Thank you for the updated instructions. I made significant progress with dabo, 
as the installation was successful. Now, I have to begin learning dabo and 
Python.

I am a Microsoft Access expert and I have some experience with Linux but I am a 
complete noob with Python and now, dabo. That being the case, I documented all 
of the steps I followed to get dabo installed. Here they are:

 Steps to Install dabo

1) Created a new VirtualBox VM using Ubuntu 12.04.3.
2) Install all Ubuntu updates.
3) Make a snapshot of the machine.
4) Install the Vbox additions.

5) Use the instructions at http://wiki.wxpython.org/InstallingOnUbuntuOrDebian 
to install wxPython. This installation adds a folder named 
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode. It is not just gtk, as 
described by Paul.
6) Use the instructions at http://thelinuxexperiment.com/tag/python/ to install 
Git/Github, pip and virtualenv. In Step 4, add the chunk of code to the bottom 
of bashrc.

I tried without installing the chunk of code and it didn't work.

I installed Git/Github but did not create an account or do any of the steps to 
add my project to Git.

7) Run the test to make sure a virtual environment can be created, activated 
and deactivated.
8) Make a snapshot of the virtual machine.

Specific dabo steps provided by Paul McNett:

In a terminal window:
1) Run mkvirtualenv dabo_test_install to create the dabo test environment.

This command also activates the new environment. Stay in the environment for 
the rest of the steps.

You will want to create an environment with your project name once everything 
is working.

2) Use Nautilus to find the location of site-packages under your home folder 
for the next step. Do this in case you find that it is different than what is 
shown below.

The starting folder is .virtualenvs. You can use Nautilus to show hidden 
folders and files.

3) Run  cd ~/.virtualenvs/dabo_test_install/lib/python2.7/site-packages to open 
the folder.
4) Within the folder, run echo 
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode" > wx.pth

I changed the path to gtk2 because the path provided by Paul doesn't exist on 
my machine. In addition to that, the path didn't exist at all until after 
installing wxPython.

A new wx.pth file should appear in the folder.

5) Run cd /tmp
6) Run wget https://github.com/dabodev/dabo/archive/v0.9.14.tar.gz to download 
the dabo archive.
7) Run  tar -xzvf v0.9.14.tar.gz to decompress the files.
8) Run cd dabo-0.9.14 (the decompressed folder).
9) Run python setup.py install. I didn't notice any error messages and several 
new files/folders were created.
10) Run python to open the python interpreter.
11) Type in and press the Enter key after each line:
1. import dabo
2. app = dabo.dApp()
3. app.start()

12) Upon success, the gui with a blank window will open. It can be closed.

You can deactivate the dabo environment at this time if you want to exit to the 
main python environment.
Patrick

-----Original Message-----
From: Dabo-users [mailto:[email protected]] On Behalf Of Paul McNett
Sent: Friday, February 07, 2014 11:13 AM
To: Dabo Users list
Subject: Re: [dabo-users] dabo still won't setup correctly

On 2/6/14 7:56 PM, Patrick Headley wrote:
> I posted a message last night because the instructions on the dabo site don't 
> work. Tonight I tried again by using the Linux specific instructions, which I 
> found to be way outdated. I then found dabo on the github and checked it out 
> using svn. Upon running setup.py, I still get the same errors as before. I 
> cannot send you the exact error messages today but the first one is that the 
> setuptools file is missing. After downloading the current version and then 
> changing the name to the version that the setup application wants the 
> installation seems to work. But then, when I try to run the demo, I get the 
> error regarding no translation file.
> 
> Again, I would really like to try dabo, as I believe it could be the solution 
> I'm looking for. Please fix it.

Hi,

I'm sorry you are having trouble getting started. We definitely need to improve 
our setup scripts to work seamlessly with pip. I hit that translation error you 
posted simply by doing 'pip install dabo'.

However, I was able to do the following on Ubuntu 12.04:

# make a clean virtualenv:
mkvirtualenv dabo_test_install
cdsitepackages

# use the 'main' python installation of wx in the virtualenv:
echo "/usr/lib/python2.7/dist-packages/wx-2.8-gtk-unicode" > wx.pth

# download and install dabo:
cd /tmp
wget https://github.com/dabodev/dabo/archive/v0.9.14.tar.gz
tar -xzvf v0.9.14.tar.gz
cd dabo-0.9.14
python setup.py install

# test:
(dabo_test_install)pmcnett@lin:/tmp$ python Python 2.7.3 (default, Aug  1 2012, 
05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or 
"license" for more information.
>>> import dabo
>>> app = dabo.dApp()
>>> app.start()

# and here I see the GUI with no errors, and press Alt+F4 to close and get the 
python prompt back.

Could you try these steps (not sure how different they are from what you did) 
and let me know how it goes? I highly recommend using virtualenv if you aren't 
already, but it isn't required.

Paul



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/E53177F00BEC304993A095542AD81F1E01DF6B594F97@LINX1002.linxconsulting.local

Reply via email to