Re: What's Going on between Python and win7?

2010-02-23 Thread Jerry Hill
On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wolftra...@invalid.com wrote:
 So what's the bottom line? This link notion is completely at odds with XP,
 and produces what I would call something of a mess to the unwary Python/W7
 user. Is there a simple solution?

I know people went off on a tangent talking about symbolic links and
hard links, but it is extremely unlikely that you created something
like that by accident.  Windows just doesn't create those without you
doing quite a bit of extra work.  It certainly doesn't create them
when you drag  drop files around through the normal interface.

 How do I get out of this pickle? I just want to duplicate the  program in
 another folder, and not link to an ancestor.

You need to dig into the technical details of what's happening on your
hard drive.  You say you copied a program from folder A to folder B.
 Can you describe, exactly, what steps you took?  What was the file
name of the program?  Was it just one file, or a directory, or several
files? What was the path to directory A?  What is the the path to
directory B?  When you open a CMD window and do a dir of each
directory, what exactly do you see?

You've given a pretty non-technical description of the problem you're
experiencing.  If you want more than wild speculation, you'll need to
give more specifics for people to help you with.

My wild guess: you held down control and shift while copying your
program.  That's the keyboard command to create a shortcut instead of
moving or copying a file.

-- 
Jerry
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread chris grebeldinger
Have you tried opening file explorer in administrative mode before
performing the copy?  I think if there isn't sufficient permissions,
it does something weird like that.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread Gib Bogle

chris grebeldinger wrote:

Have you tried opening file explorer in administrative mode before
performing the copy?  I think if there isn't sufficient permissions,
it does something weird like that.


No
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread Michel Claveau - MVP
Hi!

 Symbolic links are available in NTFS starting with Windows Vista.

No.
Hardlink come with NTFS, and already exists in W2K (and NT with specifics 
utilities).

@-salutations
-- 
Michel Claveau 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread buggsy2
W. eWatson wolftra...@invalid.com writes:

 I noted that this search box has
 some sort of filter associated with it. Possibly, in my early stages
 of learning to navigate in Win7, I accidentally set the filter.

 Comments?

FYI, the only truly reliable and powerful file search utility I've found
for Windows is Agent Ransack (http://download.mythicsoft.com/agentran.exe)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread Benjamin Kaplan
On Tue, Feb 23, 2010 at 3:35 PM, Michel Claveau - MVP
enleverlesx_xx...@xmclavxeaux.com.invalid wrote:
 Hi!

 Symbolic links are available in NTFS starting with Windows Vista.

 No.
 Hardlink come with NTFS, and already exists in W2K (and NT with specifics 
 utilities).

 @-salutations
 --
 Michel Claveau


And there's a difference between hard links and symbolic links.
Symbolic links were added to NTFS starting with Windows Vista.

http://msdn.microsoft.com/en-us/library/aa365680%28VS.85%29.aspx

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-23 Thread Steven D'Aprano
On Tue, 23 Feb 2010 09:34:00 -0500, Jerry Hill wrote:

 On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wolftra...@invalid.com
 wrote:
 So what's the bottom line? This link notion is completely at odds with
 XP, and produces what I would call something of a mess to the unwary
 Python/W7 user. Is there a simple solution?
 
 I know people went off on a tangent talking about symbolic links and
 hard links, but it is extremely unlikely that you created something like
 that by accident.  Windows just doesn't create those without you doing
 quite a bit of extra work.  It certainly doesn't create them when you
 drag  drop files around through the normal interface.

I find it far more likely that Windows 7 makes it easy for the user to 
accidentally produce links rather than copies, rather than that Python 
suddenly has developed a bug where it opens a completely different file 
to the one you ask for.

But more likely still is some confusion regarding paths.

-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Krister Svanlund
On Mon, Feb 22, 2010 at 4:22 PM, W. eWatson wolftra...@invalid.com wrote:
 Last night I copied a program from folder A to folder B. It inspects the
 contents of files in a folder. When I ran it in B, it gave the results for
 A! Out of frustration I changed the name in A, and fired up the program in
 B. Win7 went into search mode for the file. I looked at properties for the B
 program, and it was clearly pointing to folder A.

 Anyone have this happen to them?

 Another anomaly. I have the files track.py and trackstudy.py in the same
 folder along with 100 or so other py and txt data files. When I did a search
 from the folder window in the upper right corner, search only found one of
 the two. I called HP tech support about it, and they could see it for
 themselves via remote control. They had no idea, but agreed to  contact MS.
 In this case, I noted that this search box has some sort of filter
 associated with it. Possibly, in my early stages of learning to navigate in
 Win7, I accidentally set the filter.

 Comments?

I can't really see the python related problem here...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread MRAB

W. eWatson wrote:
Last night I copied a program from folder A to folder B. It inspects the 
contents of files in a folder. When I ran it in B, it gave the results 
for A! Out of frustration I changed the name in A, and fired up the 
program in B. Win7 went into search mode for the file. I looked at 
properties for the B program, and it was clearly pointing to folder A.



Sounds like you didn't copy it but made a shortcut to it instead.


Anyone have this happen to them?

Another anomaly. I have the files track.py and trackstudy.py in the same 
folder along with 100 or so other py and txt data files. When I did a 
search from the folder window in the upper right corner, search only 
found one of the two. I called HP tech support about it, and they could 
see it for themselves via remote control. They had no idea, but agreed 
to  contact MS. In this case, I noted that this search box has some sort 
of filter associated with it. Possibly, in my early stages of learning 
to navigate in Win7, I accidentally set the filter.


Comments?


Not Python-related.
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, W. eWatson wolftra...@invalid.com wrote:

 Last night I copied a program from folder A to folder B.

[tail of various windows breakages elided]

 Comments?

Switch to Linux?

Or at least install Cygwin?

-- 
Grant Edwards   grante Yow! Maybe I should have
  at   asked for my Neutron Bomb
   visi.comin PAISLEY --
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Shashwat Anand
Programming is most fruiful in *nix environment.

On Mon, Feb 22, 2010 at 9:59 PM, Grant Edwards inva...@invalid.invalidwrote:

 On 2010-02-22, W. eWatson wolftra...@invalid.com wrote:

  Last night I copied a program from folder A to folder B.

 [tail of various windows breakages elided]

  Comments?

 Switch to Linux?

 Or at least install Cygwin?

 --
 Grant Edwards   grante Yow! Maybe I should have
  at   asked for my Neutron Bomb
   visi.comin PAISLEY --
 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson

On 2/22/2010 8:29 AM, Grant Edwards wrote:

On 2010-02-22, W. eWatsonwolftra...@invalid.com  wrote:


Last night I copied a program from folder A to folder B.


[tail of various windows breakages elided]


Comments?


Switch to Linux?

Or at least install Cygwin?

Yes, definitely not related, but maybe some W7 user has a similar 
experience here. It seems a natural place to look, since it should be 
reasonably common.


I have Cygwin.
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Gib Bogle

MRAB wrote:

W. eWatson wrote:
Last night I copied a program from folder A to folder B. It inspects 
the contents of files in a folder. When I ran it in B, it gave the 
results for A! Out of frustration I changed the name in A, and fired 
up the program in B. Win7 went into search mode for the file. I looked 
at properties for the B program, and it was clearly pointing to folder A.



Sounds like you didn't copy it but made a shortcut to it instead.


Windows 7 has symbolic links?
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
Gib Bogle g.bo...@auckland.no.spam.ac.nz writes:

 MRAB wrote:
 W. eWatson wrote:
 Last night I copied a program from folder A to folder B. It
 inspects the contents of files in a folder. When I ran it in B, it
 gave the results for A! Out of frustration I changed the name in A,
 and fired up the program in B. Win7 went into search mode for the
 file. I looked at properties for the B program, and it was clearly
 pointing to folder A.

 Sounds like you didn't copy it but made a shortcut to it instead.

 Windows 7 has symbolic links?

   Symbolic links are designed to aid in migration and application
   compatibility with UNIX operating systems. Microsoft has implemented
   its symbolic links to function just like UNIX links.

   :
   
   Symbolic links are available in NTFS starting with Windows Vista.

http://msdn.microsoft.com/en-us/library/aa365680(VS.85).aspx

-- 
John Bokma   j3b

Hacking  Hiking in Mexico -  http://johnbokma.com/
http://castleamber.com/ - Perl  Python Development
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, John Bokma j...@castleamber.com wrote:
 Gib Bogle g.bo...@auckland.no.spam.ac.nz writes:

 MRAB wrote:
 W. eWatson wrote:
 Last night I copied a program from folder A to folder B. It
 inspects the contents of files in a folder. When I ran it in B, it
 gave the results for A! Out of frustration I changed the name in A,
 and fired up the program in B. Win7 went into search mode for the
 file. I looked at properties for the B program, and it was clearly
 pointing to folder A.

 Sounds like you didn't copy it but made a shortcut to it instead.

 Windows 7 has symbolic links?

Symbolic links are designed to aid in migration and application
compatibility with UNIX operating systems. Microsoft has implemented
its symbolic links to function just like UNIX links.

So symbolic links on W7 function like Unix (hard) links
rather than Unix _symbolic_ links??

-- 
Grant Edwards   grante Yow! Is this sexual
  at   intercourse yet??  Is it,
   visi.comhuh, is it??
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
Grant Edwards inva...@invalid.invalid writes:

 On 2010-02-22, John Bokma j...@castleamber.com wrote:
 Gib Bogle g.bo...@auckland.no.spam.ac.nz writes:

 MRAB wrote:
 W. eWatson wrote:
 Last night I copied a program from folder A to folder B. It
 inspects the contents of files in a folder. When I ran it in B, it
 gave the results for A! Out of frustration I changed the name in A,
 and fired up the program in B. Win7 went into search mode for the
 file. I looked at properties for the B program, and it was clearly
 pointing to folder A.

 Sounds like you didn't copy it but made a shortcut to it instead.

 Windows 7 has symbolic links?

Symbolic links are designed to aid in migration and application
compatibility with UNIX operating systems. Microsoft has implemented
its symbolic links to function just like UNIX links.

 So symbolic links on W7 function like Unix (hard) links
 rather than Unix _symbolic_ links??

Which leads you to this conclusion?

According to http://msdn.microsoft.com/en-us/library/aa365006(VS.85).aspx

There are three types of file links supported in the NTFS file
system: hard links, junctions, and symbolic links. This topic is an
overview of hard links and junctions. For information about symbolic
links, see Creating Symbolic Links.

Creating Symbolic Links:
http://msdn.microsoft.com/en-us/library/aa363878(VS.85).aspx

-- 
John Bokma   j3b

Hacking  Hiking in Mexico -  http://johnbokma.com/
http://castleamber.com/ - Perl  Python Development
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Gib Bogle

John Bokma wrote:

Gib Bogle g.bo...@auckland.no.spam.ac.nz writes:


MRAB wrote:

W. eWatson wrote:

Last night I copied a program from folder A to folder B. It
inspects the contents of files in a folder. When I ran it in B, it
gave the results for A! Out of frustration I changed the name in A,
and fired up the program in B. Win7 went into search mode for the
file. I looked at properties for the B program, and it was clearly
pointing to folder A.


Sounds like you didn't copy it but made a shortcut to it instead.

Windows 7 has symbolic links?


   Symbolic links are designed to aid in migration and application
   compatibility with UNIX operating systems. Microsoft has implemented
   its symbolic links to function just like UNIX links.

   :
   
   Symbolic links are available in NTFS starting with Windows Vista.


http://msdn.microsoft.com/en-us/library/aa365680(VS.85).aspx



That explains my ignorance of this (excellent) development.  I'm still using W2K 
and XP.

--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, John Bokma j...@castleamber.com wrote:
 Grant Edwards inva...@invalid.invalid writes:

 Windows 7 has symbolic links?

Symbolic links are designed to aid in migration and application
compatibility with UNIX operating systems. Microsoft has implemented
its symbolic links to function just like UNIX links.


 So symbolic links on W7 function like Unix (hard) links
 rather than Unix _symbolic_ links??

 Which leads you to this conclusion?

The quote above that says that symbolic links on W7 function
just like links on Unix.  A link on Unix is a hard link.  I
presumed that if they meant symbolic links on Unix, they
would have said symbolic links.


-- 
Grant Edwards   grante Yow! What a COINCIDENCE!
  at   I'm an authorized SNOOTS
   visi.comOF THE STARS dealer!!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Lawrence D'Oliveiro
In message mailman.60.1266854492.4577.python-l...@python.org, MRAB wrote:

 Not Python-related.

Seems to be pretty common with Windows-related complaints in this group.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Lawrence D'Oliveiro
In message 873a0tszco@castleamber.com, John Bokma wrote:

 According to http://msdn.microsoft.com/en-us/library/aa365006(VS.85).aspx
 
 There are three types of file links supported in the NTFS file
 system: hard links, junctions, and symbolic links. This topic is an
 overview of hard links and junctions.

“Junctions” sound like Linux/Unix “mount points”, plus Linux-style “bind 
mounts”. Except of course Dimdows puts it all into the NTFS-specific 
implementation, instead of at the virtual filesystem layer. So whereas Linux 
can handle these while letting you mix and match different filesystem types 
(ext3, XFS, even FAT32, etc), Windows cannot.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
So what's the bottom line? This link notion is completely at odds with 
XP, and produces what I would call something of a mess to the unwary 
Python/W7 user. Is there a simple solution?


How do I get out of this pickle? I just want to duplicate the  program 
in another folder, and not link to an ancestor.


--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread David Robinow
On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wolftra...@invalid.com wrote:
 How do I get out of this pickle? I just want to duplicate the  program in
 another folder, and not link to an ancestor.
Ask in an appropriate forum. I'm not sure where that is but you might
try http://www.sevenforums.com/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson

On 2/22/2010 6:39 PM, David Robinow wrote:

On Mon, Feb 22, 2010 at 8:25 PM, W. eWatsonwolftra...@invalid.com  wrote:

How do I get out of this pickle? I just want to duplicate the  program in
another folder, and not link to an ancestor.

Ask in an appropriate forum. I'm not sure where that is but you might
try http://www.sevenforums.com/

Not in my NG list.

If the way this is going is that it occurs on W7, not just in my case, 
then it will impact many Python users.

--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Alf P. Steinbach

* W. eWatson:
So what's the bottom line? This link notion is completely at odds with 
XP,


Well, Windows NT has always had *hardlinks*. g

I found it a bit baffling that that functionality is documented as not 
implemented for Windows in the Python standard library.


But OK, it was non-trivial to do prior to Windows 2000; you had to sort of hack 
it using the backup APIs since the functionality was not exposed through the 
ordinary file APIs.




and produces what I would call something of a mess to the unwary 
Python/W7 user. Is there a simple solution?


How do I get out of this pickle? I just want to duplicate the  program 
in another folder, and not link to an ancestor.


Copy and paste.


Cheers  hth.,

- Alf
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson

On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:

* W. eWatson:

So what's the bottom line? This link notion is completely at odds with
XP,


Well, Windows NT has always had *hardlinks*. g

I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python standard library.

But OK, it was non-trivial to do prior to Windows 2000; you had to sort
of hack it using the backup APIs since the functionality was not exposed
through the ordinary file APIs.




and produces what I would call something of a mess to the unwary
Python/W7 user. Is there a simple solution?

How do I get out of this pickle? I just want to duplicate the program
in another folder, and not link to an ancestor.


Copy and paste.


Cheers  hth.,

- Alf

I thought that's what I did. Is there some other way?
--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson

On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:

* W. eWatson:

So what's the bottom line? This link notion is completely at odds with
XP,


Well, Windows NT has always had *hardlinks*. g

I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python standard library.

But OK, it was non-trivial to do prior to Windows 2000; you had to sort
of hack it using the backup APIs since the functionality was not exposed
through the ordinary file APIs.




and produces what I would call something of a mess to the unwary
Python/W7 user. Is there a simple solution?

How do I get out of this pickle? I just want to duplicate the program
in another folder, and not link to an ancestor.


Copy and paste.


Cheers  hth.,

- Alf

Alf? Hello,Norway. My wife is Norwegian and that was her father's name.

I thought that's what I did. Is there some other way?

Tusin Tak (That's about the size of my vocabulary and spelling ability! 
1000 thanks. What is the correct spelling?)

--
http://mail.python.org/mailman/listinfo/python-list


Re: What's Going on between Python and win7?

2010-02-22 Thread Alf P. Steinbach

* W. eWatson:

On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:

* W. eWatson:

So what's the bottom line? This link notion is completely at odds with
XP,


Well, Windows NT has always had *hardlinks*. g

I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python standard library.

But OK, it was non-trivial to do prior to Windows 2000; you had to sort
of hack it using the backup APIs since the functionality was not exposed
through the ordinary file APIs.




and produces what I would call something of a mess to the unwary
Python/W7 user. Is there a simple solution?

How do I get out of this pickle? I just want to duplicate the program
in another folder, and not link to an ancestor.


Copy and paste.


Cheers  hth.,

- Alf

Alf? Hello,Norway. My wife is Norwegian and that was her father's name.

I thought that's what I did. Is there some other way?


(A)
For using Explorer, see

  url: http://windows.microsoft.com/en-us/windows7/Copy-and-paste-a-file

and in particular look at the tips at the bottom.

(B)
To get absolute control you can use the command interpreter. I don't have 
Windows7 but googling yielded the following URL:


  url: http://www.sevenforums.com/tutorials/947-command-prompt.html

The copy command there copies files.


Tusin Tak (That's about the size of my vocabulary and spelling ability! 
1000 thanks. What is the correct spelling?)


That's tusen takk.


Cheers  hth.,

- Alf
--
http://mail.python.org/mailman/listinfo/python-list