Comments (6)
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.
You can run
rm CMakeCache.txt
cmake -Wno-dev ..
from fmm.
Thanks. It worked.
from fmm.
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.
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.
This issue is not active for 7 days, so it is closed.
from fmm.
Related Issues (20)
- Installation error
- Could we get (Matched edge index,indices) via command line approach
- can NOT run command "make .." under miniconda3 virtual environment
- Unable to perform python fmm_test.py on Win10 Home (64bit) with cygwin environment HOT 9
- error HOT 1
- Error when trying to execute GPS track / GPS points in CSV file HOT 3
- codes of python (fmm_example.ipynb) cannot output file with ogeom information since the result_config.output_config has no attribute of "write_ogeom"
- cpath and mgeom unmatched HOT 3
- Import error when running fmm_test.py
- make error HOT 2
- How to output duration
- Segmentation fault (core dumped) when constructing Network
- Build Error HOT 3
- cpath has multiple paths
- Strange Matching Results with Circles or Multiple Routes
- cmake报错
- Python API ImportError fmm related
- typedef std::conditional_t HOT 1
- "Cannot find proj.db" issue HOT 1
- build issue - make HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmm.