質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,70 @@
|
|
1
1
|
pythonista上でimport foliumをすると、syntax errorが出ます
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
エラーコード
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
Traceback (most recent call last):
|
10
|
+
|
11
|
+
File "/private/var/mobile/Containers/Shared/AppGroup/F988DE32-DE78-4BFE-A467-0CACBEE13164/Pythonista3/Documents/site-packages-3/folium/folium.py", line 13, in <module>
|
12
|
+
|
13
|
+
from folium.map import FitBounds
|
14
|
+
|
15
|
+
File "/private/var/mobile/Containers/Shared/AppGroup/F988DE32-DE78-4BFE-A467-0CACBEE13164/Pythonista3/Documents/site-packages-3/folium/folium.py", line 13, in <module>
|
16
|
+
|
17
|
+
from folium.map import FitBounds
|
18
|
+
|
19
|
+
ModuleNotFoundError: No module named 'folium.map'; 'folium' is not a package
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
2
24
|
|
3
25
|
folium.py13行目
|
4
26
|
|
5
27
|
```python
|
6
28
|
|
29
|
+
# -*- coding: utf-8 -*-
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
"""
|
34
|
+
|
35
|
+
Make beautiful, interactive maps with Python and Leaflet.js
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
"""
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
import time
|
44
|
+
|
45
|
+
import warnings
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
from branca.element import CssLink, Element, Figure, JavascriptLink, MacroElement
|
50
|
+
|
51
|
+
|
52
|
+
|
7
53
|
from folium.map import FitBounds
|
54
|
+
|
55
|
+
from folium.raster_layers import TileLayer
|
56
|
+
|
57
|
+
from folium.utilities import (
|
58
|
+
|
59
|
+
_parse_size,
|
60
|
+
|
61
|
+
_tmp_html,
|
62
|
+
|
63
|
+
validate_location,
|
64
|
+
|
65
|
+
parse_options,
|
66
|
+
|
67
|
+
)
|
8
68
|
|
9
69
|
```
|
10
70
|
|