Comments (4)
This patch fix it
https://github.com/rr-/screeninfo/pull/36
from screeninfo.
This doesn't make sense, if you're using Py3.8 it should have been built in right into your Python, and if Py3.6 or earlier, it should be covered with this line https://github.com/rr-/screeninfo/blob/master/setup.py#L14
from screeninfo.
This doesn't make sense, if you're using Py3.8 it should have been built in right into your Python, and if Py3.6 or earlier, it should be covered with this line https://github.com/rr-/screeninfo/blob/master/setup.py#L14
Hello,
I tried running test with python 3.8 and got error below.
python3.8 setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
WARNING: The wheel package is not available.
running egg_info
creating screeninfo.egg-info
writing screeninfo.egg-info/PKG-INFO
writing dependency_links to screeninfo.egg-info/dependency_links.txt
writing requirements to screeninfo.egg-info/requires.txt
writing top-level names to screeninfo.egg-info/top_level.txt
writing manifest file 'screeninfo.egg-info/SOURCES.txt'
reading manifest file 'screeninfo.egg-info/SOURCES.txt'
writing manifest file 'screeninfo.egg-info/SOURCES.txt'
running build_ext
screeninfo (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: screeninfo (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: screeninfo
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/loader.py", line 470, in _find_test_path
package = self._get_module_from_name(name)
File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/screeninfo/__init__.py", line 1, in <module>
from .common import Enumerator, Monitor
File "/home/kev/python-screeninfo/screeninfo-0.6.5/screeninfo/common.py", line 7, in <module>
class Monitor:
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 958, in dataclass
return wrap(_cls)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 950, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 800, in _process_class
cls_fields = [_get_field(cls, name, type)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 800, in <listcomp>
cls_fields = [_get_field(cls, name, type)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 659, in _get_field
if (_is_classvar(a_type, typing)
File "/home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.6-py3.8.egg/dataclasses.py", line 550, in _is_classvar
return type(a_type) is typing._ClassVar
AttributeError: module 'typing' has no attribute '_ClassVar'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
from screeninfo.
But if I use this, it is different.
python setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version.
Searching for dataclasses
Reading https://pypi.org/simple/dataclasses/
Downloading https://files.pythonhosted.org/packages/7a/71/fdbab71f1f714e03ead2d264bf444f88379bc09b2937d54ec83894057f80/dataclasses-0.7.tar.gz#sha256=494a6dcae3b8bcf80848eea2ef64c0cc5cd307ffc263e17cdf42f3e5420808e6
Best match: dataclasses 0.7
Processing dataclasses-0.7.tar.gz
Writing /tmp/easy_install-GmFb8x/dataclasses-0.7/setup.cfg
Running dataclasses-0.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GmFb8x/dataclasses-0.7/egg-dist-tmp-hhJ3Zs
File "build/bdist.linux-x86_64/egg/dataclasses.py", line 202
class InitVar(metaclass=_InitVarMeta):
^
SyntaxError: invalid syntax
zip_safe flag not set; analyzing archive contents...
Moving dataclasses-0.7-py2.7.egg to /home/kev/python-screeninfo/screeninfo-0.6.5/.eggs
Installed /home/kev/python-screeninfo/screeninfo-0.6.5/.eggs/dataclasses-0.7-py2.7.egg
running egg_info
creating screeninfo.egg-info
writing requirements to screeninfo.egg-info/requires.txt
writing screeninfo.egg-info/PKG-INFO
writing top-level names to screeninfo.egg-info/top_level.txt
writing dependency_links to screeninfo.egg-info/dependency_links.txt
writing manifest file 'screeninfo.egg-info/SOURCES.txt'
reading manifest file 'screeninfo.egg-info/SOURCES.txt'
writing manifest file 'screeninfo.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
from screeninfo.
Related Issues (20)
- `is_primary` boolean for Monitor objects HOT 2
- conda package for screeninfo HOT 1
- get_monitors returns empty on osx when Enumerator not explicitly provided HOT 1
- WSL
- `y` for a secondary monitor has a different meaning in darwin vs other systems
- customdisplayprofiles current-path not work HOT 2
- Exception: Xinerama is not active HOT 3
- save width and height to a variable HOT 4
- Exception on Raspberry Pi 4 HOT 1
- Ubuntu 22.04: No enumerators available HOT 3
- No enumerations available: Ubuntu 22.04 on X11 HOT 1
- possible GDI Object leak on Windows HOT 3
- Problem with dearpygui
- Add screen diagonal line in inches as an attribute
- Get refresh rate HOT 2
- "No enumerators available" when running in SERVER
- Pull specific values from Monitor X
- Getting No Enumerators Available error when running on pygbag
- No monitor physical dimensions on MacOS HOT 3
- Installation error with conda and python 3.12
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 screeninfo.