0

I am running Ubuntu 16.04. After getting the requirements and following the pyadolc installation steps here, I appended

/home/my-name/pyadolc

to the PYTHONPATH variable in my ~/.profile file.

Now, running

python -c "import adolc"

returns the following message:

ImportError: No module named _adolc

The message is the same no matter the location that I run the command.

The Github readme warns of this error when running this command from the root folder of pyadolc.

I tried reinstalling pyadolc, prepending the directory instead of appending it to the PYTHONPATH, and temporarily appending the directory to the PYTHONPATH via sys.path.append() without success. Any ideas of what is going wrong?

Community
  • 1
  • 1
Francisco
  • 1
  • 1

1 Answers1

0

As user b45ch1 pointed out in the Github project page, the following solved my problem:

  1. Open ~/.profile and replace export PYTHONPATH="${PYTHONPATH}:/home/my-name/pyadolc" with export PYTHONPATH="${PYTHONPATH}:/home/my-name/pyadolc/build/lib.linux-x86_64-2.7", save and close.

  2. Reboot

Francisco
  • 1
  • 1