Can't pip install egenix-mx-base - python-3.x

I am trying to create an exe from using pyinstaller with
python 3.8
windows 7
pip 20.1.1
78935 WARNING: Hidden import "mx.DateTime" not found!
I tried:
pip install egenix-mx-base
However I get this error:
Using cached egenix-mx-base-3.2.9.zip (74 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python38\python.exe'
-c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppDat
a\\Local\\Temp\\pip-install-5lbz35_k\\egenix-mx-base\\setup.py'"'"'; __file__='"
'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-5lbz35_k\\egenix-mx-base\\
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\user\AppData\Local\Temp\pip-pip-egg
-info-l5hzmpcw'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-ba
se\
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-base
\setup.py", line 9, in <module>
import mxSetup, os
File "C:\Users\user\AppData\Local\Temp\pip-install-5lbz35_k\egenix-mx-base
\mxSetup.py", line 229
print 'running mxSetup.py with setuptools patched distutils'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('run
ning mxSetup.py with setuptools patched distutils')?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
I tried all the solutions form this issue but nothing works:
https://github.com/pypa/pip/issues/8

egenix-mx-base is for Python2 only. For date/time manipulation there are enough other modules including modules from the stdlib: datetime, calendar, time.

Related

cannot import name '_jsonl' from partially initialized module 'jsonl'

I am trying to install the python jsonl module on an Ubuntu system. Tried on two different computers and get the same exact error:
pip install jsonl
Collecting jsonl
Downloading jsonl-1.6.tar.gz (9.0 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5lw5f9ew/jsonl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5lw5f9ew/jsonl/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-5lw5f9ew/jsonl/pip-egg-info cwd: /tmp/pip-install-5lw5f9ew/jsonl/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-5lw5f9ew/jsonl/setup.py", line 5, in <module>
import jsonl
File "/tmp/pip-install-5lw5f9ew/jsonl/jsonl/__init__.py", line 19, in <module>
from jsonl import _jsonl as jsonl
ImportError: cannot import name '_jsonl' from partially initialized module 'jsonl' (most likely due to a circular import) (/tmp/pip-install-5lw5f9ew/jsonl/jsonl/__init__.py)
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Any ides on how to fix this? As the same exact error occurs on two systems, I'm thinking it's a config error on my part, but no idea on how to resolve. Thanks!
jsonl, the latest version 1.6 was released in 2014. I can install it with Python 2.7 but not with Python 3. The bottom line: it's an outdated abandoned project, forget it.
Another problem: it requires simplejson but doesn't declare it as a dependency.

Cannot install uwsgi thru pip install uwsgi using pycharms in Windows 10

Getting an error installing uWsgi using pycharms. I do not have Linux and most of the solutions I saw are using Linux. Any advice?
Executed command:
pip install uwsgi
Error occurred:
ERROR: Command errored out with exit status 1:
Command output:
Collecting uwsgi
Using cached uWSGI-2.0.19.1.tar.gz (803 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Sherman\Selenium\video_code\venv\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Sherman\\AppData\\Local\\Temp\\pip-install-kmyfu2dr\\uwsgi_af87984b16b348968367e4dff1c9d244\\setup.py'"'"'; __file__='"'"'C:\\Users\\Sherman\\AppData\\Local\\Temp\\pip-install-kmyfu2dr\\uwsgi_af87984b16b348968367e4dff1c9d244\\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\Sherman\AppData\Local\Temp\pip-pip-egg-info-1cos39nx'
cwd: C:\Users\Sherman\AppData\Local\Temp\pip-install-kmyfu2dr\uwsgi_af87984b16b348968367e4dff1c9d244\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Sherman\AppData\Local\Temp\pip-install-kmyfu2dr\uwsgi_af87984b16b348968367e4dff1c9d244\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\Sherman\AppData\Local\Temp\pip-install-kmyfu2dr\uwsgi_af87984b16b348968367e4dff1c9d244\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
To make it work on windows 10, you will have to build uWSGI package by modifying some of its setup. Replacing os with platform
Alternatively, you can try waitress or uvicorn. Which work well in windows.

ERROR: Command errored out with exit status 1 with sudo pip3.8 install websocket,

like i put on the title when i put pip install websockets to install on a rasberry pi, like said on this website https://pypi.org/project/websockets/ it puts this error
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting websocket
Using cached https://www.piwheels.org/simple/websocket/websocket-0.2.1-py3-none-any.whl (191 kB)
Collecting greenlet
Using cached greenlet-0.4.16.tar.gz (60 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1r2o5cjv/greenlet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1r2o5cjv/greenlet/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-pip-egg-info-u9pmz3n4
cwd: /tmp/pip-install-1r2o5cjv/greenlet/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/usr/local/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/usr/local/lib/python3.8/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
versions
-pip 20.1.1 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
-Python 3.8.0
i've tried (this text had been had after the post had been published) :
this link Python3: ImportError: No module named '_ctypes' when using Value from module multiprocessing
and
Try the following command :
python3.8 -m pip install ctypes
and then try the same installation procedure you did.
Hope this helps!

Python3.7 installing http with pip3 not working

when running pip3 install http I get the following error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w8rp368e/http/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w8rp368e/http/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-pip-egg-info-t6p61b0y
cwd: /tmp/pip-install-w8rp368e/http/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-w8rp368e/http/setup.py", line 3, in <module>
import http
File "/tmp/pip-install-w8rp368e/http/http/__init__.py", line 17, in <module>
from request import Request
ImportError: cannot import name 'Request' from 'request' (/home/.local/lib/python3.7/site-packages/request/__init__.py)
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
have the latest version of pip, requests and have tried all the found answers, but the error is still being thrown. Help would be much appreciated.
http, as in this package, was last updated in 2012 and was written for python 2. It therefore does not work in newer python versions.
But you can just use the http built-in module. See here. "built-in" means that it should be available in your python version already.
Try:
import http

Unable to install wsgiref in python 3.x

I can't install wsgiref in python 3. I got these errors.
I am using python 3, but I can't install wsgiref
I tried pip install wsgiref and pip install wsgiref==0.1.2
E:\CodeWork\Machine Learning\SWATI-The-Assistant-master\SWATI-The-Assistant-master>pip install wsgiref==0.1.2
Collecting wsgiref==0.1.2
Using cached https://files.pythonhosted.org/packages/41/9e/309259ce8dff8c596e8c26df86dbc4e848b9249fd36797fd60be456f03fc/wsgiref-0.1.2.zip
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h2ydr_0e\\wsgiref\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-h2ydr_0e\\wsgiref\\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\hp\AppData\Local\Temp\pip-install-h2ydr_0e\wsgiref\pip-egg-info'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-h2ydr_0e\wsgiref\
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\hp\AppData\Local\Temp\pip-install-h2ydr_0e\wsgiref\setup.py", line 5, in <module>
import ez_setup
File "C:\Users\hp\AppData\Local\Temp\pip-install-h2ydr_0e\wsgiref\ez_setup\__init__.py", line 170
print "Setuptools version",version,"or greater has been installed."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.```
The reason the pip 3 install is erroring is the syntax of one of the print statements in the setup process is old python 2 style with no parentheses. The good news is that wsgiref is already included in the python 3 library by default. Fire up a python 3 shell and try typing 'import wsgiref', that should succeed with no error.

Resources