anstmichaels / emopt

A suite of tools for optimizing the shape and topology of electromagnetic structures.
BSD 3-Clause "New" or "Revised" License
97 stars 41 forks source link

Change of petsc repository #12

Open dorianherle opened 4 years ago

dorianherle commented 4 years ago

Hi

I am trying to install emopt. While running the install.py file, I got the following error:

Cloning into 'petsc'...
remote: Repository petsc/petsc not found
fatal: repository 'https://bitbucket.org/petsc/petsc/' not found
[Errno 2] No such file or directory: 'petsc'

Upon visiting https://bitbucket.org/petsc/petsc/', it tells me that

the repository "petsc/petsc" has been deleted.It now lives at https://gitlab.com/petsc/petsc.

So I replaced the old address with the new address in install.py and rerun the installation. However, this time, I got:

Checking environment... 
ERROR: cannot process file /home/hamed/.emopt/lib/petsc/conf/petscvariables
ERROR during configure (log file not open yet)
makefile:20: /lib/slepc/conf/slepc_common: No such file or directory
make: *** No rule to make target '/lib/slepc/conf/slepc_common'.  Stop.
makefile:20: /lib/slepc/conf/slepc_common: No such file or directory
make: *** No rule to make target '/lib/slepc/conf/slepc_common'.  Stop.
makefile:20: /lib/slepc/conf/slepc_common: No such file or directory
make: *** No rule to make target '/lib/slepc/conf/slepc_common'.  Stop.

I had a look at https://github.com/anstmichaels/emopt/issues/10 and based on that I changed SLEPC_VERSION = "3.12.0" but this did not solve the issue. I still get the same error as before.

Do you know how to solve this ? Any help would be highly appreciated. Thank you very much !

anstmichaels commented 4 years ago

Hi,

It seems to be looking in the wrong place for these installation files. I am not entirely sure why that would happen. As a first attempt at fixing this, can you try deleting the ~/.emopt directory and running install.py again? If that fails again, can you send me more of the script output?

smhooten commented 3 years ago

Hey,

I got this same error when I mistakenly installed mpi4py with anaconda. If you used anaconda, you should conda remove mpi4py and then install with pip (this ensures you use the systemwide mpicc). Then rerun the install script.