Skip to main content

I could use some help figuring out how to get MapQuest maps loaded in FME. I get a python exception when I try to load any background maps other than a WMS in the preview window and Data Inspector.

 

Python Exception <ImportError>: bad magic number in 'requests.packages': b'\x03\xf3\r\n'
Could not create Python Reader `MAPQUEST_WMTS'
A fatal error has occurred. Check the logfile above for details
Failed to open the dataset ''
DATASET INFO:
    DATASET: 
    NUMBER OF PARAMETERS: 2
        RETRIEVE_ALL_TABLE_NAMES = Yes
        _API_ACCESS_TOKEN = 3LjBtfAjxV6mr8nczRSuENeEtSk83gv7

 

I have an API key for MapQuest that was working in FME 2018, and I signed up for a new one in MapBox and found that I got the same error in FME 2019. I'm sure there is someone here a lot smarter than me who can figure this out, so thank you.

 

edit: I realize the problem is only using 64bit FME. I have a 32 bit version and a 64 bit version installed.

I had an error during the installation that said it couldn't shut down all the programs using a shared library (probably a python library, given the error).

Is the API key you used in FME 2018 still working?

And please forgive me for asking the obvious here... but you say you signed up for a new API key in MapBox, did you mean to write MapQuest?


Is the API key you used in FME 2018 still working?

And please forgive me for asking the obvious here... but you say you signed up for a new API key in MapBox, did you mean to write MapQuest?

Hi, thanks for the reply. The API key still works on other computers with FME 2019. I don't have 2018 still installed on my computer to test, because I installed 2019 in place of 2018. I did actually get a MapBox API key as well. Just now I realized the issue is only with the 64 bit version. The 32 bit version works fine, but I mostly use 64 bit FME.


Hi, thanks for the reply. The API key still works on other computers with FME 2019. I don't have 2018 still installed on my computer to test, because I installed 2019 in place of 2018. I did actually get a MapBox API key as well. Just now I realized the issue is only with the 64 bit version. The 32 bit version works fine, but I mostly use 64 bit FME.

Hi @bruttino,

Did installing 64-bit FME 2019.0 resolve the issue or are you still unable to load the background map in FME 2019.0? I just tested the MapQuest background map on my machine using 64-ibt FME 2019.0 and I wasn't able to get the same error.

If you are still experiencing issues, I would recommend contacting our support team by Submitting a Case and including the FME report by running the system_information.bat from the General Troubleshooting | Gathering System Information article.


Hi @bruttino,

Did installing 64-bit FME 2019.0 resolve the issue or are you still unable to load the background map in FME 2019.0? I just tested the MapQuest background map on my machine using 64-ibt FME 2019.0 and I wasn't able to get the same error.

If you are still experiencing issues, I would recommend contacting our support team by Submitting a Case and including the FME report by running the system_information.bat from the General Troubleshooting | Gathering System Information article.

Hi, I reinstalled FME 2019 and it worked! I should have tried that before. Anyways, thank you for your help! I remember getting a warning during installation of the 64 bit FME that it couldn't shut down all the programs the first time I installed.


Hi, I reinstalled FME 2019 and it worked! I should have tried that before. Anyways, thank you for your help! I remember getting a warning during installation of the 64 bit FME that it couldn't shut down all the programs the first time I installed.

Glad to hear! Thank you for following up @bruttino!


Reply