Open tigllearner opened 1 year ago
I just verified that all requirements are installed correctly.
Are you sure you are using the correct environment in Pycharm? Go to File -> Settings -> Project -> Python Interpreter
. Then click Add Interpreter
. Choose the python interpretor in the directory associated with the cpacscreator
conda environment.
Have you tried running the script in the console after conda activate cpacscreator
?
yes,I run the script in the console but the results is the same,I am sure I use the correct environment which I created in Pycharm,maybe there exits some errors when I create cpacscreator ,here are some codes in the console: This shows that there is no packages include tigl3,I don't know if that's the reason,could you help me answer my question?I'm looking forward to your reply!
cpacscreator is a branch of tigl3. So basically it is tigl3 with additional functionality. It does not depend on tigl3. It seems to me that all dependencies are there. What happens when you activate the environment and run the script in the console?
conda activate cpacscreator
python create_airplaine.py
Note that imagio
is only available on Linux. You can still run the code on Windows, but the script will not concatenate the images to an animated gif for you.
thanks for your guideline! when I activate the environment and run the script in the console,it looks like that
Hmm, that is strange. One possibility could be a 32bit/64bit conflict. Are you using a 64bit Anaconda version? https://stackoverflow.com/questions/26621846/how-to-check-if-the-installed-anaconda-is-32-bit-or-64-bit
yes my Anaconda is 64bit and the conda_version is 22.9.0. I found that when I query the installed libraries by pycharm ->Terminal,it seems it's missing some packages like this,
Maybe it didn't install the full library.
Can you show the output of conda list
? Since you don't have pip installed in your cpacscreator
environment, you are likely using your system pip, which doesn't see the libraries in your cpacscreator
environment.
thanks for your reply,Maybe that's what you're referring to:
I have to admit, I am a bit at a loss here. I have a Miniforge installation and slightly different versions for some of the dependencies, but overall my setup looks very similar to yours.
Can you maybe check your PATH
variable? Mine starts like this:
C:\ProgramData\Miniforge3\envs\cpacscreator;C:\ProgramData\Miniforge3\envs\cpacscreator\Library\mingw-w64\bin;C:\ProgramData\Miniforge3\envs\cpacscreator\Library\usr\bin;C:\ProgramData\Miniforge3\envs\cpacscreator\Library\bin;C:\ProgramData\Miniforge3\envs\cpacscreator\Scripts;C:\ProgramData\Miniforge3\envs\cpacscreator\bin;C:\ProgramData\Miniforge3\condabin;[...]
My tigl3.dll
is in C:\ProgramData\Miniforge3\envs\cpacscreator\Library\bin
. This directory is in the PATH
.
Can you verify that tigl3.dll
is in your PATH
?
Yes,my tigl3.dll
is in E:\ProgramData\Anaconda3\envs\cpacscreator\Library\bin
,I'm very confused,however,thank you very much for your patient answer and suggestions.I will have a double check.
I create a environment named cpacscreator like this: conda create -n cpacscreator python=3.6 cpacscreator numpy imageio -c dlr-sc conda activate cpacscreator but when I run the create_airplane.py in pycharm under the cpacscreator environment,The results showed{ ImportError: DLL load failed: },I found the cpacscreator don't include some packages such as tigl3 and occ,so I can't run the demo successfully,would you help me fix my question? thanks you a lot!