-
Notifications
You must be signed in to change notification settings - Fork 130
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
execution error #51
Comments
Hi, What is in your folder "C:\Users\LPT14\Anaconda3\envs\py27\lib\site-packages\topology_optimization-0.4.0-py2.7.egg\topy\data"? |
Thanks for your fast answer,
here is the inside of the folder:
04/06/2021 03:32 PM <DIR> .
04/06/2021 03:32 PM <DIR> ..
04/06/2021 03:32 PM 4,734 H18B_K.py
04/06/2021 03:32 PM 4,634 H18B_K.pyc
04/06/2021 03:32 PM 4,695 H8bar_K.py
04/06/2021 03:32 PM 4,598 H8bar_K.pyc
04/06/2021 03:32 PM 2,457 H8T_K.py
04/06/2021 03:32 PM 2,722 H8T_K.pyc
04/06/2021 03:32 PM 3,890 H8_K.py
04/06/2021 03:32 PM 3,868 H8_K.pyc
04/06/2021 03:32 PM 974 matlcons.py
04/06/2021 03:32 PM 864 matlcons.pyc
04/06/2021 03:32 PM 2,676 Q4bar_K.py
04/06/2021 03:32 PM 2,805 Q4bar_K.pyc
04/06/2021 03:32 PM 1,941 Q4T_K.py
04/06/2021 03:32 PM 2,251 Q4T_K.pyc
04/06/2021 03:32 PM 2,228 Q4_K.py
04/06/2021 03:32 PM 2,434 Q4_K.pyc
04/06/2021 03:32 PM 2,496 Q5B_K.py
04/06/2021 03:32 PM 2,713 Q5B_K.pyc
04/06/2021 03:32 PM 1,122 recreate_all.py
04/06/2021 03:32 PM 1,432 recreate_all.pyc
04/06/2021 03:32 PM 1 __init__.py
04/06/2021 03:32 PM 199 __init__.pyc
22 File(s) 55,734 bytes
2 Dir(s) 117,667,880,960 bytes free
…________________________________
From: William Hunter ***@***.***>
Sent: Tuesday, April 6, 2021 16:12
To: williamhunter/topy ***@***.***>
Cc: Luc ***@***.***>; Author ***@***.***>
Subject: Re: [williamhunter/topy] execution error (#51)
Hi,
What is in your folder "C:\Users\LPT14\Anaconda3\envs\py27\lib\site-packages\topology_optimization-0.4.0-py2.7.egg\topy\data"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#51 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMNEGJHZ7GFIWXX6ATGUBF3THMJEVANCNFSM42O2ADAA>.
|
You can see that you don't have the Q4bar.K file. What version of Python are you using? What version of Topy did you install? |
I picked Topy-master and Topy-0.4.1 but I get the error on both. |
Did you follow the instructions on this page?
https://github.com/williamhunter/topy/releases/tag/0.4.1
…On Tue, 6 Apr 2021 at 16:29, Luc ***@***.***> wrote:
I picked Topy-master and Topy-0.4.1 but I get the error on both.
I am using Python 2.7.18 on a virtual environment with Conda.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMS2UIOD2CRF7EH4P5NILDTHMLFVANCNFSM42O2ADAA>
.
|
Yes I did. |
Hmmm. I haven't looked at this in a few years. Give me some time and I'll investigate |
Sure. Thanks a lot for your commitment. |
Hello, my problem PS C:\users\admin\Documents\topy\scripts> python optimise.py inverter_3d_etaopt_gsf_dquad.tpd PS C:\users\admin\Documents\topy\scripts> pip list backports.functools-lru-cache 1.6.4 |
In my case, the problem came from np.load in elements.py. I solved this problem by modifying the load function in |
didn't work |
Found a way, basically you need the missing .K "stiffness matrix" files. For some reason they are not generated during setup.py installation. I got them generated and I'm hosting them on my site sasserisop.com/topyKFiles.zip There is 7 of them you will need. Place these files under C:\Users\YOURUSERNAME\anaconda3\envs\py27\Lib\site-packages\topology_optimization-0.4.0-py2.7.egg\topy\data There is one more thing I had to do before I got it to work and that is to allow_pickle=True like shushu-qin mentioned, to do this: under the same directory with the .K files, go back up one directory and you will find elements.py From there, edit it with your text editor and change every instance of load(fname) to load(fname, allow_pickle=True). Now to test, open a terminal under the py27 environment you created, (this is assuming you went through the installation steps in github.com/williamhunter/topy/releases/tag/0.4.1). Now cd to the optimise.py file, in my case, type: cd C:\Users\YOURUSERNAME\Desktop\topy-0.4.1\scripts Now type: python .\optimise.py ../examples/mbb_beam/beam_2d_reci_10_iters.tpd If everything above was done correctly this will generate 10 iterations for the given tpd file and spit out the results in the same directory optimise.py is in. Hooray! Now all we need is a new fixed release for the masses. I might add a pull request :) |
I installed ToPy successfully on Windows, but when I try to execute it with the example "python .\optimise.py .\beam_2d_reci_10_iters.tpd" I keep having the error : IOError: [Errno 2] No such file or directory: 'C:\Users\LPT14\Anaconda3\envs\py27\lib\site-packages\topology_optimization-0.4.0-py2.7.egg\topy\data\Q4bar.K'
I tried on 2 computers and I have the problem on both.
Did I do anything wrong? Thanks for your help.
The text was updated successfully, but these errors were encountered: