Dear everybody,

I've been able to build cx_Freeze on Windows Service against Python 3.4.
This was not easy because, on my set up, it didn't work well.
The main issue was that the Python setup didn't invoke the Visual C compiler
properly.
That is, for the Win32Service base, the compilation step didn't create the
manifest file correctly.

What I had to do to build was :

0. Clone cx_freeze repository, I updated to the 4.3.4 tag
1. Apply the pull request to the code base.

2. python setup.py build # as expected

3. then invoke the VisualC compiler manually, like done by python setup
(fortunately, Python show the commands it uses, with all their parameter) but
with adding the /MANIFEST parameter.

(I'm not on /that/ PC right now, but'Ill try to send the actual compiler
invocation)

4. python setup.py install # as expected


On another side, for some reason, I thought that the way the service is
installing/running is very hard to understand.
I think it's due to some things :

1. The fact that one uses a very light config file that doesn't contain any form
of executable code as the starting point for the service. That has mislead me
quite a lot. I'd suggest to add a note in the example files explaining the whole
service start up operation. I'd do that if you want to.

2. The fact that the service keeps on telling "see the log for more information"
but fail to tell where the logs actually are. Since the log location is, in a
simple setup, given by default, it's very hard to figure it out without reading
the C code. It'd be nice if the program would actually write the logs locations
on the console when it says "see the log".

3. Some Windows error codes are hard to understand (I'm mostly a linux guy now).
One can find the information about it on the web for sure, but a one-line hint
would greatly help. For example : "The service encountered a Windows error, code
: 1067. This *might* mean that you're not starting it with administrator
privileges". The difficulty here is to not mislead the user... See this one as
"ranm thought" :-)

Anyway, I'll keep you posted and try to figure out why the /MANIFEST flag is
missing.

Stefan


> Le 12 juin 2015 à 23:51, Mark Grandi <markgra...@gmail.com> a écrit :
>
>
> The reason its not visible is because the version on PyPi does not have the
> Win32ServiceBase C extension installed, because that requires another python C
> dependency library, Cx_Logging, which is almost impossible to find unless you
> look in the source code to see why its not being compiled.
>
> I am in the middle of writing a blog post that covers this, but one solution
> is to just recompile the packages on PyPi properly.
>
> ~Mark
>
>
> > On Jun 12, 2015, at 7:40 AM, Anthony Tuininga <anthony.tuini...@gmail.com>
> > wrote:
> >
> > Hi,
> >
> > It is indeed merged and is found on the default branch. I haven't had much
> > time available recently to work on this project so it has languished. There
> > is still the pull request from Thomas regarding packages and some reasonable
> > way of handling the way Ubuntu patches its Python version to consider before
> > making a new release. That said, I hope to have more time in the next few
> > weeks. If you can build yourself, then you can have it immediately; you can
> > also request it directly from me if you can't build and you need it sooner
> > than that. :-)
> >
> > Anthony
> >
> > On Fri, Jun 12, 2015 at 3:08 AM, Stefan Champailler <schampail...@skynet.be
> > <mailto:schampail...@skynet.be>> wrote:
> > Hello,
> >
> > I need to freeze a windows service (a cherrypy server to be exact) with
> > Python 3.4. Current cx_freeze doesn't include the "base" for that.
> >
> > Looking around, I've found the pull request #49 which seems to enable that
> > and which was merged...
> >
> > So I was wondering why it didn't end up in the 4.3.4 release... Maybe it was
> > merged on another branch ? I've looked at BitBucket a lot but I fail to
> > understand where it went :-(
> >
> > Do you think it'll end in the stable release at some point ?
> >
> > Best regards,
> >
> > Stefan
> >
> > --
> > Timeo Danaos et dona ferentes
> > Twitter : @Arakowa1
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > cx-freeze-users mailing list
> > cx-freeze-users@lists.sourceforge.net
> > <mailto:cx-freeze-users@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
> > <https://lists.sourceforge.net/lists/listinfo/cx-freeze-users>
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > cx-freeze-users mailing list
> > cx-freeze-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
> ------------------------------------------------------------------------------
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to