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

Unable to install mega.py in Ubuntu WSL #81

Open
adivaste opened this issue Apr 19, 2022 · 0 comments
Open

Unable to install mega.py in Ubuntu WSL #81

adivaste opened this issue Apr 19, 2022 · 0 comments

Comments

@adivaste
Copy link

Getting an error as :

/home/adivaste/.local/lib/python3.8/site-packages/pkg_resources/init.py:122: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/adivaste/.local/lib/python3.8/site-packages/pkg_resources/init.py:122: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
Collecting mega.py
Using cached mega.py-1.0.8-py2.py3-none-any.whl (19 kB)
Requirement already satisfied: requests>=0.10 in /home/adivaste/.local/lib/python3.8/site-packages (from mega.py) (2.27.1)
Requirement already satisfied: pycryptodome<4.0.0,>=3.9.6 in /home/adivaste/.local/lib/python3.8/site-packages (from mega.py) (3.14.1)
Collecting pathlib==1.0.1
Using cached pathlib-1.0.1.tar.gz (49 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6ds2ju8o/pathlib/setup.py'"'"'; file='"'"'/tmp/pip-install-6ds2ju8o/pathlib/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 /tmp/pip-install-6ds2ju8o/pathlib/pip-egg-info
cwd: /tmp/pip-install-6ds2ju8o/pathlib/
Complete output (21 lines):
Traceback (most recent call last):
File "", line 1, in
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/init.py", line 18, in
from setuptools.dist import Distribution
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/dist.py", line 35, in
from ._importlib import metadata
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/_importlib.py", line 28, in
disable_importlib_metadata_finder(metadata)
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/_importlib.py", line 12, in disable_importlib_metadata_finder
import importlib_metadata
File "/usr/lib/python3/dist-packages/importlib_metadata/init.py", line 591, in
version = version(name)
File "/usr/lib/python3/dist-packages/importlib_metadata/init.py", line 553, in version
return distribution(distribution_name).version
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 605, in version
return self.metadata['Version']
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 583, in metadata
self.read_text('METADATA')
File "/home/adivaste/.local/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/init.py", line 917, in read_text
return self._path.joinpath(filename).read_text(encoding='utf-8')
AttributeError: 'PosixPath' object has no attribute 'read_text'
----------------------------------------
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

2 participants
@adivaste and others