-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
from pycocotools.coco import COCO fails #14
Comments
my bad. forgot to make |
Thanks the script I create must be place in PythonAPI/ and you have to make first. |
Hello, i am quite new, but can you write the exact steps that should be followed in order one to do make? |
The steps below worked for me:
|
It Runs 2.6 or 2.7 Only python 2.6.x or 2.7.x (not python 3.x) |
Add one more comment. If you use python 3, then you should change '$ sudo python setup.py install' to '$ sudo python3 setup.py install'. |
@cardwing Can you run it successfully with python 3? |
is there a way to make with a windows set up? I am using python 3.6 |
@BrownPanther hey we have same problem, im using windows and python 3.65 too, and still tryin yet, if u already solved it pls let me know too, |
it is possible you need install some dependencies if the problem is on the import. I dont remember how I fix the issue but is possible this help you.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: tfoa <[email protected]> Date: 8/26/18 01:11 (GMT+01:00) To: cocodataset/cocoapi <[email protected]> Cc: Javi <[email protected]>, Comment <[email protected]> Subject: Re: [cocodataset/cocoapi] from pycocotools.coco import COCO fails (#14)
@BrownPanther hey we have same problem, im using windows and python 3.65 too, and still tryin yet, if u already solved it pls let me know too,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cocodataset/cocoapi","title":"cocodataset/cocoapi","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/cocodataset/cocoapi"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tfoa in #14: @BrownPanther hey we have same problem, im using windows and python 3.65 too, and still tryin yet, if u already solved it pls let me know too,"}],"action":{"name":"View Issue","url":"#14 (comment)"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#14 (comment)",
"url": "#14 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [cocodataset/cocoapi] from pycocotools.coco import COCO fails (#14)",
"sections": [
{
"text": "",
"activityTitle": "**tfoa**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@tfoa",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"cocodataset/cocoapi\",\n\"issueId\": 14,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "#14 (comment)"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 139087740\n}"
}
],
"themeColor": "26292E"
}
]
|
@tfoa I didn't end up using this architecture but I remember solving the issue. This is my comment from this video I was following: Just want to say the issue is resolved - the problem was I didn't build coco correctly with |
actually i try install: python setup.py build_ext from(
https://github.com/epfml/sent2vec) and i founded command line error d8021L
invalid nurmeric argument '/Wno-cpp'
so i try install coco and thought it still cant fix it..but yet it isnt..so
do u think its installed on linux only ?cause windows still cant get it ?
[image: wnocpp1.JPG]
[image: wnocpp2.JPG]
Pada tanggal Sen, 27 Agt 2018 pukul 03.10 Nabila Abraham <
[email protected]> menulis:
… @tfoa <https://github.com/tfoa> I didn't end up using this architecture
but I remember solving the issue. This is my comment from this video
<https://www.youtube.com/watch?v=2TikTv6PWDw&t=1s> I was following:
Just want to say the issue is resolved - the problem was I didn't build
coco correctly with
pip install git+
https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
because my tensorflow dependencies were out of whack
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APVhEIVHst1bpT3c7fkwvRsocU7BOVzSks5uUwDSgaJpZM4ISk98>
.
|
Hi |
I'm having this problem too. Any luck resolving it? |
Hi @Glomels I just uninstalled it completely and re-installed. then it works! |
It still fails for me. these are the following steps I took $ git clone https://github.com/pdollar/coco.git I open a new notebook in AWS SageMaker in the PythonAPI directory and tried to import pycocotools, it succeeded. |
While run make on COCO\PythonAPI, got the following error Then i used the command "python setup.py build_ext --inplace" in the Makefile in the COCO\PythonAPI , Hence I'm getting the following error. How can i solve this issues and make it successfully |
Getting error: command 'cl.exe' failed: no such files or directory |
Try replacing extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'] with extra_compile_args={'gcc': ['/Qstd=c99']} in coco/pycocotools/setup.py. And then run python setup.py install again |
After the update the tutorial doesn't run.
`$ git clone https://github.com/pdollar/coco.git
$ cd coco/PythonAPI
$ ipython
The text was updated successfully, but these errors were encountered: