[SOLVED]Install Scribes after Archlinux's python3 update from october

I would like to install scribes with the latest updates, but since Archlinux switched to Python3 by default (in october), I am unable to do so.
Before the update, i ran without problem:
bzr branch lp:scribes
cd scribes
sh autogen.sh
make
sudo make install
But now I can't pass autogen.sh :
checking what language compliance flags to pass to the C++ compiler...
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 3.1
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.1/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.1/site-packages
configure: error: Error: Dependency check failed
In conf.log there is:
configure:6227: ./conftest
File "depcheck.py", line 10
print "Checking for D-Bus (Python Bindings)... yes"
^
SyntaxError: invalid syntax
So I run 2to3 on the depcheck.py file in the folder:
2to3 -w depcheck.py
And I get:
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 3.1
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python3.1/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.1/site-packages
Error: Python bindings for D-Bus was not found.
configure: error: Error: Dependency check failed
In depcheck.py, the error is launched when:
# Check for D-Bus Python Bindings.
try:
import dbus
if dbus.version < (0, 70, 0): raise AssertionError
print("Checking for D-Bus (Python Bindings)... yes")
except ImportError:
print("Error: Python bindings for D-Bus was not found.")
raise SystemExit
except AssertionError:
print("Error: Version 0.70 or better of dbus-python needed.")
raise SystemExit
It turns out I can't access dbus module from python3:
$ python
Python 3.1.3 (r313:86834, Dec 1 2010, 12:35:23)
[GCC 4.5.1 20101125 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named dbus
>>>
$ python2
Python 2.7.1 (r271:86832, Dec 2 2010, 03:10:07)
[GCC 4.5.1 20101125 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>>
But anyway, scribes is written with python2 syntax in mind, so let's use it :
$ export PYTHONPATH=/usr/lib/python2.7
I now re-run ./autogen.sh :
checking what language compliance flags to pass to the C++ compiler...
checking for a Python interpreter with version >= 2.5... ./configure: line 6015: 17533 Aborted ( $am_cv_pathless_PYTHON -c "$prog" ) 1>&5 2>&5
python2
checking for python2... /usr/bin/python2
checking for python2 version... 2.7
checking for python2 platform... linux2
checking for python2 script directory... ${prefix}/lib/python2.7/site-packages
checking for python2 extension module directory... ${exec_prefix}/lib/python2.7/site-packages
configure: error: Error: Dependency check failed
In conf.log, there is now:
configure:6191: result: ${exec_prefix}/lib/python2.7/site-packages
configure:6227: gcc -o conftest -g -O2 conftest.c >&5
configure:6227: $? = 0
configure:6227: ./conftest
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/utf_8.py", line 9, in <module>
configure:6227: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "scribes"
But with the PYTHONPATH set, I can't even start the python interpreter (python2 still works fine):
$ python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/utf_8.py", line 9, in <module>
Aborted
I can still start scribes without compiling it, but then on the console, the same error appears:
$ python2 scribes.in
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/utf_8.py", line 9, in <module>
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/usr/lib/python2.7/encodings/utf_8.py", line 9, in <module>
Without PYTHONPATH set, I can also run scribes (with python2), but it gives me an error in the console. I also tried o run 2to3 on every python file in the project and correcting the syntax to be conform to http://diveintopython3.org/porting-code … -2to3.html (but that's not really what I'm supposed to do, is it?), and I got the same error as the one below ("No module named gobject") when trying to build with autogen.sh:
$ export PYTHONPATH=
$ python2 scribes.in
Traceback (most recent call last):
File "/home/wan/scribes_d/scribes_721/SCRIBES/SaveSystem/ExternalProcess/ScribesSaveProcess.py", line 7, in <module>
from gobject import MainLoop, threads_init
ImportError: No module named gobject
I am out of ideas to try to correct the problem. Can anyone help me please?
Last edited by wan (2010-12-09 01:26:14)

I knew there was an old (and not up-to-date) package in community, but I didn't know that I could get the PKGBUILD.
That teached me the -G argument for yaourt!
To solve the problem, the previous script helped a lot:
$ sed -i 's/python depcheck.py/python2 depcheck.py/' configure.ac
... on some other files as well.
I submitted the now up-to-date PKGBUILD to the AUR here: http://aur.archlinux.org/packages.php?ID=44275
Thanks for your suggestions!

Similar Messages

  • After done the Mavericks update from Mountain Lion, I can't no more extend my applications to the second screen. Can somebody help me ??

    After done the Mavericks update from Mountain Lion, I can't no more extend my applications to the second screen. Can somebody help me ??

    Check here:
    System Preferences > Mission Control > uncheck Displays have separate Spaces > Log Out ( >Log Out <user>) > Log back in

  • My iPhone 5 wont turn on after i tried to update from 6.1.3 to 6.1.4.

    my iPhone 5 wont turn on after i tried to update from 6.1.3 to 6.1.4. My Phone refuses to turn on. i bought my iPhone from someone else and i don't know if the warranty is voided, how can i find out if is voided ?

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    3: If the device doesn't appear in iTunes, try using the Steps in this article to force the device into Recovery Mode.
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • HT201210 Error 37 after selecting 'Restore and Update' from iTunes

    Error 37 after selecting 'Restore and Update' from iTunes. 
    3GS had been working perfectly fine. 
    Now it's a Brick. 
    <Edited by host>

    Update and restore error messages on iPhone and iPod touch

  • HT1222 How do I un-install iOS 6.0.1 Software Update from my iPhone 5? It is draining my battery life and has changed anything so it is unnecessary.

    How do I un-install iOS 6.0.1 Software Update from my iPhone 5? It is draining my battery life and has changed anything so it is unnecessary.

    jshenice wrote:
    How do I un-install iOS 6.0.1 Software Update from my iPhone 5?
    You can't.

  • Firefox 4 does not work on my G5. After prompting me to update from previous version I am now left with nothing functioning. How do I go back?

    After downloading the latest update Firefox kindly told me I should upgrade to V4. So I did. I downloaded it, dropped it into my applications folder and overwrote the old version. Only to be told when attempting to start the application "Firefox does not work with this architecture".
    Brilliant. So I look for an older version on the site, and there is nothing to be found. Just the insistance that I should download version 4 for my Mac. Well, "IT DOESN"T WORK GUYS!"
    Now can we have a fix please quickly or a link to the older version, as I am now left without all my bookmarks or passwords and you are about to effectively isolate a section of the computing community from ever using you again.

    For your toolbars that you had installed before, are they simply incompatible with the latest version of Firefox?
    Please try reading [[Add-ons are disabled after updating Firefox|Add-ons are disabled after updating Firefox]], as that may help with your addons.
    As for Firefox running slow, is it slow lading web pages, or is just the whole browser slow? Try reading [[Firefox is slow|Firefox is slow]] , which may have some tips (the optimize Windows part especially).

  • I bought a new mac with software installed and my username will not update from another account?

    I recently bought an new power mac with Logic Pro and Final Cut Pro Installed.
    When I updated to the new OS X operating system, they need to be updated as well. And will no longer work.
    But it says it is on another account. Not sure what account. How do I find out what account they are on? How or can I do I move them into my other account?
    The Power Mac is registered to the account I am logged in on.

    Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
    The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
    How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1. If you don't own another Mac
    a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    2. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    3. Partition and install OS X
    a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    c. An unusual problem may arise if all the following conditions apply:
              OS X 10.7 or later was installed by the previous owner
              The startup volume was encrypted with FileVault
              You're booted in Recovery mode (that is, not from a 10.6 installation disc)
    In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
    d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    4. Other issues
    a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • IMac won't read the System Install DVD after trying a Software Update (Whic

    Last weekend I tried downloading the 10.4.7 update to my iMac. Towards the end of the download the iMac crashed out and said that the Software Update was unsuccessful. As this was the case I tried rerunning the 'Software Update' again but after a few seconds of the application running and the little window being on the screen, it just dropped out and exited. As this was therefore not working I tried to download the Software Update as a Stand Alone application. I found after downloading the file that mounting a disk image on my iMac no longer works. My next step was to try and reinstall OS X from the System Install DVD. I put the DVD in the DVD Drive and found that after it whirred for about 20 seconds, the disk ejected. I thought this was odd so I tried to boot the iMac , holding down the 'C' key once the DVD was in place inside the iMac. The Mac powered up and then the DVD whirred for a while and once again it ejected the DVD. I now have no way of reinstalling OS X..and am at a loss. I called up the supplier of the iMac as I only purchased it in May 2006. They advised me that the warranty only covers Hardware and not Software. They said with a problem like this it could be expensive to try and work out what is causing it as it is sort of an unknown. I would like to know if anyone else has had this problem, is there some way I can see what the iMac is doing when it is trying to read the DVD and the ejects it, and is there some way of 'resetting' the iMac so that it is in the initial state. I know the BIOS on these machines is a 'soft' BIOS so as the supplier said, it is quite possible that the Software Update has corrupted the soft BIOS on the machine. Any ideas?

    Yes. It is possible that the DVD could be bad.
    It is also possible that your corrupted installation is preventing the DVD from working right.
    It would seem strange, except that this happened with another guy as well. But, once we disconnected his internal hard drive with the corrupted OS 10.4.7 install, the machine booted from the DVD and worked properly. We then connected a different hard drive to install to, and it worked fine. Then, we connected the drive as a secondary and formatted it and it resumed working.
    But, with an iMac CoreDuo, you cannot open the machine to unplug the drive. So, you'll be a bit stuck if you require the same solution. He had a PowerMac G5.
    But, basically, his corrupted OS 10.4.7 installation was preventing booting from a CD, booting into safe mode, booting from an external drive, or any other kind of booting.
    So, for him, the only option was disconnecting the internal drive and installing on another one.
    I hope this doesn't turn out to be necessary on your system as well. If so, you'll need to take it into the shop for servicing.
    The only other option I could think of is to try and boot it into Target Disk mode, and format it's drive with another computer. Perhaps that would work.
    Once your internal drive has been cleared (formatted), then it may boot from the DVD again (assuming your problem is the same as the other guys).
    You can read about Target Disk Mode here:
    http://docs.info.apple.com/article.html?artnum=58583
    You can read about the steps we took to troubleshoot and repair the other guys machine here:
    http://discussions.apple.com/message.jspa?messageID=2629919#2629919
    Perhaps that will help explain what I described above.
    I hope this helps.

  • Flash 10 install fail after 10.6.2 update. Help please.

    It all started after the new 10.6.2 update I did for Snow Leopard
    I don't know if this is an something you here at adobe can fix or its something going on at Apple.
    Is anyone else having this problem or is it just me?
    Opera, and firefox unexpectidy quit as well.
    and my wacom drivers are out of wack.
    I tryed to uninstall flash player but that too unexpectidly quits.
    When I try to restart it gets hung up, and I have to do a hard start to get logged into my computer again.
    I ran the disk utility and repaired permissions, that didn't help.
    Anyway the install failed said I should contact Adobe so here I am.

    Good News I Fixed it.
    So what I did was downoad and install the MacOSXUpdCombo10.6.2.dmg
    Found here
    http://www.apple.com/support/snowleopard/
    On the left you will see the downloads, The one you want is the (combo) version.
    Just as a precaution, I would recommend backups, as these little glitches are often percursers to the big fail.
    I use corbonite, you can search for it on your own, or time machine ect, whatever works best for you.
    Sorry I may have been rude, I have always liked Adobe products and I have no doubt that the people at Adobe are working hard to keep everything working, it must be quite hard to deal with irate customers all day.
    Hope this helps some people.
    Thanks again.

  • Unable to install anything after 10.6.2 Update

    Hi, I'm unable to install any program (including the 10.6.2 Update Combo pack) after the 10.6.2 update.
    When any of the programs I've attempted to install (SyncMate, Flip4Mac, the Update Combo) get to the "install" section of the Installer, it appears that the installer is unable to open or access the authentication dialog.
    I have:
    -ensured that the user has Administrator access (although I can no longer turn that on or off from within the user itself)
    -restarted getting rid of the PRAM and VRAM
    -booted from the Snow Leopard install disk, changed the passwords of both the root and the main user
    -repaired all the disk permissions (no warnings) and restarted several times
    -verified the disk (no problems, no need for repair)
    Does anyone have any advice, other than simply reinstalling the operating system from the Snow Leopard disk?
    Help! I'd really like to install these programs.

    sorry, lost track of this thread for a bit.
    you need to figure out which preference files in the main account are causing the problem. the one that i suspected is not it. I don't know which one it is, sorry.
    maybe somebody else does.
    one thing you can always try is the nuclear approach. move the whole folder /users/username/library/preferences to the desktop and log out/in. that folder will be recreated and all the files inside will be recreated with default values when system needs them. see if that fixes the issue. if it does you can start moving the files you need from the preferences folder on the desktop back to the one in the library. you'd need to log out/in for some of them. this is pretty time consuming so I would first see if someone else has another idea.
    in the worst case scenario you can always migrate to a new user account.

  • [Solved] No Sound after Windows 8.1 Update

    I have an MSI GE70 and after updating to Windows 8.1 I can not get sound from any source.
    I have tried updating drivers through windows automatic system and then through the MSI website. However no change.
    Any ideas how to restore sound, without having to entirely reinstall Windows 8 and avoid updating to Windows 8.1?
    Thanks,
    Richard

    I've resolved the issue for me. Instead of installing the drivers from MEI website. I got them from here:
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS035939
    Whether there is any long term effects of installing the sound drivers from a different company remains to be seen, but I have got my sound back. Hope this may help others who may experience the same issues.
    Thanks for help,
    Richard

  • Compressor fails with Codec not installed error after 10.5.7 update

    Problem: Compressor fails on submission to standard codecs such as H.264, Apple Intermediate Codec, Motion JPEG, etc. Codecs do exist on system as playback from QuickTime is unaffected. This is new behavior as of update to OS 10.5.7.
    Specs: 17" MackBook Pro, Compressor 3.0.5, QuickTime 7.6, OS X 10.5.7
    Attempt to resolve: Tried completely uninstalling Compressor/QMaster and reinstalling from the FCStudio disc as per "Compressor: Troubleshooting basics" (Article: TS1888 - Old Article: 302845). This installed Compressor 3.0 which compressed a single mov then began failing on subsequent submissions. Updated 3.0 to 3.0.5 with no favorable results. Submissions continue to fail.
    Any ideas?

    From my personal experience, the troubleshooting article which you mention in your original post does not constitute a "full uninstall". There are files missing from that list which are required for a full install.
    Using the instructions in the link provided, I've been able to do multiple uninstalls & reinstalls successfully, not only with Compressor & QMaster, but with other Studio apps as well.
    However, since there are codecs missing, you may need to do a full uninstall of Final Cut Studio. I personally haven't upgraded to 10.5.7 yet, since I'm currently in the middle of some projects, but it would be worth mentioning that before any kind of software upgrades, all of our system drives get a full backup. This allows us a way to "undo" any bad upgrade.

  • How can I solve several issues after an automatic Windows update ?

    Hi,
    Would be great if you could help.
    I use Windows 7. Some major Windows update must have been applied that really messed up a few things, including my Firefox browser.
    Issue 1: All my bookmarks are gone.
    Issue 2: When I try to locate the Profile Folder (to try and get my old bookmarks, permitted sites etc.) I get an error message instead. It reads "[path] refers to a location that is unavailable."
    Issue 3: When I set Firefox as my default browser, the next day I have to repeat this step, and both icons in the start menu and on the taskbar are not there anymore.
    Is there any way of fixing these issues?

    Where was it stored?
    If you've been using your phone as designed, you've been synching your contacts with a contact manager app on your phone or with a cloud service.
    Just synch your contacts back.
    If you've not been using your phone as recommended then you've lost your data.

  • Problems(?) after the latest Security Update from 2010-09-20

    Last night I was prompted that there was a new security update (http://support.apple.com/kb/HT4361), so I let it install and restart. After the restart, the date/time was all messed up. It was set to "2000-12-31 at 4.01.42 PM" (why would it do that!?!?) for some reason AND firewall rules seems to have changed. I kept getting a popup message to allow/deny access to these processes: DNSResponder and Configd. I have very little idea of what these really are except that I couldn't connect to internet without allowing at least the DNSResponder. Is this a normal behavior? Has anyone experienced similar issues after this security update? Is there a way to compare the firewall settings before and after the update? (Does it keep a backup of the original settings somewhere??) Is this a cause for concern?

    Yep, problems here as well, after installing the update. Can't seem to get an answer to the problem, and now I am having issues getting my new wireless router to work with the Macbook. Not sure if the problems are related, but sure would like to get this thing fixed. May have to visit a Genius.

  • Unable to install os x (10.5.8) update from 10.5.4

    I've been trying to update my os from 10.5.4>10.5.8 with zero luck. After it apparently downloads restart occurs and once installation proceeds it freezes. I've tried leaving it for 20-30 minutes to see if that works-no avail. I've googled the problem without any help. Tried the stand alone option only to be told by disk utility that the os x 10.5.8 dmg failed to mount.
    Anyone out there know what I should do?
    Thanks
    Stef

    did you download the combo update? try that?
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    if the dmg failed to mount it means that it was corrupted.

Maybe you are looking for