Skip to content
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

ImportError: No module named frame3dd #1

Closed
zahmed80 opened this issue Dec 27, 2014 · 8 comments
Closed

ImportError: No module named frame3dd #1

zahmed80 opened this issue Dec 27, 2014 · 8 comments
Assignees

Comments

@zahmed80
Copy link

I installed as you explained, but i get this error when i run the test_frame.py

ImportError: No module named frame3dd

@dykesk
Copy link
Member

dykesk commented Dec 29, 2014

Can you be a bit more specific about your issue? What OS are you on? what version of python? Frame3DD? etc; any details would be helpful

@dykesk dykesk added the ready label Dec 29, 2014
@zahmed80
Copy link
Author

hi dykesk,
I am on window 8,
i am using 2.7.8 python 32 bits
This is what i did and tell me if i am missing anything

  1. Downloaded Pyframe3dd from github and unzipped it to C:/Python27/ as this is my python directory and then installed as per instruction i.e : (python setup.py install )

  2. then i opened up the the test_frame.py file in Pycharm and ran the program. and then got the error mentioned above.

howeverever... i did not download Frame3DD.. am i am suppose to ? i am sorry i am beginner at this, i thought all i need to do is download pyframe3dd and install as per instructions.
kindly guide me about Frame3dd do i have to download it ? and if yes then what to do with it ?

thanks

@dykesk dykesk assigned andrewning and unassigned rdamiani Dec 29, 2014
@dykesk
Copy link
Member

dykesk commented Dec 29, 2014

I do not believe that you need to install it separately because a version is included in pyFrame3DD but that software is in C and will need to be compiled - so you will need an appropriate compiler etc; for help on that you can see the general instructions for installing WISDEM here:
https://nwtc.nrel.gov/WISDEM

@andrewning - we should probably add some more documentation on the install process for pyFrame3DD similar to what is in WISDEM; would you mind taking that on or should we ask @rdamiani to handle it?

@zahmed80
Copy link
Author

adding a dummy level installation guide will be great. I be waiting for it.
i want to give my class assignments which needs pycharm3dd. So your early action will be highly appreciated.
Great job ! thanks

@andrewning
Copy link
Member

What errors did you get when you ran the installation command? I just cloned a clean copy and didn't have any problems. I'm not sure what else I would add to the documentation. Do you have a C compiler? Remove the build directory and try building again to see what error you get.
rm -rf build
python setup.py build

@zahmed80
Copy link
Author

Creating library build\temp.win32-2.7\Release\src_pyframe3dd.lib and object
build\temp.win32-2.7\Release\src_pyframe3dd.exp
py_main.obj : error LNK2019: unresolved external symbol _D3dmatrix referenced in
function _run
py_main.obj : error LNK2019: unresolved external symbol _D3matrix referenced in
function _run
frame3dd.obj : error LNK2019: unresolved external symbol _free_D3dmatrix referen
ced in function _deallocate
frame3dd.obj : error LNK2019: unresolved external symbol _free_D3matrix referenc
ed in function _deallocate
build\lib.win32-2.7_pyframe3dd.pyd : fatal error LNK1120: 4 unresolved external
s
error: command 'C:\Users\zeeshan ahmed\AppData\Local\Programs\Common\Micr
osoft\Visual C++ for Python\9.0\VC\Bin\link.exe' failed with exit status 11
20

C:\Python278>


when i run setup.py install above account is the error i get. I think i don't have a "C compiler" i guess. can you guide me some direction as to where to get this compiler from ?
regards

@dykesk
Copy link
Member

dykesk commented Dec 31, 2014

the instructions for the WISDEM software include compiler installation - see the part about MinGW https://nwtc.nrel.gov/WISDEM

@jarvisoac
Copy link

Change

from frame3dd import Frame, NodeData, ReactionData, ElementData, Options, StaticLoadCase

to

from pyframe3dd import Frame, NodeData, ReactionData, ElementData, Options, StaticLoadCase

may solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants