Comments (17)
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.
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.
I can confirm Windows installation on Python 3 is working as expected.
from maya.
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.
I am facing the same issue as you are
from maya.
Can you try again?
from maya.
P.S. Maya has only been tested on Python 2.7 so far.
from maya.
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.
Python 3 compatibility will be added soon, thanks for bringing this issue up.
from maya.
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.
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.
@joaoleveiga up for a pull request?
from maya.
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.
There have been some fixes around this. Can you verify if it's working now @joshuarli ?
from maya.
@timofurrer Ah, I don't use Windows anymore. It's been quite a while.
from maya.
Okay, @boppreh do you have any news on this?
from maya.
Thanks for the confirmation 🎉
from maya.
Related Issues (20)
- maya.intervals returns an infinite generator HOT 1
- 'regex._regex_core'; 'regex' is not a package HOT 3
- pip3 install maya doesn't install out of the box in python slim docker container. HOT 3
- Not friendly to Chinese HOT 2
- Inconsistency between date and datetime HOT 9
- UnicodeDecodeError with pip install maya on Windows 10 HOT 2
- Reference document for acceptable date formats HOT 2
- Fix simple typo: quanitzed -> quantized
- BST O! what a mess
- dateparser >=0.7.5 is not compatible with Python 2.7 HOT 1
- maya.parse fails on certain dates.
- Package not compatible with next version of tzlocal HOT 1
- Architecture not supported - Mac OS 10.15 in pipenv
- AttributeError: 'MayaDT' object has no attribute 'snap_tz' HOT 1
- Incorrect Results for Parssing Data Time HOT 1
- Looking for a new maintainer HOT 3
- Invalid date format - %Y\%m\%d
- day_first parse when year_first format does nothing? HOT 1
- Test failure with Python 3.12 HOT 2
- transfer back to @kennethreitz HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maya.