-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to perform python fmm_test.py on Win10 Home (64bit) with cygwin environment #251
Comments
Also are the provided data input really GPS produced WGS84 data? The one provided by the test code given below What are these X and Y points referring to? documentation mentioned they are x, y (longitude / latitude) Searching for these points at the google map ends up being some where in the middle of the sea near Africa .. |
|
Hi, Thanks so much for clarification! So far I have managed to run map matching by ignoring the proj.db error in cygwin environment. It appears that the only persisting problem right now is that generating an UBODT precomputation file takes very long time. (About 5 hours for a network graph of 50000 nodes and 70000 edges) Should I rerun everything with C++ fmm commands in the terminal? Thanks! |
There should be little difference in terms of cpp or python call. Check this link for unit problem |
Hi thanks so much for quick response! Yes I have check the unit problem. Im indeed using longitude latitude based WSG84 data points and network. The spatial points are described in degrees. This is the code I ran with
` Following the installation guide provided, Were you really able to produce an UBODT file within couple seconds for the entire network graph? |
I am not sure if the performance degrade could be the win environment. You can try to reduce delta to 0.01 to check or try the stmatch model which does not require the UBODT precomputation (the stmatch could be slower than FMM in map matching but it does not need precomputation). |
I think it might be due to the fact I'm using cygwin environment. Its good to know it is possible to confirm the precomputation of UBODT is indeed a few seconds task if every thing is done correctly. I kept thinking its the flaws of the FMM algorithm. In the future if I have a related assignment that involves using the tool kit, I'd definitely prepare a ubuntu system beforehand. Anyway I have managed to the run the mapmatching successfully, just need to be a little patience generating ubodt. I'm test running now as we speak. Cant confirm why, but seems like its running well. Anyway really appreciate your advice |
I can confirm that the Window's cygwin environment taught by the installation page, heavily limits the computing resource and there dont seems to be any proper way to lift the restriction. Using an Ubuntu system fix all the problems I mentioned earlier. I'd suggest the Windows installation page to be updated and/or discouraged for use |
Note
This issue is based on the latest repo
Describe the bug
I followed the entire installation procedure based on this page:
https://fmm-wiki.github.io/docs/installation/windows.html
Took me awhile to setup everything.
Was able to run fmm in the cygwin terminal:
However when I run on python fmm_test.py to perform verify python binding:
Traceback (most recent call last): File "/home/guang/fmm6128/fmm/example/python/fmm_test.py", line 1, in <module> from fmm import Network,NetworkGraph,STMATCH,STMATCHConfig File "/usr/lib/python3.9/site-packages/fmm.py", line 15, in <module> import _fmm ImportError: dynamic module does not define module export function (PyInit__fmm)
Also notice the example test python script has some python syntax error which should be print():
print type(result)
print "Opath ",list(result.opath)
print "Cpath ",list(result.cpath)
Installation guide mentioned:
However for my case my _fmm.so is missing both in the build python folder and my python site packages location. My python site-packages location is also different, at
Expected behavior
All the above should not be present and I should be able to run my map matching by now.
Work on this as one of my official school assignment, deadline end nov 22..
Really appreciate your help soon.
TQ!
The text was updated successfully, but these errors were encountered: