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 pytweetbot with pip install #15

Open
MusheAbdulHakim opened this issue Sep 11, 2020 · 3 comments
Open

Unable to install pytweetbot with pip install #15

MusheAbdulHakim opened this issue Sep 11, 2020 · 3 comments

Comments

@MusheAbdulHakim
Copy link

Collecting pyTweetBot
Downloading pyTweetBot-0.1.3.tar.gz (64 kB)
|████████████████████████████████| 64 kB 158 kB/s
Collecting nltk
Downloading nltk-3.5.zip (1.4 MB)
|████████████████████████████████| 1.4 MB 437 kB/s
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting logging
Downloading logging-0.4.9.6.tar.gz (96 kB)
|████████████████████████████████| 96 kB 149 kB/s
ERROR: Command errored out with exit status 1:
command: 'c:\users\mushe\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\mushe\AppData\Local\Temp\pip-install-inc1tcgh\logging\setup.py'"'"'; file='"'"'C:\Users\mushe\AppData\Local\Temp\pip-install-inc1tcgh\logging\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\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c'
cwd: C:\Users\mushe\AppData\Local\Temp\pip-install-inc1tcgh\logging
Complete output (48 lines):
running egg_info
creating C:\Users\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c\logging.egg-info
writing C:\Users\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c\logging.egg-info\PKG-INFO
writing dependency_links to C:\Users\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c\logging.egg-info\dependency_links.txt
writing top-level names to C:\Users\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c\logging.egg-info\top_level.txt
writing manifest file 'C:\Users\mushe\AppData\Local\Temp\pip-pip-egg-info-ja6du_8c\logging.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\mushe\AppData\Local\Temp\pip-install-inc1tcgh\logging\setup.py", line 3, in
setup(name = "logging",
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\egg_info.py", line 297, in run
self.find_sources()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\egg_info.py", line 304, in find_sources
mm.run()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\egg_info.py", line 535, in run
self.add_defaults()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\egg_info.py", line 571, in add_defaults
sdist.add_defaults(self)
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\command\sdist.py", line 226, in add_defaults
self.add_defaults_python()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\sdist.py", line 135, in add_defaults_python
build_py = self.get_finalized_command('build_py')
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\cmd.py", line 298, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 857, in get_command_obj
klass = self.get_command_class(command)
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\dist.py", line 764, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources_init
.py", line 2462, in load
return self.resolve()
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources_init
.py", line 2468, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\command\build_py.py", line 16, in
from setuptools.lib2to3_ex import Mixin2to3
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\lib2to3_ex.py", line 13, in
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
File "c:\users\mushe\appdata\local\programs\python\python38-32\lib\lib2to3\refactor.py", line 19, in
import logging
File "C:\Users\mushe\AppData\Local\Temp\pip-install-inc1tcgh\logging\logging_init_.py", line 618
raise NotImplementedError, 'emit must be implemented '
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@jonap339
Copy link

Is this project still active?

@MusheAbdulHakim
Copy link
Author

I am not sure But is like it is not.I have posted an issue and up to now no one has reach out to solve it.

@inactivist
Copy link

inactivist commented Dec 29, 2021

I suspect the main problem is that the requirements.txt (or setup.py) file doesn't specify library version dependencies so pip will use latest released versions, which may have incompatibilities since the last release of this project in 2018.

I'd suggest trying to figure out the correct versions of all specified dependencies as of the date of the last release (Jun 28, 2018) or if the author, @nschaetti has a functioning virtualenv available, run pip freeze in that environment and provide the output.

This Stack Overflow answer may be helpful in order to figure out versions in use as of a certain date.

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

3 participants