heprom / pymicro

A Python package to work with material microstructures and 3d data sets
http://pymicro.readthedocs.io
MIT License
42 stars 22 forks source link

No module named 'BasicTools' #16

Closed zs1996sjtu closed 5 months ago

zs1996sjtu commented 3 years ago

After I download the pymicro and set PYTHONPATH, I simply run an example of field_ipf.py, and the error occurs: File "../pymicro/pymicro/core/samples.py",line 23, in from BasicTools.Containers.ConstantRectilinearMesh import ( ModuleNotFoundError: No module named ‘BasicTools'

heprom commented 3 years ago

Hi,

basictools is a new dependency for pymicro. you can install it using conda: conda install -c conda-forge basictools

Regrads Henry

zs1996sjtu commented 3 years ago

I don’t have anaconda, do you how I can install this package on Ubuntu? Thank you, kind author 

发自我的iPhone

------------------ Original ------------------ From: Henry Proudhon @.> Date: Wed,Aug 11,2021 5:07 PM To: heprom/pymicro @.> Cc: zs1996sjtu @.>, Author @.> Subject: Re: [heprom/pymicro] No module named 'BasicTools' (#16)

Hi,

basictools is a new dependency for pymicro. you can install it using conda: conda install -c conda-forge basictools

Regrads Henry

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

inandi2 commented 8 months ago

Hi, Has anyone found a solution for this? I am also getting this error.

heprom commented 8 months ago

basictools is problematic to install on windows, we are working on this with @basileMarchand and will provide a solution soon.

basileMarchand commented 5 months ago

Hello @inandi2, a new version of pymicro has been released. It can be installed via pip and uses a fork of BasicTools that installs correctly on Windows. To install the new version of pymicro and its dependencies, simply run pip install pymicro.

Please confirm that it works well for you.

heprom commented 5 months ago

I'm closing this issue after commit #26