473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Mcmillen Installer Question

I am not sure whether this is the right place to post questions for
Installer but here you are.

I have inherited a python application, I work on UNIX and then have to
use Installed to produce a Windows version. All is OK with this except
when executing and the following error messages are displayed.

Can anyone advise how I can correct them or even just hide them.

D:\CCPS\Release-2.1-20040203\Client\Build\Windows\bin>ccps2_install.ex e

D:\CCPS\Release-2.1-20040203\Client\Build\Windows\buildccps2_install\o ut1.pyz/fcntl:7:
DeprecationWarning: the FCNTL module is deprecated; please use fcntl
D:\CCPS\Release-2.1-20040203\Client\Build\Windows\buildccps2_install\o ut1.pyz/termios:7:
DeprecationWarning: the TERMIOS module is deprecated; please use
termios
c:\python-2.3.2\Installer\iu.py:103: DeprecationWarning: the regex
module is deprecated; please use the re module
mod = imp.load_module(nm, None, nm, ('','',imp.C_BUILTIN))

CCPS INSTALL STARTING...

The CCPS_DATA_PATH is not defined !!!
Regards,
Andy Wilson
an*****@nortelnetworks.com
Jul 18 '05 #1
3 1462
The errrors most likely are because you are loading unix specific services.

Check out
http://www.python.org/doc/current/lib/unix.html

You probably only want to import them in the windows platform

if sys.platform[:3] == "win":
#import windows modules
else:
#import unix modules

The installer is probably working fine.

Anthony, Toronto
I have inherited a python application, I work on UNIX and then have to
use Installed to produce a Windows version. All is OK with this except
when executing and the following error messages are displayed.

Can anyone advise how I can correct them or even just hide them.

D:\CCPS\Release-2.1-20040203\Client\Build\Windows\bin>ccps2_install.ex e

D:\CCPS\Release-2.1-20040203\Client\Build\Windows\buildccps2_install\o ut1.pyz/fcntl:7:
DeprecationWarning: the FCNTL module is deprecated; please use fcntl
D:\CCPS\Release-2.1-20040203\Client\Build\Windows\buildccps2_install\o ut1.pyz/termios:7:
DeprecationWarning: the TERMIOS module is deprecated; please use
termios
c:\python-2.3.2\Installer\iu.py:103: DeprecationWarning: the regex
module is deprecated; please use the re module
mod = imp.load_module(nm, None, nm, ('','',imp.C_BUILTIN))

CCPS INSTALL STARTING...

The CCPS_DATA_PATH is not defined !!!
Regards,
Andy Wilson
an*****@nortelnetworks.com

Jul 18 '05 #2
an*****@nortelnetworks.com (Glawster) wrote:
DeprecationWarning: the FCNTL module is deprecated; please use fcntl DeprecationWarning: the TERMIOS module is deprecated; please use termios
Read the errors, you're using uppercase module names, I've had this a
few times and actually think it's legacy code in Installer.
DeprecationWarning: the regex module is deprecated; please use the re module
This is in your code I think - the regular expression module in 2.3.3
is called 're' not 'regex', e.g. re.compile()
CCPS INSTALL STARTING...

The CCPS_DATA_PATH is not defined !!!


I expect your program is failing as the path never got matched in the
regex.

Don't give up, Installer is great!

Does your program run OK in Windows (using the Python interpreter)?
This way we can see if it's Linux/Windows issues or Installer.
Jul 18 '05 #3
si************@yahoo.co.uk (simo) writes:
an*****@nortelnetworks.com (Glawster) wrote:
DeprecationWarning: the FCNTL module is deprecated; please use fcntl

DeprecationWarning: the TERMIOS module is deprecated; please use termios


Read the errors, you're using uppercase module names, I've had this a
few times and actually think it's legacy code in Installer.


It happens with me (at least with 5b5) with Installer too and it
doesn't have anything to do with the original source using uppercase
module names (nor even referencing those modules directly).

What appears to happen is that some of the system libraries being used
will have conditional references to modules like "fcntl" (lowercase).
Under Windows, there is an FCNTL module (uppercase) installed in the
library that results in the above error.

Somehow when installer is tracking imports, it processes the
conditional reference to fcntl, but locates the FCNTL module, only the
resulting compiled .pyc file is written as fcntl.pyc (lowercase). At
that point, the conditional code (which previously never found fcntl
and skipped it) actually loads the fcntl.pyc (generated from the
FCNTL.py) and you get the warning on the import.

I'm not sure if there was a later version than 5b5 (the web site
really does seem to be down doesn't it) that addressed this or not,
nor have I really been annoyed/impacted enough to troubleshoot it
myself.

-- David
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService :...
7
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
3
by: Brian Henry | last post by:
This has worked perfectly for the past year now all the sudden it will not compile the installer project correctly. All our source code is in a Source Safe database so every system we do this on...
1
by: Henry Stock | last post by:
I am not really sure what news group this should be posted to. It has to do with a visual studio install project for a c# application. We have noticed that if any of the files installed by the...
4
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm...
0
by: stevebarker | last post by:
Hi guys, I've got a quick question about installers in .NET. Any advice would be gratefully received! I'm writing a .NET Windows application that needs an installer. I'd really like the set...
3
by: mistral | last post by:
Not sure is this correct place for my question (i am not a programmer): I have some sofware packed into installer, file version: 2.11.15.0, in file properties shown "SFX CAB archive", name...
3
by: vmantrana | last post by:
Hi guys: I have a question about windows services, I have been trying to find the answer but only found the same question from 3 years ago with no response. I wish you guys can help me with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.