无法在laravel中安装vinkla / pusher

时间:2016-06-16 12:52:09

标签: laravel pusher

我正在尝试将Pusher与Laravel应用程序集成。当我尝试安装Pusher Bridge vinkla / pusher时,我收到以下错误

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for vinkla/pusher ^2.3 -> satisfiable by vinkla/pusher[2.3.0].
    - Conclusion: remove laravel/framework v5.0.35
    - Conclusion: don't install laravel/framework v5.0.35
    - vinkla/pusher 2.3.0 requires illuminate/contracts 5.1.* || 5.2.* || 5.3.* -> satisfiable by illuminate/contracts[v5.1.1, v5.1.13, v5.1.16, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.6, v5.2.7].
    - don't install illuminate/contracts v5.1.1|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.13|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.16|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.20|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.22|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.25|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.28|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.30|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.31|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.1.8|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.0|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.19|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.21|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.24|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.25|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.26|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.27|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.28|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.31|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.32|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.37|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.6|don't install laravel/framework v5.0.35
    - don't install illuminate/contracts v5.2.7|don't install laravel/framework v5.0.35
    - Installation request for laravel/framework (locked at v5.0.35, required as 5.0.*) -> satisfiable by laravel/framework[v5.0.35].

请帮忙。

1 个答案:

答案 0 :(得分:0)

vinkla / pusher 2.3.0的最新版本需要使用版本5.1.x的照亮软件包,但看起来你的版本是5.0.x,所以你应该是ok安装版本2.1.0,5.0.x就可以了:

def article_links(start_date, end_date = '3000'): """ start_date, end_date = 'YYYY/MM/DD' returns a list of PubMedCentral links and a 2nd list of DOI links """ from Bio import Entrez Entrez.email = "Your.Name.Here@example.org" #get all articles in certain date range, in this case 5 articles which will be published in the future handle = Entrez.esearch(db="pubmed", term='("%s"[Date - Publication] : "%s"[Date - Publication]) ' %(start_date, end_date)) records = Entrez.read(handle) #get a list of Pubmed IDs for all articles idlist = ','.join(records['IdList']) handle = Entrez.efetch("pubmed", id=idlist, retmode="xml") records = Entrez.parse(handle) pmc_articles = [] doi = [] for record in records: #get all PMC articles if record.get('MedlineCitation'): if record['MedlineCitation'].get('OtherID'): for other_id in record['MedlineCitation']['OtherID']: if other_id.title().startswith('Pmc'): pmc_articles.append('http://www.ncbi.nlm.nih.gov/pmc/articles/%s/pdf/' % (other_id.title().upper())) #get all DOIs if record.get('PubmedData'): if record['PubmedData'].get('ArticleIdList'): for other_id in record['PubmedData']['ArticleIdList']: if 'doi' in other_id.attributes.values(): doi.append('http://dx.doi.org/' + other_id.title()) return pmc_articles, doi if __name__ == '__main__': print (article_links('2016/12/20'))