Re: [Trac] Re: Getting Trac running in a venv

2019-10-11 Thread Mike Dewhirst

Thank you Dima. Much appreciated.

M

On 12/10/2019 3:07 am, 'Dimitri Maziuk' via Trac Users wrote:

On 10/11/2019 2:57 AM, Mike Dewhirst wrote:

The Trac server will be Ubuntu 18.04 not Windows. Does that modify 
your "no alternative."?


Containers aren't portable, you need a windows container to run on 
windows and a linux one to run on linux.


As it happens, already running on the target machine is Apache 
serving four Django sites and svn. That's why I had to take Trac down.


Simply put, trac webserver is inside the container and is listening on 
a port. Host apache is proxying trac url to that port:

 ProxyPass /trac/ http://127.0.0.1:9876/


What does "core python being incompatible with itself" mean?


It means I can still run perl scripts from the 90s. Can't read them, 
but they'll run on ubuntu 18.04. Python: not so much.


Dima



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/1cb70871-d71e-5572-c9af-8411b86d599e%40dewhirst.com.au.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-11 Thread Mike Dewhirst

On 12/10/2019 3:07 am, 'Dimitri Maziuk' via Trac Users wrote:
It means I can still run perl scripts from the 90s. Can't read them, 
but they'll run on ubuntu 18.04. Python: not so much.
Very good. I couldn't read the perl I wrote let alone anyone else's. 
That's why I'm in python.


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/345ada8d-757a-0272-ec46-9cb13c7a5579%40dewhirst.com.au.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-11 Thread 'Dimitri Maziuk' via Trac Users

On 10/11/2019 2:57 AM, Mike Dewhirst wrote:

The Trac server will be Ubuntu 18.04 not Windows. Does that modify your 
"no alternative."?


Containers aren't portable, you need a windows container to run on 
windows and a linux one to run on linux.


As it happens, already running on the target machine is Apache serving 
four Django sites and svn. That's why I had to take Trac down.


Simply put, trac webserver is inside the container and is listening on a 
port. Host apache is proxying trac url to that port:

 ProxyPass /trac/ http://127.0.0.1:9876/


What does "core python being incompatible with itself" mean?


It means I can still run perl scripts from the 90s. Can't read them, but 
they'll run on ubuntu 18.04. Python: not so much.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/e41db28b-b5a6-bbbc-7beb-252e019e7cec%40bmrb.wisc.edu.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-11 Thread Mike Dewhirst

On 11/10/2019 1:57 am, 'Dimitri Maziuk' via Trac Users wrote:
With core python being incompatible with itself and its DLL hell on 
top, there is no alternative.


The Trac server will be Ubuntu 18.04 not Windows. Does that modify your 
"no alternative."?


As it happens, already running on the target machine is Apache serving 
four Django sites and svn. That's why I had to take Trac down.


What does "core python being incompatible with itself" mean?

That's 2 questions - sorry to be a pain.

Thanks

Mike

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/6a5be834-001e-3284-f613-2f0932c2b758%40dewhirst.com.au.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-10 Thread Jonathan Laufersweiler
All of these suggested approaches are good in their own way. They differ in
where they put the complexity that solves the problem. The right one for a
given situation is the one that puts that solution-complexity where it will
be the least painful to make work with the rest of your environment. -JL

On Thu, Oct 10, 2019 at 9:57 AM 'Dimitri Maziuk' via Trac Users <
trac-users@googlegroups.com> wrote:

> On 10/9/2019 6:40 PM, Mike Dewhirst wrote:
>
> > Dimitri thank you. I had not thought of Docker because I have avoided
> > thinking of Docker for years. That means I haven't allocated brain-space.
> >
> > Maybe its time I did.
>
> With core python being incompatible with itself and its DLL hell on top,
> there is no alternative.
>
> Dima
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/8f80bf41-604b-1dc1-e79d-87f5e219c4fb%40bmrb.wisc.edu
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CALF_GDFH5UdEcs9UrS1Ox-hr0Drt_c_X8gw58neZ8kgzv7zyFA%40mail.gmail.com.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-10 Thread 'Dimitri Maziuk' via Trac Users

On 10/9/2019 6:40 PM, Mike Dewhirst wrote:

Dimitri thank you. I had not thought of Docker because I have avoided 
thinking of Docker for years. That means I haven't allocated brain-space.


Maybe its time I did.


With core python being incompatible with itself and its DLL hell on top, 
there is no alternative.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/8f80bf41-604b-1dc1-e79d-87f5e219c4fb%40bmrb.wisc.edu.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-09 Thread Mike Dewhirst

On 10/10/2019 7:20 am, 'Dimitri Maziuk' via Trac Users wrote:

On 10/9/19 2:06 PM, Jonathan Laufersweiler wrote:

Another option would be to use PyInstaller to package up a minimal 2.7
interpreter with the bytecode for Trac and its dependencies into a into a
stand-alone executable package. This would make updating Trac more of a
chore, but would simplify the service & routing setup compared to the venv
approach. YMMV, of course.

Really...


Dimitri thank you. I had not thought of Docker because I have avoided 
thinking of Docker for years. That means I haven't allocated brain-space.


Maybe its time I did.

Cheers

Mike



https://hub.docker.com/r/mwaeckerlin/trac
https://hub.docker.com/r/stephenhsu/trac/
https://github.com/solsson/docker-trac
etc.

Bitnami claims to have a container too but I don't see a link on their
trac page.



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/c46bd6d6-8db9-b93b-b706-4d0b64858386%40dewhirst.com.au.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-09 Thread Mike Dewhirst

On 10/10/2019 6:06 am, Jonathan Laufersweiler wrote:
Another option would be to use PyInstaller to package up a minimal 2.7 
interpreter with the bytecode for Trac and its dependencies into a 
into a stand-alone executable package. This would make updating Trac 
more of a chore, but would simplify the service & routing setup 
compared to the venv approach. YMMV, of course. --JonL


I have never used PyInstaller so I'll keep this up my sleeve in case I 
run into insurmountable trouble with Mickaël's venv approach. I'm not 
planning on updating until Trac is stable on Py3 so that's a plus.


Thank you Jon

Cheers

Mike



On Tuesday, October 8, 2019 at 10:04:32 PM UTC-5, Mike Dewhirst wrote:

I had to stop using Trac when I upgraded the machine to Python3. Call
that machine pq3 and Trac is currently off the air.

The reason is pq3 also runs a couple of Django staging servers which
have moved beyond version 1.11 and are therefore no longer capable of
running on Python 2.7.

I can't wait for Trac on Python3 so I think my choices are ...

1. Set up a Python 2.7 venv on pq3 and re-install Trac there

... OR install Python 2.7 on a separate machine - call it pq2 -
and ...

2. Redirect Trac traffic to pq2 from pq3 using Apache redirection

3. Redirect Trac traffic to pq2 from the router using different port
forwarding - say 4430

pq2 and pq3 are both Ubuntu 18.04 and Apache 2.4 on both. Both
machines
are behind the same router and I can only direct web traffic to
one and
that has to be pq3. The Trac database is on pq3.

What do you recommend is the easiest course?

I plan to adopt Trac for Python3 as soon as it is released and retire
pq2 permanently.

Thanks for any advice.

Cheers

Mike

--
You received this message because you are subscribed to the Google 
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to trac-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/02acdc83-8b3f-4763-adca-114f224fe7d6%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f362124e-3f7f-08da-c278-f4962a5a804f%40dewhirst.com.au.


Re: [Trac] Re: Getting Trac running in a venv

2019-10-09 Thread 'Dimitri Maziuk' via Trac Users
On 10/9/19 2:06 PM, Jonathan Laufersweiler wrote:
> Another option would be to use PyInstaller to package up a minimal 2.7 
> interpreter with the bytecode for Trac and its dependencies into a into a 
> stand-alone executable package. This would make updating Trac more of a 
> chore, but would simplify the service & routing setup compared to the venv 
> approach. YMMV, of course.

Really...

https://hub.docker.com/r/mwaeckerlin/trac
https://hub.docker.com/r/stephenhsu/trac/
https://github.com/solsson/docker-trac
etc.

Bitnami claims to have a container too but I don't see a link on their
trac page.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/f24f8394-78b5-776e-2489-a6f1e8ad024c%40bmrb.wisc.edu.


signature.asc
Description: OpenPGP digital signature


[Trac] Re: Getting Trac running in a venv

2019-10-09 Thread Jonathan Laufersweiler
Another option would be to use PyInstaller to package up a minimal 2.7 
interpreter with the bytecode for Trac and its dependencies into a into a 
stand-alone executable package. This would make updating Trac more of a 
chore, but would simplify the service & routing setup compared to the venv 
approach. YMMV, of course. --JonL

On Tuesday, October 8, 2019 at 10:04:32 PM UTC-5, Mike Dewhirst wrote:
>
> I had to stop using Trac when I upgraded the machine to Python3. Call 
> that machine pq3 and Trac is currently off the air. 
>
> The reason is pq3 also runs a couple of Django staging servers which 
> have moved beyond version 1.11 and are therefore no longer capable of 
> running on Python 2.7. 
>
> I can't wait for Trac on Python3 so I think my choices are ... 
>
> 1. Set up a Python 2.7 venv on pq3 and re-install Trac there 
>
> ... OR install Python 2.7 on a separate machine - call it pq2 - and ... 
>
> 2. Redirect Trac traffic to pq2 from pq3 using Apache redirection 
>
> 3. Redirect Trac traffic to pq2 from the router using different port 
> forwarding - say 4430 
>
> pq2 and pq3 are both Ubuntu 18.04 and Apache 2.4 on both. Both machines 
> are behind the same router and I can only direct web traffic to one and 
> that has to be pq3. The Trac database is on pq3. 
>
> What do you recommend is the easiest course? 
>
> I plan to adopt Trac for Python3 as soon as it is released and retire 
> pq2 permanently. 
>
> Thanks for any advice. 
>
> Cheers 
>
> Mike 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/02acdc83-8b3f-4763-adca-114f224fe7d6%40googlegroups.com.