Directory to add wrowser plugins does not exists

Bug #594483 reported by Re Hova Andre Rove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openWNS Wrowser
Invalid
Medium
Ramin Rezai Rad

Bug Description

I have installed openwns-sdk and wrowser succesfully. But when I tried to add the wrowser plugins, the directory .wns does not exists in my home directory and I have tried the solution number #559052 but I do not have the preparecampaign option. If I tried to open a campaign, the results are:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/Windows.py", line 139, in on_actionOpenCampaignDatabase_triggered
    from simdb import Campaigns
  File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/simdb/Campaigns.py", line 28, in <module>
    import openwns.wrowser.simdb.Database as db
  File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/simdb/Database.py", line 28, in <module>
    import psycopg2 as pg
Even in the usr/local/lib/python2.6/site-packages there is no openwns directory but in dist-packages there is a openwns directory.

Revision history for this message
Maciej Muehleisen (mue-comnets) wrote : Re: [openWNS-develop] [Bug 594483] [NEW] Directory to add wrowser plugins does not exists

Hi,

after first time running ./playground .py the file should be there. Try
"ls -la ~/.wns/playground.config". You can then for example use "gedit
~/.wns/playground.config" to edit the file. For your Linux version the
line must be:

[AdditionalPluginPaths]
path1 =
/usr/local/lib/python2.6/dist-packages/openwns/wrowser/playgroundPlugins/

The problems you have with wrowser can be fixed by installing the
package python-psycopg2 using "sudo apt-get install python-psycopg2" as
stated in
http://docs.openwns.org/UsersGuide/gettingStarted/postgresql.html under
Prerequisites.

Greats,

Mac

Re Hova Andre Rove wrote:
> Public bug reported:
>
> I have installed openwns-sdk and wrowser succesfully. But when I tried to add the wrowser plugins, the directory .wns does not exists in my home directory and I have tried the solution number #559052 but I do not have the preparecampaign option. If I tried to open a campaign, the results are:
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/Windows.py", line 139, in on_actionOpenCampaignDatabase_triggered
> from simdb import Campaigns
> File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/simdb/Campaigns.py", line 28, in <module>
> import openwns.wrowser.simdb.Database as db
> File "/usr/local/lib/python2.6/dist-packages/openwns/wrowser/simdb/Database.py", line 28, in <module>
> import psycopg2 as pg
> Even in the usr/local/lib/python2.6/site-packages there is no openwns directory but in dist-packages there is a openwns directory.
>
> ** Affects: openwns-wrowser
> Importance: Undecided
> Status: New
>
>

Revision history for this message
Re Hova Andre Rove (reandre8503) wrote :
Download full text (5.5 KiB)

Thanks Mac.

I already change the playground.config file but I did not get the preparecampaign option. If I run ./playground.py the results are:

Usage : playground COMMAND options

You can use one of following commands. Use COMMAND --help to get
detailed help for the command

   changes : This command is deprecated but still in use due to backward compatibility.
       Use 'status' command instead.
   clean : Cleanup the build environment.
   consistency : Check if projects.py is consistent with file system contents.
   cppdocu : Build all in one project CPP documentation.
   createmanuals : Build the users manual and the developers guide.
   createmodule : Create a new module from project ModuleTemplate.
   docu : Build project documentation.
   foreach : Execute a command on multiple projects.
   helloworld : Want to write your own commands? Here is HelloWorld for playground
   install : Compile and install all projects to the sandbox
   lint : Check for inconsistencies in version control.
   memcheck : Run the memchecker valgrind on the unit tests.
   missing : Check for missing patches in the source repository.
   push : Push the whole project tree and all its modules to remote location from projects.py.
   pycodocu : Creates documentation for the PyConfig configuration tree
   runlongtests : Runs the 'long' test suite.
   runtests : Runs the test suite.
   serve : Prepare a directory (localRepo) to serve this SDK via 'bzr serve --directory localRepo'. WARNING: This will remove ./localRepo
   servedocu : Start the builtin web server to serve some documentation
   status : Show status in source code managed by the version control system for all known projects.
   update : Update the project support modules.
   upgrade : Update the whole project tree and all its modules.

There are some global options that are available for all commands
Usage: The list below shows global available options.

Options:
  -h, --help show this help message and exit
  -f FILE, --configFile=FILE
                        choose a configuration file (e.g.,
                        --configFile=config/projects.py)
  --if=EXPR restrict commands to affect only projects that match
                        EXPR (can be: 'python', 'bin', 'lib', 'none',
                        'changed', 'scons', 'ask', 'bzr', 'tla').
  --noAsk Do not ask user. Accept all default answers. Use this
                        for automation.
  --commands Space separated list of available commands (use for
                        Bash completion).
  --debug Enable debug output. Also enables warnings.
  --warnings Show warnings.
WARNING: Unable to load 'SimulationCampaign' plugin from '/usr/local/lib/python2.6/dist-packages/openwns/wrowser/playgroundPlugins/'. Ignored.
   <class 'psycopg2.OperationalError'>
   FATAL: Ident authentication failed for user "password="

   <frame...

Read more...

Revision history for this message
Maciej Muehleisen (mue-comnets) wrote :

Hi,

this should have been fixed in bug #502886, but there still seems to be a problem. If you successfully completed the steps to install the database as described in http://docs.openwns.org/gettingStarted/postgresql.html you still need to do the stuff described under "Configuring the database information in the Wrowser". If you have also completed that, then you most likely misspelled your database username or password ("foobar" is default).

Still as mentioned in bug #502886 playground.py should not try to connect to the database at all.

Greats,

Mac

Changed in openwns-wrowser:
importance: Undecided → Medium
assignee: nobody → Ramin (rrr-comnets)
Changed in openwns-wrowser:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.