Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.6_easydict #8

Open
3DMM-ICME2023 opened this issue Dec 11, 2017 · 5 comments
Open

python3.6_easydict #8

3DMM-ICME2023 opened this issue Dec 11, 2017 · 5 comments

Comments

@3DMM-ICME2023
Copy link

3DMM-ICME2023 commented Dec 11, 2017

@makinacorpus Thanks for your nice share! Could you please help me solve the issue?
when i use conda with python2.7, i can install easydict successfully. However,
when i use conda with python3.6, the log shows that

"UnsatisfiableError: The following specifications were found to be in conflict:

  • easydict -> python 2.7*
  • python 3.6*"

How can i install easydict with python3.6 . Thank you in advance!

@leplatrem
Copy link
Collaborator

I wonder if there's still anybody to maintain this project at Makina Corpus :)

You can take your chance by changing the classifiers here and submit a pull-request!
https://github.com/makinacorpus/easydict/blob/master/setup.py#L29

@Suor
Copy link

Suor commented Jan 2, 2018

Any updates?

@leplatrem
Copy link
Collaborator

easydict is only a few lines, you can easily dig into it and submit a fix if you need it :)

@marongchao
Copy link

marongchao commented Aug 14, 2018

I sent out pull request just now for change, please check and merge code.

#11

Thanks
Rongchao


Test result:
Before change
rongchao@rongchao-XPS-8930:~/notebook/text-detection-ctpn-master/easydict$ sudo python setup.py build
running build
running build_py
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easydict
copying easydict/init.py -> build/lib.linux-x86_64-2.7/easydict
running egg_info
writing easydict.egg-info/PKG-INFO
writing top-level names to easydict.egg-info/top_level.txt
writing dependency_links to easydict.egg-info/dependency_links.txt
reading manifest file 'easydict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'easydict.egg-info/SOURCES.txt'

rongchao@rongchao-XPS-8930:~/notebook/text-detection-ctpn-master/easydict$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing easydict.egg-info/PKG-INFO
writing top-level names to easydict.egg-info/top_level.txt
writing dependency_links to easydict.egg-info/dependency_links.txt
reading manifest file 'easydict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'easydict.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/easydict
copying easydict/init.py -> build/lib.linux-x86_64-2.7/easydict
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/easydict
copying build/lib.linux-x86_64-2.7/easydict/init.py -> build/bdist.linux-x86_64/egg/easydict
byte-compiling build/bdist.linux-x86_64/egg/easydict/init.py to init.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/easydict-1.8.dev0-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 easydict-1.8.dev0-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/easydict-1.8.dev0-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/easydict-1.8.dev0-py2.7.egg
Extracting easydict-1.8.dev0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
easydict 1.8.dev0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/easydict-1.8.dev0-py2.7.egg
Processing dependencies for easydict==1.8.dev0
Finished processing dependencies for easydict==1.8.dev0

After change
rongchao@rongchao-XPS-8930:~/notebook/text-detection-ctpn-master/easydict$ sudo python3 setup.py build
running build
running build_py
creating build/lib
creating build/lib/easydict
copying easydict/init.py -> build/lib/easydict
running egg_info
writing easydict.egg-info/PKG-INFO
writing dependency_links to easydict.egg-info/dependency_links.txt
writing top-level names to easydict.egg-info/top_level.txt
reading manifest file 'easydict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'easydict.egg-info/SOURCES.txt'

rongchao@rongchao-XPS-8930:~/notebook/text-detection-ctpn-master/easydict$ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
writing easydict.egg-info/PKG-INFO
writing dependency_links to easydict.egg-info/dependency_links.txt
writing top-level names to easydict.egg-info/top_level.txt
reading manifest file 'easydict.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'easydict.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/egg
creating build/bdist.linux-x86_64/egg/easydict
copying build/lib/easydict/init.py -> build/bdist.linux-x86_64/egg/easydict
byte-compiling build/bdist.linux-x86_64/egg/easydict/init.py to init.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying easydict.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/easydict-1.8.dev0-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing easydict-1.8.dev0-py3.6.egg
creating /usr/local/lib/python3.6/dist-packages/easydict-1.8.dev0-py3.6.egg
Extracting easydict-1.8.dev0-py3.6.egg to /usr/local/lib/python3.6/dist-packages
Adding easydict 1.8.dev0 to easy-install.pth file
Installed /usr/local/lib/python3.6/dist-packages/easydict-1.8.dev0-py3.6.egg
Processing dependencies for easydict==1.8.dev0
Finished processing dependencies for easydict==1.8.dev0

@NeighborhoodCoding
Copy link

Hi I can't install it!! I'm python 3.6user

PS C:\Users\owner> pip install easydict
Collecting easydict
  Using cached easydict-1.9.tar.gz (6.4 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\owner\appdata\local\programs\python\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\owner\\AppData\\Local\\Temp\\pip-install-gf9hvmq0\\easydict\\setup.py'"'"'; __file__='"'"'C:\\Users\\owner\\AppData\\Local\\Temp\\pip-install-gf9hvmq0\\easydict\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\owner\AppData\Local\Temp\pip-pip-egg-info-9yh7u5fa'
         cwd: C:\Users\owner\AppData\Local\Temp\pip-install-gf9hvmq0\easydict\
    Complete output (28 lines):
    Traceback (most recent call last):
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2480, in resolve
        return functools.reduce(getattr, self.attrs, module)
    AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\owner\AppData\Local\Temp\pip-install-gf9hvmq0\easydict\setup.py", line 30, in <module>
        'Programming Language :: Python :: 3.6'],
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\setuptools\__init__.py", line 163, in setup
        return distutils.core.setup(**attrs)
      File "c:\users\owner\appdata\local\programs\python\python36\lib\distutils\core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 430, in __init__
        k: v for k, v in attrs.items()
      File "c:\users\owner\appdata\local\programs\python\python36\lib\distutils\dist.py", line 281, in __init__
        self.finalize_options()
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 720, in finalize_options
        for ep in sorted(eps, key=by_order):
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 719, in <lambda>
        eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2472, in load
        return self.resolve()
      File "c:\users\owner\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 2482, in resolve
        raise ImportError(str(exc)) from exc
    ImportError: type object 'Distribution' has no attribute '_finalize_feature_opts'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants