Re: [Trac] Re: Installing the XMLRPC plugin on DreamHost (virtual python environment)

2012-03-12 Thread Kamil Libich
Thanks Simon,

Maybe really this is a part of the problem. However, I think the main
problem is on the PYTHON/PYTHON virtual environment border.

The installation command I'm issuing comes from my hosting company:
http://wiki.dreamhost.com/Trac#Plugins
http://wiki.dreamhost.com/Python

However they are not supporting neither the trac nor Python, so I don't
have the support of them.

My questions:
1. What is that PYTHONPATH variable? To which value it has to be switch set?
2. What is that source /path/to/env/bin/activate command for?
3. If I install this in my Python/Trac environment will the plugin be
available to all my trac sites automatically?
4. Where to observe the log if any?

Cheers,

Kamil

On Mon, Mar 12, 2012 at 8:37 AM, osimons oddsim...@gmail.com wrote:



 onsdag 7. mars 2012 kl. 19:15:19 UTC+1 skrev Kamil følgende:

 The Scenario:

 Trac version 11.4

 The aim: to connect to the trac from iPad thru tracViewer app.

 The tool: the XMLRPC trac plugin has to be installed on the server side.

 The problem: how to install the XMLRPC on the server.

 The things done:
 1. virtual python environment has been installed succesfully (in
 $HOME/env)

 [snip]


 (env)[BAT]$ easy_install --install-dir=$PYTHONPATH
 http://trac-hacks.org/svn/**xmlrpcpluginhttp://trac-hacks.org/svn/xmlrpcplugin0.10
  # 0.10
 TEST FAILED:  does NOT support .pth files
 error: bad install directory or PYTHONPATH


 You want the 0.11 (= trunk) version for Trac 0.11.4 (for anything 0.11+).
 The version for Trac 0.10.x will no longer work for your more recent
 version. It should look something like:

 (env)[BAT]$ easy_install http://trac-hacks.org/svn/xmlrpcplugin/trunk

 ...which is the URL copied from the plugin documentation that you don't
 seem to be following? Check this:

 http://trac-hacks.org/wiki/XmlRpcPlugin#Installation


 :::simon

  --
 You received this message because you are subscribed to the Google Groups
 Trac Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/trac-users/-/uJUPUJCBqUQJ.
 To post to this group, send email to trac-users@googlegroups.com.
 To unsubscribe from this group, send email to
 trac-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/trac-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Re: Installing the XMLRPC plugin on DreamHost (virtual python environment)

2012-03-12 Thread osimons

On Monday, March 12, 2012 11:46:03 AM UTC+1, Kamil wrote:My questions:

 1. What is that PYTHONPATH variable? To which value it has to be switch 
 set?


If you have virtualenv installed, and have activated it (either by 
activate or by running configured scripts directly like 
/path/to/env/bin/easy_install) all environment settings should be 
prepared for you. You should just use the defaults for the virtualenv and 
don't need additional paths, so really just ignore it. The modules you 
install for the virtualenv will end up in 
/path/to/env/lib/python2.x/site-packages/ which is just fine, and don't use 
additional configuration or command-line switches when installing.
 

 2. What is that source /path/to/env/bin/activate command for?


See 1. It basically switches your shell to environment variables prepared 
for the virtualenv you activate. So that you run the correct scripts, 
install to correct locations etc. You may want to read through the 
virtualenv docs and make sure you understand what virtualenv is (and 
isn't): http://pypi.python.org/pypi/virtualenv
 

 3. If I install this in my Python/Trac environment will the plugin be 
 available to all my trac sites automatically?


Yes, it will be a global install - for all trac processes that originate 
in that virtualenv. Need to be enabled in each project.
 

 4. Where to observe the log if any?


http://trac.edgewall.org/wiki/TracLogging
 

:::simon

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/jmGuKdyZsIYJ.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Re: Installing the XMLRPC plugin on DreamHost (virtual python environment)

2012-03-12 Thread Kamil Libich
Ok, bit of log I get when I want to connect from tracViewer.


2012-03-12 10:07:07,967 Trac[session] DEBUG: Retrieving session for ID 'klm'
2012-03-12 10:07:07,967 Trac[chrome] DEBUG: Prepare chrome data for request
2012-03-12 10:10:48,692 Trac[main] DEBUG: Dispatching Request GET
u'/admin/ticket/versions'
2012-03-12 10:10:48,693 Trac[cache] DEBUG: cache metadata undefined
(youngest_rev=u'')
2012-03-12 10:10:48,693 Trac[cache] INFO: repos rev [0] != cached rev [None]
2012-03-12 10:10:48,694 Trac[chrome] DEBUG: Prepare chrome data for request
2012-03-12 10:10:48,697 Trac[session] DEBUG: Retrieving session for ID 'klm'
2012-03-12 10:10:49,037 Trac[main] DEBUG: Dispatching Request GET
u'/chrome/site/your_project_logo.png'
2012-03-12 10:10:49,038 Trac[session] DEBUG: Retrieving session for ID 'klm'
2012-03-12 10:10:49,038 Trac[chrome] DEBUG: Prepare chrome data for request
2012-03-12 10:10:54,028 Trac[main] DEBUG: Dispatching Request GET
u'/admin/ticket/type'


I installed the plugin according to instructions in trac-hacks. I don't
have the 'problem' with the PYTHONPATH any more
I modified trac.ini file with components section.

Anything obvious?

Kamil


On Mon, Mar 12, 2012 at 4:10 PM, osimons oddsim...@gmail.com wrote:


 On Monday, March 12, 2012 11:46:03 AM UTC+1, Kamil wrote:My questions:

 1. What is that PYTHONPATH variable? To which value it has to be switch
 set?


 If you have virtualenv installed, and have activated it (either by
 activate or by running configured scripts directly like
 /path/to/env/bin/easy_install) all environment settings should be
 prepared for you. You should just use the defaults for the virtualenv and
 don't need additional paths, so really just ignore it. The modules you
 install for the virtualenv will end up in
 /path/to/env/lib/python2.x/site-packages/ which is just fine, and don't use
 additional configuration or command-line switches when installing.


 2. What is that source /path/to/env/bin/activate command for?


 See 1. It basically switches your shell to environment variables prepared
 for the virtualenv you activate. So that you run the correct scripts,
 install to correct locations etc. You may want to read through the
 virtualenv docs and make sure you understand what virtualenv is (and
 isn't): http://pypi.python.org/pypi/virtualenv


 3. If I install this in my Python/Trac environment will the plugin be
 available to all my trac sites automatically?


 Yes, it will be a global install - for all trac processes that originate
 in that virtualenv. Need to be enabled in each project.


 4. Where to observe the log if any?


 http://trac.edgewall.org/wiki/TracLogging


 :::simon

 --
 You received this message because you are subscribed to the Google Groups
 Trac Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/trac-users/-/jmGuKdyZsIYJ.

 To post to this group, send email to trac-users@googlegroups.com.
 To unsubscribe from this group, send email to
 trac-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/trac-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Re: Installing the XMLRPC plugin on DreamHost (virtual python environment)

2012-03-12 Thread osimons


On Monday, March 12, 2012 6:40:58 PM UTC+1, Kamil wrote:

 Ok, bit of log I get when I want to connect from tracViewer.


 
 2012-03-12 10:07:07,967 Trac[session] DEBUG: Retrieving session for ID 
 'klm'
 2012-03-12 10:07:07,967 Trac[chrome] DEBUG: Prepare chrome data for request
 2012-03-12 10:10:48,692 Trac[main] DEBUG: Dispatching Request GET 
 u'/admin/ticket/versions'
 2012-03-12 10:10:48,693 Trac[cache] DEBUG: cache metadata undefined 
 (youngest_rev=u'')
 2012-03-12 10:10:48,693 Trac[cache] INFO: repos rev [0] != cached rev 
 [None]
 2012-03-12 10:10:48,694 Trac[chrome] DEBUG: Prepare chrome data for request
 2012-03-12 10:10:48,697 Trac[session] DEBUG: Retrieving session for ID 
 'klm'
 2012-03-12 10:10:49,037 Trac[main] DEBUG: Dispatching Request GET 
 u'/chrome/site/your_project_logo.png'
 2012-03-12 10:10:49,038 Trac[session] DEBUG: Retrieving session for ID 
 'klm'
 2012-03-12 10:10:49,038 Trac[chrome] DEBUG: Prepare chrome data for request
 2012-03-12 10:10:54,028 Trac[main] DEBUG: Dispatching Request GET 
 u'/admin/ticket/type'

 

 I installed the plugin according to instructions in trac-hacks. I don't 
 have the 'problem' with the PYTHONPATH any more
 I modified trac.ini file with components section.

 Anything obvious?


Yes. The most obvious is that the log does not contain anything related to 
RPC. If you can make a request to /rpc and the RPC plugin is working, I 
suppose your problem may be related to the ios app rather than Trac and RPC 
plugin. Does a /rpc (or /login/rpc) web request return a nice overview of 
the RPC documentation?

I don't know the TracViewer app, and without any useful error information 
there is not much more I can do to help.

Have you tried the TracViewer support contacts?


:::simon

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/LbGeNDYEOREJ.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.