-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with mupif file transfer #54
Comments
The uploadPyroFile function is no longer included in the pyroutil module (or anywhere else). The mentioned mupif.PyroFile.copy function is used to create a local/remote copy of a local/remote file. Both arguments of the function (src and dst) can be a string path (local file), a PyroFile instance or its remote representation as Pyro5.api.Proxy. Example of creating a local copy of a remote file is: mupif.PyroFile.copy(remote_file, '/path/to/save/the/file.txt') Was this answer helpful? |
I manage to copy the files now, after creating an intance of a pyro file and using the pyrofile.copy method. As the method getpyrofile of the simplejobmanager and jobmanager module currently doesn't work - and I suppose the uploadfile method doesn't work either - does this mean that both methods will be abandonned and replaced by pyrofile.copy? |
Now there seems to be a different problem: the copy of the file is not complete, and strangely enough has the length of 1048576, which is the buffer size internally defined in the pyrofile module. Is there something wrong with the copy method? The file size remains the same even if I give an alternative buffer size while creating the pyrofile instance. |
Can you provide a snapshot of the code & sample file to document the issue? |
Here is the code: # copy Abaqus input files to server work directories
for inpFile in inpFiles:
try:
pf = mp.PyroFile(filename = os.path.join(workdir,inpFile), mode = 'wb', buffsize=1024*1024*4)
except Exception as err:
print(' *** getPyroFile ' + repr(err))
try:
mp.PyroFile.copy(os.path.join(inpDir, inpFile),pf)
print('COPIED ABAQUS', inpFile) The file I use has 3 MB. It is the file composelector_panel-quasi-v5.inp from the composelector project. Please note that a short file of less than 300 bytes got copied correctly |
I acknowledge the problem. This is for my group:
|
now there seems to be a different problem: |
When trying to transfer files (which worked without problems in the composelector-mupif version) with the commands:
I get the following error messages:
I noticed there is a copy method in the pyrofile module, but I don’t see what arguments have to be given. Does this replace the uploadpyrofile method? What about the getpyrofile error?
The text was updated successfully, but these errors were encountered: