cppminer icon indicating copy to clipboard operation
cppminer copied to clipboard

ModuleNotFoundError

Open TenzinJinpa2019 opened this issue 4 years ago • 4 comments

Hi,

I am trying to train the model and I am getting this error message.

error: No module named 'cppminer.cpp_parser'

I am not able to resolve the issue .

Thanks

TenzinJinpa2019 avatar Nov 02 '20 20:11 TenzinJinpa2019

Hi @TenzinJinpa2019 It seems that you didn't add cppminer/cpp_parser module to your Python module search path, consider to update the PYTHONPATH environmental variable or projects settings for your IDE.

Kolkir avatar Nov 04 '20 14:11 Kolkir

Hi @TenzinJinpa2019 It seems that you didn't add cppminer/cpp_parser module to your Python module search path, consider to update the PYTHONPATH environmental variable or projects settings for your IDE.

Hello @Kolkir , I have the same issue, but I am not using any IDE, just command line, what is it I have to do exactly to resolve the issue ? Or should I use an IDE like pycharm ?

OscarMouches avatar May 25 '21 11:05 OscarMouches

Hi @OscarMouches as I said you have to configure PYTHONPATH environmental variable to point to the cppminer/cpp_parser module. For POSIX systems the command line can looks like this: export PYTHONPATH="/home/someuser/cppminer/cpp_parser"

Kolkir avatar May 27 '21 05:05 Kolkir

Hi @Kolkir , I'm having the same issue, but I'm using Google Colab. Can you tell, how to configure PYTHONPATH env variable in colab? Stacks solution does not seem to work.

daimakram avatar Jul 02 '22 00:07 daimakram