Re: Local repository setup problem with fedora-mirror.py

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

 



Hi,
On 8/10/06, Jesse Keating <jkeating@xxxxxxxxxx> wrote:
On Thursday 10 August 2006 03:34, Parag N(पराग़) wrote:
>  File "/usr/bin/reposync", line 43, in ?
>    from repomd.packageSack import ListPackageSack
> ImportError: No module named repomd.packageSack
> [root@localhost parag]#
>
> Do i need any changes to fedora-mirror.py script or anything else i am
> missing?? Regards,

Yum api is in flux.

Open up /usr/bin/reposync, and chnage 'repomd.packageSack'
to 'yum.packageSack'.

 Now i got
[root@localhost parag]# python fedora-mirror.py
syncing: Fedora development core i386 binary to /mirror_repo
/usr/lib/python2.4/site-packages/yum/plugins.py:381:
DeprecationWarning: registerOpt() will go away in a future version of
Yum.
Please manipulate config.YumConf and config.RepoConf directly.
 DeprecationWarning)
Traceback (most recent call last):
 File "/usr/bin/reposync", line 193, in ?
   main()
 File "/usr/bin/reposync", line 115, in main
   my.doConfigSetup(fn=opts.config)
 File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 121,
in doConfigSetup
   startupconf.pluginconfpath)
 File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 220,
in doPluginSetup
   plugin_types, confpath)
 File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 136, in __init__
   self.run('config')
 File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 152, in run
   func(conduitcls(self, self.base, conf, **kwargs))
 File "/usr/lib/yum-plugins/downloadonly.py", line 26, in config_hook
   parser.add_option('', '--downloadonly', dest='dlonly', action='store_true',
AttributeError: 'NoneType' object has no attribute 'add_option'
syncing: Fedora development extras i386 binary to /mirror_repo
/usr/lib/python2.4/site-packages/yum/plugins.py:381:
DeprecationWarning: registerOpt() will go away in a future version of
Yum.
Please manipulate config.YumConf and config.RepoConf directly.
 DeprecationWarning)
Traceback (most recent call last):
 File "/usr/bin/reposync", line 193, in ?
   main()
 File "/usr/bin/reposync", line 115, in main
   my.doConfigSetup(fn=opts.config)
 File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 121,
in doConfigSetup
   startupconf.pluginconfpath)
 File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 220,
in doPluginSetup
   plugin_types, confpath)
 File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 136, in __init__
   self.run('config')
 File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 152, in run
   func(conduitcls(self, self.base, conf, **kwargs))
 File "/usr/lib/yum-plugins/downloadonly.py", line 26, in config_hook
   parser.add_option('', '--downloadonly', dest='dlonly', action='store_true',
AttributeError: 'NoneType' object has no attribute 'add_option'
[root@localhost parag]#

Regards,
Parag.

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux