forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mercurial and SSH on OpenVMS

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
chameleon3



Joined: 09 Nov 2009
Posts: 15

PostPosted: Mon Mar 22, 2010 3:18 pm    Post subject: Mercurial and SSH on OpenVMS Reply with quote

Hello,
my development environment contains a Solaris server which i use to host my mercurial repository. Now i wanted to clone the repository by using ssh on my OpenVMS Alpha and received an exception.
I'm only using Mercurial 1.3.2 of the formal released ld image for jan 2009.
Is this a known problem? Is there a fix in a newer image?
I hope you can help me.

Thanks

Regards
Stefan
Back to top
View user's profile Send private message
bisonmalembouche



Joined: 01 Jun 2005
Posts: 74

PostPosted: Mon Mar 22, 2010 6:23 pm    Post subject: Reply with quote

Hello

Can you post your VMS version, the Solaris version, the exact commands used, and their output ?
Back to top
View user's profile Send private message Send e-mail
chameleon3



Joined: 09 Nov 2009
Posts: 15

PostPosted: Tue Mar 23, 2010 9:02 am    Post subject: Reply with quote

Hello,
my environment is:
OpenVMS 8.3
SunOS 5.9

SSH is working between this systems.

Command:
hg clone ssh://user@ip//home/user/repo1

Received Message:
unkonwn exception encounterd
Mercurial Distributed SCM (version 517594bec7b7)
Extensions loaded:
Traceback:
File "/mercurial_root/hg", line 14 in <module>
mercurail.dispatch.run()
File "merucrial_root/mercurial/dispatch.py", line 16 in run
sys.exit(dispatch(sys.argv[1:]))
File "/mercurial_root/mercurial /dispatch.py", line 25, in dispatch
return _dispatch(ui,args)
File "/mercurial_root/mercurial/dispatch.py line 41, in _runcatch
return _dispatch(ui, args)
File "/mercuarial_root/mercurial/dispatch.py", line 364, in _dispatch
ret = _runcommand(ui, options, cmd, d)
File "/mercurial_root/mercurial/dispatch.py", line 373 in checkargs
run cmdfunc()
.
.
.
File /python_root/lib/subprocess.py, line 1017, in _execute_cild
self.pid =os.fork
AttributeError: 'module' object has no attribute 'fork'

I hope you can help me.

Thanks

Regards
Stefan
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 633

PostPosted: Sat Mar 27, 2010 10:38 am    Post subject: Reply with quote

Stefan,

I have reproduced the problem using the latest LD images...

I have never use mercurial with ssh, it seem that to do this hg spawn some command using the subprocess module. Unfortunately the subprocess module is not, yet, implemented. This is is a work i progress, but Idon't know the status. In some others places in the hg code I have replace the use of the subprocess by another module, but this call use popen3 which is not implemented on VMS.
Some investigation may been need to evaluate if a popen2 can be used instead.


If you need a encrypted connection, you can use https instead of http.

Sorry for the inconvenience.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tesneddon



Joined: 29 Jul 2009
Posts: 6
Location: Perh WA, Australia

PostPosted: Fri Apr 09, 2010 7:19 pm    Post subject: Reply with quote

jfp wrote:

I have never use mercurial with ssh, it seem that to do this hg spawn some command using the subprocess module. Unfortunately the subprocess module is not, yet, implemented. This is is a work i progress, but Idon't know the status.


I know it's been a while Sad I have been quite distracted lately. I am trying to get this finished up over the weekend so I can pass it on to you for inclusion in the kit.

Tim.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chameleon3



Joined: 09 Nov 2009
Posts: 15

PostPosted: Tue Apr 20, 2010 7:56 pm    Post subject: Reply with quote

Does the new LD image contain a fix for this problem, or when is planned to fix it?
Thanks for the great support and work.

Regards
Stefan
Back to top
View user's profile Send private message
chameleon3



Joined: 09 Nov 2009
Posts: 15

PostPosted: Tue Jun 22, 2010 8:31 am    Post subject: Reply with quote

I have tested th new LD images. The problem is still there. Is planned to fix the problem?
Is the subprocess module available now?

Regards
Stefan
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 633

PostPosted: Thu Jun 24, 2010 4:47 pm    Post subject: Reply with quote

I don't know the status of the subprocess, still under development ?

Meanwhile do you try to use https instead http ?


JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group