pyredminews icon indicating copy to clipboard operation
pyredminews copied to clipboard

ImportError: cannot import name Redmine

Open daihu opened this issue 11 years ago • 0 comments

[root@DB235 paul]# cd pyredminews-master [root@DB235 pyredminews-master]# ls LICENSE.txt MANIFEST.in README.rst redmine setup.py [root@DB235 pyredminews-master]# python setup.py build running build running build_py creating build creating build/lib creating build/lib/redmine copying redmine/init.py -> build/lib/redmine copying redmine/redmine.py -> build/lib/redmine copying redmine/redmine_rest.py -> build/lib/redmine [root@DB235 pyredminews-master]# python setup.py install running install running bdist_egg running egg_info creating pyredmine.egg-info writing requirements to pyredmine.egg-info/requires.txt writing pyredmine.egg-info/PKG-INFO writing top-level names to pyredmine.egg-info/top_level.txt writing dependency_links to pyredmine.egg-info/dependency_links.txt writing manifest file 'pyredmine.egg-info/SOURCES.txt' reading manifest file 'pyredmine.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'COPYING.txt' writing manifest file 'pyredmine.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/redmine copying build/lib/redmine/init.py -> build/bdist.linux-x86_64/egg/redmine copying build/lib/redmine/redmine.py -> build/bdist.linux-x86_64/egg/redmine copying build/lib/redmine/redmine_rest.py -> build/bdist.linux-x86_64/egg/redmine byte-compiling build/bdist.linux-x86_64/egg/redmine/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/redmine/redmine.py to redmine.pyc byte-compiling build/bdist.linux-x86_64/egg/redmine/redmine_rest.py to redmine_rest.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying pyredmine.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying pyredmine.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pyredmine.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pyredmine.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying pyredmine.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/pyredmine-0.2.4-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing pyredmine-0.2.4-py2.7.egg Removing /usr/local/lib/python2.7/site-packages/pyredmine-0.2.4-py2.7.egg Copying pyredmine-0.2.4-py2.7.egg to /usr/local/lib/python2.7/site-packages pyredmine 0.2.4 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/site-packages/pyredmine-0.2.4-py2.7.egg Processing dependencies for pyredmine==0.2.4 Finished processing dependencies for pyredmine==0.2.4

[root@DB235 pyredminews-master]# python Python 2.7.3 (default, Dec 11 2012, 17:50:32) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 [root@DB235 paul]# python redmine.py Traceback (most recent call last): File "redmine.py", line 2, in from redmine import Redmine File "/home/paul/redmine.py", line 2, in from redmine import Redmine ImportError: cannot import name Redmine

code: [root@DB235 paul]# cat redmine.py

!/usr/local/bin/python

from redmine import Redmine from datetime import *; from dateutil.relativedelta import * server = redmine.Redmine('dddddd', username='dddd', password='dddd') project = server.projects['db'] You have new mail in /var/spool/mail/root [root@DB235 paul]#

daihu avatar May 08 '13 10:05 daihu