GithubHelp home page GithubHelp logo

Comments (6)

cyang-kth avatar cyang-kth commented on July 17, 2024

@august-zhu

That is only warning but not error according to the log. You can continue with make to see if the Python can be build successfully.

I actually encountered every similar warning on my machine. So I will try to remove some of them or suppress them.

from fmm.

cyang-kth avatar cyang-kth commented on July 17, 2024

@august-zhu

You can run

rm CMakeCache.txt
cmake -Wno-dev ..

from fmm.

august-zhu avatar august-zhu commented on July 17, 2024

@cyang-kth

Thanks. It worked.

from fmm.

august-zhu avatar august-zhu commented on July 17, 2024

Hi,

I had another problem - adding the build folder to PYTHONPATH is not working.

I can only import fmm when the current directory is under the build folder (the importing fmm can obviously run under the build folder).

august_zhu@DESKTOP-P5KQ2S3 /cygdrive/d/fmm-master/python/build
$ python
Python 2.7.16 (default, Mar 20 2019, 12:15:19)
[GCC 7.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fmm
>>>

I checked the sys.path, and it seems that the build folder is in the PYTHONPATH:

$ echo $PYTHONPATH
:/cygdrive/d/fmm-master/python/build

But when I tried to import fmm under a different folder, it gives me error:

$ python
Python 2.7.16 (default, Mar 20 2019, 12:15:19)
[GCC 7.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/home/august_zhu', '/cygdrive/d/fmm-master/python/build', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
>>> import fmm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/cygdrive/d/fmm-master/python/build/fmm.py", line 17, in <module>
    _fmm = swig_import_helper()
  File "/cygdrive/d/fmm-master/python/build/fmm.py", line 16, in swig_import_helper
    return importlib.import_module('_fmm')
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No such file or directory
>>> exit()

Thanks.

from fmm.

cyang-kth avatar cyang-kth commented on July 17, 2024

@august-zhu

I am not sure about that problem.
I do not have a windows computer at hand to test it. It builds successfully on Mac and Ubuntu.

It seems that you have a cygwin setup, but you install the fmm at some other drive.

/cygdrive/d/fmm-master/python/build

Can you try to place it under some folder in the your home directory like this one

/home/august_zhu/workspace/fmm-master

Also remember to remove the old PYTHONPATH from your .bashrc file

nano ~/.bashrc

Comment out or remove this line

# export PYTHONPATH=${PYTHONPATH}:/cygdrive/d/fmm-master/python/build

Remember to run

source ~/.bashrc

to update the environment variables each time you modify that file.

from fmm.

cyang-kth avatar cyang-kth commented on July 17, 2024

This issue is not active for 7 days, so it is closed.

from fmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.