GithubHelp home page GithubHelp logo

Comments (17)

fruch avatar fruch commented on August 18, 2024 5

I've seen this type of issues before, it cause you are using emojis in your readme, change the open to be open with Unicode support...

from maya.

joaoleveiga avatar joaoleveiga commented on August 18, 2024 1

As @fruch said, it's because of the README.

It might seem a bit overkill but you can use this snippet from pip's own setup.py:

# setup.py
import codecs

here = os.path.abspath(os.path.dirname(__file__))

def read(*parts):
    return codecs.open(os.path.join(here, *parts), 'r').read()

long_description = '\n' + read('README.rst')

This sould fix it

from maya.

boppreh avatar boppreh commented on August 18, 2024 1

I can confirm Windows installation on Python 3 is working as expected.

from maya.

rhosbach avatar rhosbach commented on August 18, 2024 1

This issue may need to be reopened. My environment is using Python 3.6.5 on Windows 10, 64 bits. I just attempted to pip install maya 0.6.1 and 0.6.0 and I was getting the same sort of UTF-8 issue:

ERROR: Exception: Traceback (most recent call last): File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\cli\base_command.py", line 178, in main status = self.run(options, args) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 352, in run resolver.resolve(requirement_set) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\resolve.py", line 131, in resolve self._resolve_one(requirement_set, req) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\resolve.py", line 294, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\resolve.py", line 242, in _get_abstract_dist_for self.require_hashes File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\operations\prepare.py", line 362, in prepare_linked_requirement abstract_dist.prep_for_dist(finder, self.build_isolation) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\operations\prepare.py", line 171, in prep_for_dist self.req.prepare_metadata() File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\req\req_install.py", line 553, in prepare_metadata metadata_name = canonicalize_name(self.metadata["Name"]) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\req\req_install.py", line 674, in metadata self._metadata = get_metadata(self.get_dist()) File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_internal\utils\packaging.py", line 48, in get_metadata metadata = dist.get_metadata('METADATA') File "c:\users\rahosbach\anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1420, in get_metadata return value.decode('utf-8') if six.PY3 else value UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 185: invalid continuation byte

I was able to install version 0.5.0 properly, though.

from maya.

rajakodumuri avatar rajakodumuri commented on August 18, 2024

I am facing the same issue as you are

from maya.

kennethreitz avatar kennethreitz commented on August 18, 2024

Can you try again?

from maya.

kennethreitz avatar kennethreitz commented on August 18, 2024

P.S. Maya has only been tested on Python 2.7 so far.

from maya.

boppreh avatar boppreh commented on August 18, 2024

Version 1.1 still has the same problem on Python 3.

C:\Windows\system32>pip install maya
Collecting maya
  Downloading maya-0.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\BoppreH\AppData\Local\Temp\pip-build-oztje553\maya\setup.py", line 26, in <module>
        long_description=open('README.rst').read(),
      File "c:\program files\python35\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 2170: character maps to <undefined>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\BoppreH\AppData\Local\Temp\pip-build-oztje553\maya\

Installation on Python 2.7 worked flawlessly, however.

from maya.

kennethreitz avatar kennethreitz commented on August 18, 2024

Python 3 compatibility will be added soon, thanks for bringing this issue up.

from maya.

boppreh avatar boppreh commented on August 18, 2024

Oh, ok. I'll leave the issue open in case you want to track it, but feel free to close/rename or do as you see fit.

Thank you for your attention.

from maya.

rajakodumuri avatar rajakodumuri commented on August 18, 2024

The issue isn't with readme I believe. It's most likely with the setup.py file. I don't think it has anything to do with the readme file.

If you see above example, Python's not able to parse setup.py and an issue with the function egg_info

from maya.

kennethreitz avatar kennethreitz commented on August 18, 2024

@joaoleveiga up for a pull request?

from maya.

joshuarli avatar joshuarli commented on August 18, 2024

I saw that @joaoleveiga's fix was implemented in 89a54ab, but I'm still having issues with installing maya 0.1.4 via pip.

I'm running pip-9.0.1 with Python 3.5.2 on Windows 10 (already did a chcp 65001 in cmd):

Collecting maya
  Using cached maya-0.1.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Joshua\AppData\Local\Temp\pip-build-i4kj_bou\maya\setup.py", line 40, in <module>
        long_description= '\n' + read('README.rst'),
      File "C:\Users\Joshua\AppData\Local\Temp\pip-build-i4kj_bou\maya\setup.py", line 20, in read
        return codecs.open(os.path.join(here, *parts), 'r').read()
      File "c:\users\joshua\appdata\local\programs\python\python35-32\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 3332: character maps to <undefined>
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Joshua\AppData\Local\Temp\pip-build-i4kj_bou\maya\

Seems to be the same issue.

from maya.

timofurrer avatar timofurrer commented on August 18, 2024

There have been some fixes around this. Can you verify if it's working now @joshuarli ?

from maya.

joshuarli avatar joshuarli commented on August 18, 2024

@timofurrer Ah, I don't use Windows anymore. It's been quite a while.

from maya.

timofurrer avatar timofurrer commented on August 18, 2024

Okay, @boppreh do you have any news on this?

from maya.

timofurrer avatar timofurrer commented on August 18, 2024

Thanks for the confirmation 🎉

from maya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.