Weird python issues with dvbobjects.

So, despite getting opencaster to build and install, I seem to have a strange issue with actually importing dvbojects. There are several examples:
When initially making the modules... (This happens to all of them. None of the modules are copied)
byte-compiling usr/lib/python3.4/site-packages/dvbobjects/DVB/Loops.py to Loops.cpython-34.pyc
Sorry: TabError: inconsistent use of tabs and spaces in indentation (Loops.py, line 116)
...then when I manually install them...
Python 3.4
Traceback (most recent call last):
File "./PSIP_MP2.py", line 7, in <module>
from dvbobjects.PSI.PAT import *
File "/usr/lib/python3.4/site-packages/dvbobjects/PSI/PAT.py", line 41
self.private_indicator = 0
^
TabError: inconsistent use of tabs and spaces in indentation
Python 2.7
Traceback (most recent call last):
File "./PSIP_MP2.py", line 7, in <module>
from dvbobjects.PSI.PAT import *
File "/usr/lib/python2.7/site-packages/dvbobjects/PSI/__init__.py", line 5
SyntaxError: Non-ASCII character '\xa9' in file /usr/lib/python2.7/site-packages/dvbobjects/PSI/__init__.py
on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Never had this issue on Ubuntu or Fedora when I ran these. How can I import these modules without having to edit them? Or whatever other solution is available?
Thanks.

The errors you get are pretty self explanatory:
TabError: inconsistent use of tabs and spaces in indentation
There's no way you can "fix" this without editing the file. Whoever wrote that code used both tabs and spaces for indentation, when he/she should have stuck with one or the other.
To fix it, you need to open the file in an editor and do a search/replace-all to replace all tabs with four spaces. Or you need to manually ensure that all indentations in the file are either four spaces or a single tab.
Last edited by rune0077 (2014-06-17 19:36:59)

Similar Messages

  • A weird installer issue with xcode

    This is a new macbookpro i bought only a few weeks ago. I installed xcode on it, then removed it due to the fact that i needed to put some really huge hd video files, which needed all the hard disk space i could muster. After moving the videos from my mbp to my external hd, i tried to install xcode again. However, xcode's mpkg won't open, no matter how many times i open it with installer. Other mpkgs and pkgs work fine. What's the problem?

    Hi rhonnywhoop, and welcome to the Dev Forum!
    rhonnywhoop wrote:
    I installed xcode on it, then removed it ... i tried to install xcode again.
    There's no such thing as a weird issue with Xcode after an uninstall-install again cycle. Almost anything can go wrong and weird is the rule, not the exception. But yes, most of the strange problems show up after the installation (e.g., Xcode won't open, Xcode starts up but gcc always fails, Interface builder won't read nib files, etc., etc.). If I needed disk space for a video, I'd probably get another drive before I'd uninstall Xcode, but then I use Xcode all the time. Plus it's too late for that advice, so I'll try my best to point you in the right direction.
    A few questions:
    1) Was there any message when the mpkg failed to open? Please post any such message for us;
    2) Did you install from the DVD that came with your MacBook, or did you download a dmg from the Mac or iPhone Dev Center? If you haven't tried downloading the latest Xcode version yet, that might be worth trying;
    3) Did you uninstall from Terminal, using the command given in the Xcode doc (e.g. /Developer/"About Xcode Tools.pdf"? If not, how did you uninstall the prior Dev Tools?
    4) Is any entry made in one of your logs at the time of the failure? E.g., open Console.app (in /Applications/Utilities) and look for the most recent entries in install.log and system.log. If you find anything like that, please post it for us;
    5) Have you tried any additional cleanup besides the recommended uninstall (question 3, above)? Based on case histories in this and other forums, the most powerful trick is to rename /Developer (e.g. to /OldDev). Other tips will be found by searching on terms like "uninstall" or "clean" in this forum.
    In general, we can assume that since your previous installation was successful, the game is to restore your system to its past condition. This may seem like a no-brainer, but it might help to rule out irrelevant conditions as you try one thing after another. In fact, some developers have cleaned up by re-installing the entire system (needless to say, be sure to try restarting your system before resorting to anything that drastic!). On the other hand, some developers have reported that installing a more recent version of the Dev Tools (if any), can clean up a problem when repeated installs of the same system fail.
    I hope something above will lead you to a solution. Several other developers who regularly contribute to this forum know much more than I do about installation problems. For example, if etresoft joins this thread, be sure to follow his instructions completely and before any others.
    \- Ray

  • Weird screen issues with safari

    Hi, I just got a refurbished 15" macbook pro...not retina, but I believe it's a 2012 model.  I'm experiencing a couple weird issues with it.  So far, they seem to be exclusive to Safari, but I'm not sure yet.  Haven't been able to recreate the same problems in Chrome or other programs.  The problems are:
    1)  When filling text into a blank or box...as in a google search, or typing a facebook message, the text I am typing will often disappear or be invisible until i move the cursur to someplace else...then the text will show up.  Words at a time can be invisible.  Like I said, so far, I'm only noticing this in Safari, not Chrome, but I'll have to test with Chrome some more to know for sure.
    2)  Sometimes portion of a page will be misplaced on the screen.  For example, if I'm on Safari, and reading a news story, the left side of the page will look normal, and the right side of the page will look normal, but they won't match in the middle....I'll be seeing text from the beginning of the article one the left side, but from the end on the right side as though only part of the page is able to scroll.  Again, this is only in Safari so far. 
    Both these issues (which I assume are related) have been happening since the first day I got the computer last week and it hasn't been dropped or had anything spilled on it or anything.  I'm well within the warranty period, but this problem may be hard to recreate immediately if I bring it in to a store, so I want to check here first and see if anybody has any ideas. 
    I'm hoping this is a simple known bug with Safari that will eventually be fixed and not a problem with my new computer.  It is enough to have me second guessing my decision to go with a refurbished model, but I'm probably just paranoid.  I'd appreciate any info that anyone has.  Thanks!!!

    I could suggest a reset, but I don't believe that will do much good.
    First, I would contact your local Apple Store, should you be near one, and see if the Genius Bar can solve the problem quickly.
    Second, if they require repairs, you can use their expertise; or, you can use iPod Juice - a business that's more competitive. The latter is where I had my repairs done; email them for fees and services.

  • Weird Spaces issue with display...

    I've been using Leopard since the day after release, and have had only minor issues on 2 machines. This one is funny... Every now and then on my Macbook Pro CD, the mini desktops in Spaces show up with a smaller desktop attached to the main one. It's as if Spaces thinks I have two displays for each desktop. I have never had this computer connected to an external display...
    This behavior occurs most frequently after I import video from my Canon camcorder. If I use the "detect displays" button in system preferences, the mini-view returns to normal.
    This "bug" is pretty minor, and I enjoy using Leopard... Of course, I enjoyed Tiger, too.
    Steve

    Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures . 
    I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.
    Rohit Chowdhary

  • Weird Text Issue with Gmail

    Hey all,
    I'm an avid user of Gmail - I love the massive storage space, the way it sorts messages, how messages are grouped into conversations - the whole works. A day ago, I noticed Safari was doing something odd with the text in the subjects, but thought it was just an abnormal glitch. I refreshed, and no change. I logged off and logged back on, and no change. I restarted and no change.
    Here's what I see:
    Notice the little cross and line down from the first letter of each subject. This is on every single message in my Gmail inbox and outbox too - not just my iTunes weekly emails. It does not occur on any message in my Spam folder though (grrr...)
    When I loaded up Gmail on my PC, it was perfect, so I knew something was just odd with the Mac. I thought why not try a different browser on my Mac, so I loaded up Bon Echo (the Mac specific build of Firefox). That also displayed it perfectly, as seen here:
    For plugins, I have Inquisitor and used to have ForgetMeNot. I tried removing both to solve the issue, and no luck. I've also deleted my Safari plist and cleared the cache.
    Although this is not a huge issue, I would like it sorted out. If anyone has any suggestions, I'd be happy to listen and try them out.
    Thanks for your time!

    Hi yuiichi!
    The font for Safari looks a little bit bigger than the font for Firefox, so how about trying this.
    Click Safari in the menu (next to the Apple), and select Preferences. From here, click on Appearance, and set whatever font you have as the Standard Font one size smaller (so if it is 16, make it 14). I'm not positive that will work, it could be an error with Gmail rendering in Safari, but I'm pretty sure this "trick" will work. Hope it helps!

  • Weird saving issue with subforms

    I have a strange issue going on when a form is saved.
    If you open this form:
    https://acrobat.com/#d=CyR7W1v3MGBCkNI*QCCRkw
    ...and enter data into the "Hotel Reward Accounts" section, save the form, then reopen it, the data entered now shows up in the "Frequent Flyer Account" section. I've gone through this with a fine-toothed comb and cannot figure out what is causing this. Can someone take a look at it and see what I'm missing?
    Thanks so much!
    Jo

    Did you copy-and-paste the hotel name and account number from the airline name and account number?
    The bindings are duplicated.
    bene_FirstName  $record.beneficiaries.beneficiary[*].bene_FirstName
    bene_LastName  $record.beneficiaries.beneficiary[*].bene_LastName
    HotelName          $record.beneficiaries.beneficiary[*].bene_FirstName
    HotelAccNum      $record.beneficiaries.beneficiary[*].bene_LastName
    I changed the attached so HotelName and HotelAccNum use name for binding.
    Steve

  • Adobe Photoshop CS6 weird hangup issues with paintbrush

    Hello All,
    I've been an extremely happy user of Photoshop CS6 x64 on my windows machine since it was released. None of the existing bugs had any effect on me and i was happy as a clam.
    Until about two weeks ago. Some update was released and i downloaded and installed it.
    Now suddenly, when i'm retouching photographs, using masks and the paintbrush to fill, the mouse hangs. Often. Just gets stuck in position and i have to wait for a second or two to get it back.Also happens with the clone stamp. It's like a delay has been added to the controls. No other way to explain it.
    No other hardware of software changes on my machine at all. Just the Photoshop Update. I'm running version 13.0.1 on x64 windows. Have plenty of ram and plenty of CPU.
    Anyone else experiencing this, with the latest update in particular? The paint brush, clone tool and healing brush controls used to be much more responsive.

    Brendan Stewart wrote:
    i mean creating a layer mask and painting it back in with the paintbrush.
    Yes that is normal.  I have no problem with CS6, No lag or hesitation.
    A tip for you if your creating the mask using a copy of a color channel. Set the brush blending mode to "Overlay" This will protect the mask Black and White areas. You will only be able yo paint in gray areas of the mask.   When areas turn 0,0,0 Black or 255,255,255 White they become protected too. Use a Wacom tablet soft brush low opacity and many strokes

  • [SOLVED] Weird pacman issue with wine

    Good Morning Community,
    I'm on X86_64. I've just brought a system out of the ground from a differnt distro. Arch is up and running well.
    Then when I went to install wine .....pacman is giving me a strange error. Here is a cut n paste from the terminal
    //-----------------Begin cut n pasted text
    [dcbdbis@Curly-Sr ~]$ sudo pacman -S wine
    error: 'wine': could not find or read package
    [dcbdbis@Curly-Sr ~]$
    //----------------- End cut n pasted text
    I am using one mirror in the pacman.d/mirrorlist:
    //----------------Begin cut n pasted text
    Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
    //---------------- End cut n pasted text
    And in using pacman to list packages, here is what I get
    //----------------Begin cut n pasted text
    [dcbdbis@Curly-Sr ~]$ sudo pacman -Sl|grep wine
    community winefish 1.3.3-9
    community winegame 0.2.0-1
    community winestuff 0.2.0-1
    community winetricks 20101222-1
    [dcbdbis@Curly-Sr ~]$
    //---------------- End cut n pasted text
    Google returns nothing. And I've not found it in the forums, at least the ones I've been able to read in the last three hours.
    Does anyone have any idea what's happening?
    Ideas on what I can do to find out what's happening?
    Help will be greatly appreciated!
    Sincerely and respectfully,
    Dave...........
    Last edited by dcbdbis (2011-01-03 22:47:51)

    Leonid.I wrote:
    Allan wrote:You need multlib : http://www.archlinux.org/news/true-mult … ux-x86_64/
    I would rather do a virtual machine...
    Which can't do all the things wine can, due to the considerable additional overhead. Regardless, how's that comment supposed to contribute to the topic at all, especially with no justification.
    To the OP, please mark the thread [solved] by editing your first post title.

  • Weird Timing Issue with Custom Javascript Files

    I have attached a static javascript file to my application using the Shared Components...Static Files facility in APEX. This is working. I can call methods in my JavaScript file and they work as expected.
    The issue is that if I ever want to have JavaScript run when the page is loaded, it is as if the javascript is not in place yet when the method is called. For example, I want to set some some style characteristics of a few common fields that occur on more than one page, if I add a button to the page that I click to call the method (and don't select "Fire on Page Load"), this works fine. However, if I do select "Fire on Page Load", the javascript is invalid.
    I have tried After Refresh of the region which seems like it would work but, this event fires before* the javascript is available.
    How can I load the page, including the javascript reference, and then call the javascript method?
    -Joe
    Edited by: Joe Upshaw on Apr 3, 2012 12:49 PM

    WR,
    I think the latter, adding it to the template, sounds like the better solution. (I am using Application Express 4.1.1.00.23 BTW).
    Now for the newbie questions...
    I am trying to figure out exactly where to make this change. So, I had a couple of questions.
    1. I went into Shared Components>Templates. Then, I scrolled down to the section labelled Page. I see that the default checkmark is beside "No Tabs - Right Sidebar" so, I click this and I do indeed find a <HEAD> section defined. Is this where I need to add the reference to the javascript file?
    2. I assume I need to upload the static file to the server. Right now, I have uploaded it via the Shared Components>Static Files selection. When I add it now, I am doing this:
    var headElement = document.getElementsByTagName("head")[0];
    var currentCommonRiskPos = currentHeadHTML.indexOf( 'commonRisk.js', 0 );
    if ( currentCommonRiskPos == -1 )
       var jsRiskCommon = document.createElement( 'script' );
       jsRiskCommon.id = 'commonRisk.js';
       jsRiskCommon.setAttribute( "type","text/javascript" );
       jsRiskCommon.setAttribute("src", "#APP_IMAGES#commonRisk.js" );
       headElement.appendChild(jsRiskCommon);
    }See how I used "#APP_IMAGES#"? I am assuming that this would not work from the page template, correct? For example, in the template currently, I see:
    <script src="#IMAGE_PREFIX#themes/theme_24/js/4_1.js"></script>I am assuimng that I should upload my JS file somewhere in the images folder and reference it in the same way, right? For example:
    <script src="#IMAGE_PREFIX#JoesStuff/js/HellowWorld.js"></script>Does all of this sound correct?
    Thanks,
    -Joe

  • [SOLVED]: Weird font issues with infinality-bundle on upgrade

    Ive been using the infinality-bundle for some time with no problem until a recent update, and it seems like all my fonts got replaced with stranger ones.  Below is a screenshot of my font problem and a snippet from my pacman.log.
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   If you have been using freetype2-infinality from the AUR,
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   the runtime file that came with it has been saved as
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   /etc/profile.d/infinality-settings.sh.pacsave and the new
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   one was installed in its place. You can manually delete
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   infinality-settings.sh.pacsave as it is not needed anymore.
    [2013-10-15 18:56] [ALPM-SCRIPTLET]
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   If you are using [multilib], please install/upgrade
    [2013-10-15 18:56] [ALPM-SCRIPTLET]   lib32-freetype2-infinality-ultimate, too.
    [2013-10-15 18:56] [PACMAN] upgraded freetype2-infinality-ultimate (2.5.0.1-5 -> 2.5.0.1-7)
    [2013-10-15 18:56] [ALPM-SCRIPTLET] Removing redundant symlinks ...
    [2013-10-15 18:56] [ALPM-SCRIPTLET] Done.
    [2013-10-15 18:56] [ALPM-SCRIPTLET] Updating font cache...
    [2013-10-15 18:56] [ALPM-SCRIPTLET] Done.
    [2013-10-15 18:56] [PACMAN] upgraded fontconfig-infinality-ultimate (2.10.95-2 -> 2.11.0-3)
    Last edited by cmm7825 (2013-10-15 23:42:36)

    The recent Infinality update requires a uninstall/install of fontconfig.  I posted the same problem here:
    https://bbs.archlinux.org/viewtopic.php?id=171240
    Last edited by mixer (2013-10-15 23:40:03)

  • Weird snapping issues with objects in Ai CS5...

    For some reason, when I want to adjust a vectored object (expanded as well), is will only snaop to certain places.
    • Smart Guides is not engaged.
    • NONE of the perspective grid is activated.
    • NONE of the snap-to's are activated.
    But for the life of me, things keep snapping to some weird invisible point.
    Also, some overlapping objects, when I use the divide pathfinder tool, they divide all wonky.
    ANYBODY? I'm dying, here!

    Was the original from a Web new document profile? If so, turn off Align to Pixel Grid in the Transform panel.

  • Weird permission issue with 10.5.8

    After the update I get these 2 permission errors that will not repair:
    2009-08-12 00:11:42 -0600: Permissions differ on "System/Library/Frameworks/AppKit.framework/Versions/C/_CodeSignature/CodeResou rces", should be ?--------- , they are ----------.
    2009-08-12 00:11:43 -0600: Permissions differ on "System/Library/PrivateFrameworks/DotMacLegacy.framework/Versions/A/_CodeSignat ure/CodeResources", should be ?--------- , they are ----------.
    Anyone else have this happen? I've never seen "?---------" or "----------" before.

    Read this thread:
    http://discussions.apple.com/thread.jspa?threadID=2106528&tstart=45
    It is a widely known issue.

  • Weird ActiveSync issue with Exchange 2007-iPhone 3Gs

    I have a relatively new iPhone 3Gs. I am using Exchange 2007 (SP1). I am also using a product called Add2Exchange ("A2E"), which runs on the Exchange server and synchronizes two calendars. Seems to mostly work OK.
    Here's the behavior: I create a new all-day event in UserA's calendar. It gets copied by A2E to UserB's calendar. They both get sync'd via ActiveSync to both iPhones. All correct so far. Outlook 2007 also agrees.
    UserA then edits the event to give it a time, as example use 8-9am Weds. It then syncs to UserA's iPhone correctly. A2E migrates it to UserB, and UserB sees it correctly in Outlook 2007. HOWEVER, in UserB's iPhone it appears as all day event that has moved to Thurs (the next day). If I edit the title of the event, it migrates to all copies (but the incorrect all-day time in UserB's iPhone stays).
    I have also turned OFF Calendar sync in iPhoneB, told it to delete all events, then reenabled it and had it resync. The event still comes back as the all-day event on the incorrect day.
    Since Outlook reflects the correct thing I strongly suspect that Exchange database is correct and that iPhone for some reason isn't re-updating the date/time. Any insights appreciated.
    Thanks.
    -Jon C.

    The event viewer shows no ActiveSync errors for the user.  I tried to connect to the account from my Windows phone and it set up ok with no errors (the user tells me that the account setup on the phone went ok too, all green checks) but when it was
    doing the initial sync, it just seemed to hang with a message saying something like "syncing, this could take a while" or something to that effect.
    The Remote Connectivity analyzer came back with a timeout error for the Inbox sync step as well.

  • I'm having weird syncing issues with iPod.

    I just played a song using my iPod, then synced my iPod. When I looked at my "Recently Played" smart playlist, it said I just played an entirely different song. What's up with that?

    You can only pair your iPhone 4s to the computer for tethering, you can't sync with it. Are you trying to pair your 7th gen to play music through the MBP speakers?

  • Sudden weird heat issue with C2D

    My Core2Duo 2.0gh has been a joy for the last few months. Then today, 10 mins after switching on I noticed that temperature monitor had my CPU up to 75 degrees (when so far it's never been higher than 55) and my fan came on for the very first time. So what caused a jump of 20 degrees 10 mins after turning it on?
    I always use a bread board to allow the heat under the computer + I was only using the usual safari / word apps, though I was in the process of running MacJanitor - maybe it's not built for Intel chips? Any ideas? Anything welcome.

    What were you doing with MacJanitor? Sometimes a process might be running that utilizes all of your CPU. You can find out by opening Activity Monitor, found in the "Utilities" folder on your hard drive. Make sure "All Processes" is selected from the pulldown menu at the top of the window, and you will be able to see what is running. Chances are you were doing something that required extensive use of your CPU, which is fine. Once the process ends, your computer should go back to silent operation.

Maybe you are looking for

  • SRM 7.0 - Process controlled workflow

    Hi, Landscape -  SRM 7.0 SP05 Workflow - Porcess controlled Scenario - Self service procurement Problem: 1. We have mulitple level approval workflow for the shopping cart. I am using standard workflow task- 40007953 and using /SAPSRM/BD_WF_RESP_RESOL

  • Can anyone read this error message??

    G'day, Im imac randomly crashed and a white screen rebooted my computer. I have no Idea why it rebooted. This was the error message... and as Im new to Apple, I have no idea what it says. I was hoping someone could understand it for me?? Anonymous UU

  • Is there an app that you can record your screen

    Help please

  • Using a Count field in a formula

    Post Author: sjjustina CA Forum: Formula I'm trying to get an average. I have a Count summary and a formula that totals the lengths. How do I make a formula that divides the formula by the Count field? Thanks in advance,Sarah

  • New to SAP FI

    Hi I am SAP Functional Consultant. I want to learn and work on SAP ECC FI and CO. Can anyone please help me in giving me the links to FICO documentation starting from the basic information links or guides? Appreciate your help. Thank you,