Tilemill will not start: module.js:485 error
I downloaded TileMill binary for Windows and installed it, but when I try to run it I get an error:
module.js: 485
process.dlopen(filename, module.exports)
error: The specified procedure could not be found.
(see attached screenshot)
Any suggestions? Am I doing something wrong?
My operating system is Windows XP (SP 2) with all upgrades installed and the processor is an Intel Centrino Duo
Thanks
-
Tilemill_Error_1_.jpg
62 KB
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Dane on 15 Nov, 2012 06:36 PM
Hi Fritz,
Do you perhaps have Mapnik installed separately from some previous efforts at map rendering? Or perhaps you installed the HOTOSM installer?
Dane
3 Posted by Fritz on 16 Nov, 2012 06:19 AM
Hi Dane
Thanks for replying. I only installed TileMill with the downloaded installer - I never knew about Mapnik -, but I also have Quantum GIS installed as well as R and Python which may share some open source resources with TileMill, e.g. the Gdal library. I'm not a programmer, so when something like this happens I'm at a loss. Strange thing is, on my work computer, where the same programs are installed, TileMill works, except that the firewall blocks the internet access to the outside data, which I can work around.
I would like to use TileMill and Mapbox next year in a first year cartography course and I'm sure that some students will experience the same problems I encounter, so I would like to resolve them beforehand.
Thanks for your attention.
Regards
Fritz
4 Posted by Fritz van der Merwe on 16 Nov, 2012 06:55 AM
Hi Dane
Thanks for replying. I only installed TileMill with the downloaded
installer - I never knew about Mapnik -, but I also have Quantum GIS
installed as well as R and Python which may share some open source
resources with TileMill, e.g. the Gdal library. I'm not a programmer, so
when something like this happens I'm at a loss. Strange thing is, on my
work computer, where the same programs are installed, TileMill works,
except that the firewall blocks the internet access to the outside data,
which I can work around.
I would like to use TileMill and Mapbox next year in a first year
cartography course and I'm sure that some students will experience the
same problems I encounter, so I would like to resolve them beforehand.
Thanks for your attention.
Regards
Fritz
Fritz van der Merwe
29 Pretorius Rd
Van Riebeeck Park
Kempton Park
South Africa
1619
Tel: +27 11 972 7554
Mobile: +27 82 776 3380
Fax:(local only): 0866939288
email: [email blocked]
Support Staff 5 Posted by Dane on 16 Nov, 2012 07:26 PM
Fritz,
I think you are right - that it may be the GDAL library somehow coming into conflict with the GDAL that TileMill uses internally. This should not happen - it should be fine to run a GDAL separately. But clearly something needs to be done to prevent the problem.
In TileMill I've started working on tweaking a few things which may help.
Can you do three things for me?
Can you download dependency walker and run it on the
_mapnik.nodemodule? Details about how to do that I've put here: https://github.com/mapbox/tilemill/issues/1815#issuecomment-10456597Also, can you open up your system setting and see what is set on your machine for the
PATHvariable, both for the user and the system? Can you paste what you have if it is not sensitive? What I am interested in is whether some installer - like that for QGIS/GDAL - may have set the system PATH environment to something that looks like a path to the gdal library.Lastly, after the above two are done, can you try installing this version of TileMill that I just built: https://github.com/downloads/mapbox/tilemill/TileMill-v0.10.2-pre-S.... It includes a change with sets the
PATHenvironment to NULL, then builds it back up with only the library paths that TileMill needs. My hope is that this might fix your problem. Can you test and let me know?Dane
6 Posted by Fritz on 16 Nov, 2012 11:15 PM
Hi Dane
Thanks for the reply and the guidelines. I will do all the stuff you asked, but for now I've got my time cut out to make some deadlines for projects I'm working on. Monday.
Regards
Fritz
Support Staff 7 Posted by Dane on 19 Nov, 2012 06:28 PM
Fritz,
Okay, keen to hear details from you when possible.
Dane
8 Posted by Fritz van der Merwe on 19 Nov, 2012 09:41 PM
Still bogged down. Work, you know?
Fritz van der Merwe
29 Pretorius Rd
Van Riebeeck Park
Kempton Park
South Africa
1619
Tel: +27 11 972 7554
Mobile: +27 82 776 3380
Fax:(local only): 0866939288
email: [email blocked]
9 Posted by Fritz van der Merwe on 20 Nov, 2012 08:25 AM
Hi Dane
At last a bit of a respite so I can look at this again.
The result of the dependency walker as well as a screenshot of the PATH
is attached. There is only a system path, because I have only one user.
The files IESHIMS.DLL and WER.dll are nowhere to be found on my C drive
- are they generated during startup?
As for the experimental TileMill, it doesn't start at all from the menu,
even after restarting my computer. I tried to run the exe file directly
with the RUN module as well as from the system, but no result.
I'm a bit out of my depth here.
Regards
Fritz
Support Staff 10 Posted by Dane on 20 Nov, 2012 07:07 PM
Can you try starting Tilemill as administrator (right click, run as admin...)?
Also, can you post a screenshot of the dependency walker result (I can't open that file easily)?
11 Posted by Fritz on 21 Nov, 2012 10:55 AM
Hi Dane
Administrator or not, the result is the same.
I post a text file of the dependency walker result. A screenshot wont help you much. The log starts about 3/4 way down in the text file. It starts with what went wrong.
Regards
Fritz
Support Staff 12 Posted by Dane on 26 Nov, 2012 06:58 PM
Hi Fritz,
Thanks for the extra info. Unfortunately the output looks fairly normal, so I'm not sure what is going wrong.
Above you say your machine is Win XP (SP 2). Is SP2 the latest service pack. Isn't there an sp3? Do you know?
Dane
13 Posted by Fritz van der Merwe on 27 Nov, 2012 06:14 AM
Hi Dane
Yes it is service pack 2 with all the updates which is equivalent to
service pack 3.In fact, my anti-virus program recognizes it as SP3.
If you say everything looks normal then it must be a clash with some
program. I started uninstalling programs one by one, but so far no luck,
As I said,it works perfectly with my office machine with the same
configuration and chip set, so it must be in the machine, not the
software. I'll find it and let you know.
Thanks for all the help so far.
Regards
Fritz
Support Staff 14 Posted by Dane on 10 Dec, 2012 08:12 PM
Thanks Fritz. I'll hope you can narrow it down. Sorry I am out of ideas.
Dane
15 Posted by Fritz van der Merwe on 20 Dec, 2012 11:32 AM
Hi Dane
SUCCESS at last.
I figured out the program does not find the folder C:\Program Files\TileMill-v0.10.1\tilemill\node_modules\mapnik\lib\mapnik\lib where all the dll files are.
The remedy is simple: either copy all the dll's to the system file, or put the folder in the path command. Both works, but without a path editor the first is the easiest.
Thanks for your help and for introducing me to Dependency Walker. Very helpful.
Regards
Fritz
Support Staff 16 Posted by Dane on 20 Dec, 2012 07:47 PM
Copying all the dll's to the system "file" sounds like a terribly dangerous idea.
That folder should be on the
PATHautomatically, so while I'm delighted to know you got it working, I'm surprised that it did not already work.You can see that PATH being set right here: https://github.com/mapbox/tilemill/blob/master/index.js#L19
If you are keen to understand what might be wrong, you could open the file:
C:\Program Files\TileMill-v0.10.1\tilemill\index.jsand add to line 22 the code:Then run the app and you should see the value appear in your logs. Try this without the fixes you describe above and let me know the result.
Also, could you find the file
C:\Program Files\TileMill-v0.10.1\tilemill\node_modules\mapnik\lib\mapnik_settings.jsand open it up? Then paste the result here?17 Posted by Fritz van der Merwe on 21 Dec, 2012 10:39 AM
Hi Dane
OK, when I say "file" I mean "folder", I still come from a DOS
environment where we had directories, files and documents or programs.
It's not dangerous to copy *files* to the system *folder*, as long as
you don't overwrite existing files.
I put the code in the index.js like you described, but nothing appears
in the log.
My index.js does not look like the one on the URL that you gave me
though. Notably, my lines 19 to 21 read as follows:
process.env.HOME = process.env.USERPROFILE;
process.env.PATH =
"node_modules/mapnik/lib/mapnik/lib;node_modules/zipfile/lib;"+process.env.PATH;
}
I then substituted the index.js with the one on the URL and restarted.
Still no go. I then put the directory in the windows PATH and restarted.
Still no go. The only way I can get it to work is with the jury rig I
described earlier.
I don't think you should be over-concerned though. It's probably an
aberration in my hardware or operating system and mine is the only one
of these errors you'll get. As I said, the program installed and runs
perfectly on my work computer, the only difference is that it has
Windows XP with the proper SP3 not an updated one.
Maybe I should just change to Linux, but that would put 3/4 of my
students in a flat spin, which is probably not a bad idea.
Kind Regards
Fritz
Support Staff 18 Posted by Dane on 21 Dec, 2012 10:39 PM
Okay, thanks for trying things. The reason your index.js does not look the same is you must still be running 0.10.1. Way back in this thread I provided you with a 0.10.2 development build to try so I figured you were using that. Anway, here is the latest development build if you want to make sure you are using something that compares exactly to the code you see on github: http://tilemill-win.s3.amazonaws.com/TileMill-v0.10.2-pre-Setup.exe
I'll close this now as a mystery. Just glad we don't see this problem on other machines. Thanks again for your help in tracking done the problem.
Dane closed this discussion on 21 Dec, 2012 10:39 PM.
Fritz van der Merwe re-opened this discussion on 22 Dec, 2012 07:31 PM
19 Posted by Fritz van der Merwe on 22 Dec, 2012 07:31 PM
You are welcome Dane and thank you for the pointers. I'll stick with
tilemill for my students' learning experience and I'm also now looking
at mapnik. We live and learn.
regards
Fritz
Dane closed this discussion on 02 Jan, 2013 08:01 PM.