Trac Perforce plugin

26 views
Skip to first unread message

Michela Ledwidge

unread,
Feb 2, 2018, 2:46:19 AM2/2/18
to Trac Users
I'm investigating the effort required to upgrade an old trac perforce plugin which only works with 0.11/0.12 to 1.2.2. 


The .egg produced from trunk is ignored on 1.2.2 

Any pointers for this plugin and general advice on plugin upgrade requirements from 0.12 to 1.2.2 appreciated

Michela 

Ryan Ollos

unread,
Feb 2, 2018, 3:05:52 AM2/2/18
to trac-...@googlegroups.com


From: Ryan Ollos
Sent: Friday, February 2, 00:04
Subject: Re: [Trac] Trac Perforce plugin
To: Trac Users, trac-...@googlegroups.com




Next step in debugging: 

Is perforce freely available in case i want to test, or is a license needed?


- Ryan

Michela Ledwidge

unread,
Feb 2, 2018, 5:04:21 AM2/2/18
to Trac Users
Is perforce freely available in case i want to test, or is a license needed?

Yes it's available.

"A full version of Helix Core is free for up to 5 users and 20 workspaces"


There's a lot to wade through but p4d is the server and p4v is the client.


Michela


RjOllos

unread,
Feb 4, 2018, 2:59:45 PM2/4/18
to Trac Users
Thanks. Let us know what you find in the log files.

- Ryan 

Michela Ledwidge

unread,
Feb 20, 2018, 1:46:15 AM2/20/18
to Trac Users
Unfortunately I can't even build this plugin on Debian as it relies on pyprotocols which has been orphaned for years and not available in Debian 9 (Stretch)

Any ideas on ways around this? I haven't used pyprotocols before

I was able to install via pip a newer p4python package - but still investigating the work required to port plugin to use this.

RjOllos

unread,
Feb 20, 2018, 2:42:16 AM2/20/18
to Trac Users


On Monday, February 19, 2018 at 10:46:15 PM UTC-8, Michela Ledwidge wrote:
Unfortunately I can't even build this plugin on Debian as it relies on pyprotocols which has been orphaned for years and not available in Debian 9 (Stretch)
 
Any ideas on ways around this? I haven't used pyprotocols before

I was able to install via pip a newer p4python package - but still investigating the work required to port plugin to use this.

I would create a virtualenv and "pip install" all the dependencies.

- Ryan 

Michela Ledwidge

unread,
Feb 20, 2018, 3:25:40 AM2/20/18
to trac-...@googlegroups.com
> I would create a virtualenv and "pip install" all the dependencies.

 As above, the packages aren't maintained so pip no use unless using custom urls.

I imanuall nstalled PyProtocols-0.9.3 from src on the orphaned site. Fails one test but does install

Trying to install PyPerforce-0.4 it fails with setup requiring linux2 release 2.4 or 2.6 -  I hacked to allow linux 4.9 and got all these errors


--
You received this message because you are subscribed to a topic in the Google Groups "Trac Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/trac-users/kDTdE1Bdabo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to trac-users+unsubscribe@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.



--
Michela Ledwidge
Founder & CEO



@michela
Mob +61 (0)4316 347 64 (AU)  Tel +61 2 8003 4811 (AU) Tel +44 208 144 8981 (UK)
Suite 25, Level 2, 647 George Street Haymarket Sydney NSW 2000
http://mod.studio


Experience amazing immersive and interactive VR at Mod | #vrarcade

Mod acknowledges the Traditional Owners of the land that we work on, the Gadigal people of the Eora Nation, and pay our respects to the Elders past and present.

Jun Omae

unread,
Feb 20, 2018, 4:03:26 AM2/20/18
to trac-...@googlegroups.com
On Tue, Feb 20, 2018 at 5:25 PM, Michela Ledwidge <mic...@modprods.com> wrote:
>> I would create a virtualenv and "pip install" all the dependencies.
>
> As above, the packages aren't maintained so pip no use unless using custom
> urls.
>
> I imanuall nstalled PyProtocols-0.9.3 from src on the orphaned site. Fails
> one test but does install
>
> Trying to install PyPerforce-0.4 it fails with setup requiring linux2
> release 2.4 or 2.6 - I hacked to allow linux 4.9 and got all these errors
>
> http://termbin.com/yrm1

At least, PyPerforce requires Perforce C++ API 2004.2 or later.

See https://sourceforge.net/p/pyperforce/code/HEAD/tree/pyperforce/trunk/README.txt#l44

--
Jun Omae <jun...@gmail.com> (大前 潤)

Jun Omae

unread,
Feb 20, 2018, 4:47:12 AM2/20/18
to trac-...@googlegroups.com
On Tue, Feb 20, 2018 at 5:25 PM, Michela Ledwidge <mic...@modprods.com> wrote:
>> I would create a virtualenv and "pip install" all the dependencies.
>
> As above, the packages aren't maintained so pip no use unless using custom
> urls.
>
> I imanuall nstalled PyProtocols-0.9.3 from src on the orphaned site. Fails
> one test but does install
>
> Trying to install PyPerforce-0.4 it fails with setup requiring linux2
> release 2.4 or 2.6 - I hacked to allow linux 4.9 and got all these errors
>
> http://termbin.com/yrm1

I tried to install again and successfully installed PyPerforce (0.4)
and PyProtocols (0.9.3).

1. Create virtualenv and activate

$ virtualenv /tmp/p4venv
$ source /tmp/p4venv/bin/activate

2. Download PyPerforce-0.4.zip and PyProtocols-0.9.3.zip

http://peak.telecommunity.com/dist/PyProtocols-0.9.3.zip
https://sourceforge.net/projects/pyperforce/files/PyPerforce/0.4/PyPerforce-0.4.zip/download

3. Extract PyProtocols-0.9.3.zip and run "setup.py install"

$ unzip -x PyProtocols-0.9.3.zip
$ cd PyProtocols-0.9.3
$ python setup.py install

4. Extract PyPerforce-0.4.zip, patch and run "setup.py install"

$ unzip -x PyPerforce-0.4.zip
$ cd PyPerforce-0.4
$ patch -p0 < pyperforce.patch # (use attached file)
$ python setup.py install
pyperforce.patch

Michela Ledwidge

unread,
Feb 20, 2018, 5:32:55 AM2/20/18
to trac-...@googlegroups.com
Thanks for that Jun.

Still getting the same error but that gives me some clues to go on

(trac-71HgZwjF) michela@seed:/media/sf_projects/trac/src/PyPerforce-0.4$ patch -p0 < pyperforce.pat ch
patching file setup.py
patching file src/perforce/api.cpp
Hunk #1 succeeded at 43 with fuzz 1 (offset -19 lines).
(trac-71HgZwjF) michela@seed:/media/sf_projects/trac/src/PyPerforce-0.4$ python setup.py install
error: release '4.9.0-5-686-pae' of linux2 not yet supported on 'i686'

--
You received this message because you are subscribed to a topic in the Google Groups "Trac Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/trac-users/kDTdE1Bdabo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to trac-users+unsubscribe@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Michela Ledwidge

unread,
Feb 20, 2018, 5:34:05 AM2/20/18
to trac-...@googlegroups.com
Got it, just whitelisted my release num. THanks

Michela Ledwidge

unread,
Feb 20, 2018, 6:57:44 AM2/20/18
to Trac Users
Updated patch for PyPerforce - requirement for TracPerforce. Working on 1.2.2. Thanks again
pyperforce.patch
Reply all
Reply to author
Forward
0 new messages