質問編集履歴
2
試したことの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -111,3 +111,33 @@
|
|
111
111
|
SyntaxError: invalid syntax
|
112
112
|
|
113
113
|
```
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
### 試したこと
|
118
|
+
|
119
|
+
ASINの表示前にproductの中身を表示させるように書き換えて実行
|
120
|
+
|
121
|
+
```Python
|
122
|
+
|
123
|
+
print(product)
|
124
|
+
|
125
|
+
print (product.asin)
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
```
|
132
|
+
|
133
|
+
[<amazon.api.AmazonProduct object at 0x110666ef0>, <amazon.api.AmazonProduct object at 0x10d5c4748>]
|
134
|
+
|
135
|
+
Traceback (most recent call last):
|
136
|
+
|
137
|
+
File "JANtoASIN.py", line 22, in <module>
|
138
|
+
|
139
|
+
print (product.asin)
|
140
|
+
|
141
|
+
AttributeError: 'list' object has no attribute 'asin'
|
142
|
+
|
143
|
+
```
|
1
懸念事項の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,31 @@
|
|
83
83
|
mac OS High Sierra
|
84
84
|
|
85
85
|
ターミナル バージョン2.8
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### 懸念事項
|
90
|
+
|
91
|
+
pythonを起動して
|
92
|
+
|
93
|
+
Amazon Simple Product APIのインストールをしようとしたのですが、
|
94
|
+
|
95
|
+
以下のようなエラーが表示されたことも何か問題を引き起こしている可能性があるのでしょうか。
|
96
|
+
|
97
|
+
```
|
98
|
+
|
99
|
+
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
|
100
|
+
|
101
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
102
|
+
|
103
|
+
>>> pip install python-amazon-simple-product-api
|
104
|
+
|
105
|
+
File "<stdin>", line 1
|
106
|
+
|
107
|
+
pip install python-amazon-simple-product-api
|
108
|
+
|
109
|
+
^
|
110
|
+
|
111
|
+
SyntaxError: invalid syntax
|
112
|
+
|
113
|
+
```
|