You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is probably the same as #30 which was closed "invalid". Here are steps to reproduce.
It looks like an interaction (name collision) between "pdoc" and "pdoc3" packages. Both packages appear to create this file upon install and remove it upon uninstall:
Lib/site-packages/pdoc/__init__.py
Expected Behavior
> pdoc3 --versionpdoc3 0.7.2
Actual Behavior
> pdoc3 --versionTraceback (most recent call last): File "C:\Python36-32\Scripts\pdoc3-script.py", line 11, in <module> load_entry_point('pdoc3==0.7.2', 'console_scripts', 'pdoc3')() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 476, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2700, in load_entry_point return ep.load() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2318, in load return self.resolve() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2324, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "c:\python36-32\lib\site-packages\pdoc\cli.py", line 27, in <module> '--version', action='version', version='%(prog)s ' + pdoc.__version__)AttributeError: module 'pdoc' has no attribute '__version__'
Steps to Reproduce
Clean slate
> pip3 uninstall pdoc pdoc3 markdown
Install pdoc3 to observe normal behaviour
> pip3 install pdoc3
Observe normal behaviour
> pdoc3 --versionpdoc3 0.7.2
SOURCE OF ISSUE - Install pdoc and then uninstall (which downgrades markdown, so we need to re-upgrade that):
> pdoc3 --versionTraceback (most recent call last): File "C:\Python36-32\Scripts\pdoc3-script.py", line 11, in <module> load_entry_point('pdoc3==0.7.2', 'console_scripts', 'pdoc3')() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 476, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2700, in load_entry_point return ep.load() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2318, in load return self.resolve() File "c:\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2324, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "c:\python36-32\lib\site-packages\pdoc\cli.py", line 27, in <module> '--version', action='version', version='%(prog)s ' + pdoc.__version__)AttributeError: module 'pdoc' has no attribute '__version__'
Workaround
Uninstall pdoc and pdoc3 and re-install pdoc3.
> pip3 uninstall pdoc pdoc3
> pip3 install pdoc3
Additional info
pdoc3 version: 0.7.2
Python 3.7.4
Windows 10 command line
The text was updated successfully, but these errors were encountered:
This issue is probably the same as #30 which was closed "invalid". Here are steps to reproduce.
It looks like an interaction (name collision) between "pdoc" and "pdoc3" packages. Both packages appear to create this file upon install and remove it upon uninstall:
Expected Behavior
Actual Behavior
Steps to Reproduce
> pip3 uninstall pdoc pdoc3 markdown
> pip3 install pdoc3
Workaround
Uninstall pdoc and pdoc3 and re-install pdoc3.
Additional info
The text was updated successfully, but these errors were encountered: