NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.31k stars 14.28k forks source link

asynk.py does not work #28790

Open nico202 opened 7 years ago

nico202 commented 7 years ago

Issue description

global name 'vobject' is not defined

Steps to reproduce

install asynk.py (either with nix-env -iA nixos.asynk or adding it to environment.systemPackages and switching to the configuration)

creare a profile

asynk.py --op=create-profile --name testbbcd --user-dir=~/.asynk.cd --db bb cd --folder default default --store <opath-to-bbdb-file> <CardDAV URL> --cduser=<username> try to sync asynk.py --op=sync --user-dir=~/.asynk.cd --name testbbcd --dry-run

cc: @DamienCassou

Technical details

edit: used template

FRidh commented 7 years ago

You will need to give more information. Please use the template and describe how you "install".

DamienCassou commented 7 years ago

I'm not using NixOS anymore. I can't help you.

nico202 commented 7 years ago

@FRidh updated the first post. I can provide a temporary account to try the sync, but that really should not matter. He just can't see the python dependency

FRidh commented 7 years ago

@nico202 thank you. Can you give the entire error/trace.

nico202 commented 7 years ago
[11:20:53.840    ERROR] Error (global name 'vobject' is not defined) parsing vCard object for 571e65e2-178b-4d34-a713-51a40cdd8739                                                                
Traceback (most recent call last):              
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/bin/.asynk.py-wrapped", line 1125, in <module>                                                                                    
    main()                                      
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/bin/.asynk.py-wrapped", line 80, in main                                                                                          
    asynk.dispatch()                            
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/bin/.asynk.py-wrapped", line 511, in dispatch                                                                                     
    res = getattr(self, self.get_op())()        
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/bin/.asynk.py-wrapped", line 795, in op_sync                                                                                      
    sync.prep_lists(self.get_sync_dir())        
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/sync.py", line 283, in prep_lists                                                                                           
    return self._prep_lists_2_way(self.get_f1(), self.get_f2())                                  
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/sync.py", line 179, in _prep_lists_2_way                                                                                    
    f2.prep_sync_lists(f1.get_dbid(), f2sl)     
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/folder_cd.py", line 66, in prep_sync_lists                                                                                  
    curi  = self.get_itemids(pname, destid)     
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/folder_cd.py", line 119, in get_itemids                                                                                     
    self._refresh_contacts()                    
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/folder_cd.py", line 309, in _refresh_contacts                                                                               
    cons  = self.find_items(hrefs)              
  File "/nix/store/frsz5fwf82jpqa438rzh7632w09lyk5c-ASynK-2.0.0/asynk/folder_cd.py", line 182, in find_items                                                                                      
    cd = CDContact(self, vco=vobject.readOne(vcf.text), itemid=key)                              
NameError: global name 'vobject' is not defined 
nico202 commented 7 years ago

It seems (from here and the author response) that it's using vobject from a submodule

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.