Re: python3 thoughts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 24/11/10 17:35, David C. Rankin wrote:
On 11/17/2010 01:32 PM, C Anthony Risinger wrote:
On Wed, Nov 17, 2010 at 12:51 PM, Alper KANAT<tunix@xxxxxxxxxxx>  wrote:

That's nonsense.

what is?  py3k is nothing more than the completion and/or significant
advancement of several items that began in the 2.x tree; this is not
new information.

It's correct that Arch is an advanced user distribution but
you can't expect everyone to workaround each py application. Not everyone
that use Arch are developers.

the thread seems to be more focused on _developers_, and my response
reflects this sentiment.

i wouldn't expect any user to fix<insert>  application, even myself.
what i would expect however, is that they can figure out how to run it
under python2.

C Anthony


C Anthony,

	That does seem to be where some of us are stuck... I can change the
#!/usr/bin/python to #!/usr/bin/python2 no sweat, but then when the apps throw
further module errors, that is where I get stuck. For example in
/usr/share/createrepo/genpkgmetadata.py, running the script with python2 as the
executable results in the following error:

01:32 nirvana:/home/backup/rpms>  sudo ./data/updt-sign-repo.sh openSUSE_11.0/
         sqlite metadata tables found -->  updating

Traceback (most recent call last):
   File "/usr/share/createrepo/genpkgmetadata.py", line 29, in<module>
     import createrepo
ImportError: No module named createrepo

	So for some reason the change has caused python2 to lose all its modules and I
know not how to make the find them again :(


Have you rebuild whatever package provides "createrepo" to have its modules available for python-2.7? They are probably still sitting in a python-26 directory... This would have happened with or without the python3 transition.

Allan


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux