Closed pp4 closed 6 years ago
The problem is that a wrong URL to download CL32-win64bit.zip is being generated by the function get_direct_url( )
, when called inside the function win_add_ccx( )
.
I assigned the direct link [1] to the variable zipfile_url
(in the file installer.py
), instead of letting it be assigned by the function get_direct_url( )
, and then installer is able to run properly and install CalculiXforWin.
@pp4 can you send me a PR or include a snippet of what to change the code from and to to fix it?
I simply hardcoded the download URL in the function win_add_ccx( )
:
zipfile_name = zipfile_webpage_url.split('/')[-2]
print(zipfile_webpage_url)
# zipfile_url = get_direct_url(zipfile_webpage_url, headers)
zipfile_url = 'https://downloads.sourceforge.net/project/calculixforwin/03.2/CL32-win64bit.zip?r=&ts=1523363869&use_mirror=netcologne'
print(zipfile_url)
And I'm running Python 3.6.5 in Anaconda 5.1.0 64-bit, in Windows 7 64-bit.
Your output above shows that the function get_direct_url is no longer working. The hosting site has probably changed how it is formatting its webpage. When I release v 0.9.5 I will include a fix for this issue. I'm currently working on the 0.9.5 update.
The installer can now install calculix and gmsh on Windows 64 bit per this commit: https://github.com/spacether/pycalculix/commit/6a14b299737f2dd283c458bd6026ca7e886c0eee Sadly, the latest version of gmsh hangs when meshing our sample files. My next todo list item is to peg the installed gmsh versions to working versions on Windows, Mac, and Linux.
I will close this issue once I merge my above commit into master.
The version of gmsh installed on windows is now pegged to 3.0.5 which works correctly.
Mac OS X gmsh is pegged to 3.0.5 which works correctly
This issue is fixed in v0.9.5 which is now released on Github
Many thanks, Justin!
Hi Justin,
Following your suggestion (https://github.com/spacether/pycalculix/issues/15#issuecomment-358070671), I ran 'pycalculix-add-feaprograms' with administrator privileges and, unlike before, the directory c:\users\ppe\app data\local\continuum\anaconda2\envs\python3\Scripts\gmsh-git-Windows64 was successfully created and gmsh installed.
However, the process ended with the following output:
Is it trying to download CL32-win64bit.zip from https://sourceforge.net/projects/calculixforwin/files/03.2/CL32-win64bit.zip/download/support (wrong link), instead of from https://sourceforge.net/projects/calculixforwin/files/03.2/CL32-win64bit.zip/download (correct link) ?
I afterwards tried running the example "hole-in-plate-full.py" and execution stopped when trying to write the 'hole-in-plate-full.frd' file (before being able to successfully install gmsh, it stopped when trying to write the 'hole-in-plate-full.inp' file).
Therefore, I am apparently facing issue #15, even though I've update to pycalculix 0.9.4 as you suggested (https://github.com/spacether/pycalculix/issues/15#issuecomment-349199095
Many thanks for your help, Justin! All the best, Pedro