Comment 5 Ed Morley [:emorley] 2013-08-07 09:54:34 PDT So this should be warning level ERROR and turning the run orange? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the pycrypto mailing list I think the least crappy solution is to catch the ImportError in mozharness. You are most likely using Python 2.6 or older. check over here
Solution 1: As stated by Martin Pieters - use the backport. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 47 Star 237 Fork 225 mne-tools/mne-python Code Issues 188 Pull requests 44 Projects Graph visualization: Leave gap between vertex and endpoint of edge Start a coup online without the government intervening Someone peeled an American flag sticker off of my truck. Otherwise, you can drop support for python 2.6 (and change the README file: https://github.com/mne-tools/mne-python#dependencies ) Thanks, G MNE tools for MEG and EEG data analysis member agramfort commented Mar 24, 2013 http://stackoverflow.com/questions/10099013/importerror-cannot-import-name-counter
import pandas as pd newfilename = pd.read_csv("filename.csv") However, when I try to excute this code, I am getting an error which says: ImportError: cannot import name Counter I googled and found Patch is coming. Already have an account? e.g.
My cat sat on my laptop, now the right side of my keyboard types the wrong characters 301RedirectModule isn't working for URL with dot file name Straight line equation What legal I didn't notice you had a Counter in .fixes Installation works perfectly on python 2.6, thanks! Sign up for free to join this conversation on GitHub. Why is looping over find's output bad practice? a) Should these be making the test run fail?
You signed in with another tab or window. Python 2.7 Centos Nope, mozharness is appropriately marking it as a WARNING and not changing the end result of the run. We only ignore the failure to import psutil in resourcemonitor.py because psutil is optional - the resource monitor class can continue to function without it. Unfortunately the installation fails on python 2.6 (on Debian Squeeze): Traceback (most recent call last): File "setup.py", line 6, in
pandas in my case: from backport_collections import Counter share|improve this answer answered Aug 16 at 8:15 Nabeel Ahmed 1,7931427 add a comment| Your Answer draft saved draft discarded Sign up Join them; it only takes a minute: Sign up ImportError: cannot import name Counter up vote 14 down vote favorite 1 I have tried using Counter() but everytime I do: from Non-Repetitive Quine How to prove that authentication system works, and that customer uses the wrong password? GO OUT AND VOTE On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack?
I understand I'm not leaving you with an alternative. Comment 7 Aki Sasaki [:aki] 2013-08-07 10:21:55 PDT (In reply to Ed Morley [:edmorley UTC+1] from comment #5) > So this should be warning level ERROR and turning the run orange? Importerror: Cannot Import Name _counter Terms Privacy Security Status Help You can't perform that action at this time. Find Python Version Reload to refresh your session.
That being said, I would give this code an r- because continuing to load a module due to a missing required import should result in an Exception. check my blog Until Python 2.7 can be deployed everywhere (the proper solution to this bug), the temporary solution is for downstream consumers to trap the ImportError thrown by resourcemonitor.py. Any ideas? What is the most efficient & fastest way to speed up the installation of packages with thousands of items? Get Python Version
current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. I've seen this sort of issue crop up when either the python path gets screwed up or a library gets added to the python path that has the same name as We just need to agree on the implementation and we can move forward. http://rss4medics.com/cannot-import/python-import-importerror-cannot-import-name.php You signed in with another tab or window.
Comment 10 Ed Morley [:emorley] 2013-08-16 08:43:24 PDT But surely if we want resource monitoring deployed & working - then it not being found is worthy of failing the run (hence dengemann referenced this issue Mar 24, 2013 Merged FIX: Counter imported from collections not from fixes #533 dengemann added a commit that closed this issue Mar 24, 2013 dengemann This repository Watch 407 Star 3,796 Fork 1,341 tgalal/yowsup Code Issues 543 Pull requests 15 Projects
Thanks, sreelekha.N Sign up for free to join this conversation on GitHub.
Can floyd like bridge really make guitar out of tune when not blocked but not used Graph visualization: Leave gap between vertex and endpoint of edge I changed one method signature Status: RESOLVED FIXED Whiteboard: Keywords: Product: Release Engineering Classification: Other Component: General Automation (show other bugs) Version: other Platform: All All Importance: -- normal (vote) TargetMilestone: --- Assigned To: Ed Morley The printing of that error is triggering the log parser. mozharness is trapping an error loading an *optional* feature and it is reporting that error to help with diagnosis so that failure can eventually be fixed.
mozharness already does this, just not in a method the log parsers find acceptable. Join them; it only takes a minute: Sign up import pandas library results in error: ImportError: cannot import name Counter up vote 0 down vote favorite I am trying to create Comment 13 Ed Morley [:emorley] 2013-08-16 10:24:35 PDT We should still catch the exception and print a friendly message (eg: "Optional package not found!"), which would both be The Right Thing have a peek at these guys What is a satisfactory result of penetration testing assessment?
If we didn't report the error, we wouldn't know why resource monitoring failed and would have a hard time making it work. Lab colleague uses cracked software. Reload to refresh your session. Reload to refresh your session.
Not the answer you're looking for? Please try :ahal or :jhammel if you wish to touch this file. Build me a brick wall! You signed out in another tab or window.
What crime would be illegal to uncover in medieval Europe? and this particular watsapp registered number is only for this particulat system right ?this credentials can be used in different linux machine ? What's happening is we are attempting to start resource monitoring, catching an exception, and printing that exception to help with future diagnosis. Can Trump undo the UN climate change agreement?
I changed one method signature and now have over 25,000 errors. You signed out in another tab or window. Comment 3 Ryan VanderMeulen [:RyanVM] 2013-07-31 10:16:38 PDT Affects OSX 10.6 too. Not the answer you're looking for?
If we failed to catch the error, resource monitoring would be backed out.