Comments (13)
The above PR fixes the reported problem but compared to older Python version the HTML output looks a bit poor. Looking at the git history of the pydoc.py module I found this commit https://github.com/python/cpython/commit/c91b6f57f3f75b482e4a9d30ad2afe37892a8ceb
that made the move to HTML5
So, in a possible follow-up PR the HTML output could be beautified by using HTML5/css.
from freecad.
It opens the system browser on my side, everything working as expected with yesterdays weekly. Please report back if this issue still persists.
from freecad.
I am using yesterday's weekly.
from freecad.
could it be related to general issues with the Appimage?
from freecad.
FreeCAD/src/Gui/OnlineDocumentation.cpp
Lines 130 to 132 in 9decb98
Assuming this is the problem, I'm not seeing the 3 arguments here match up with the pydoc function:
https://github.com/python/cpython/blob/30c687cdf8f7073302e92b2b125553d518a94eac/Lib/pydoc.py#L606
@maxwxyz Are you sure this works on your end? Are you on Windows?
from freecad.
I'm on Windows, yes.
from freecad.
It seems that specifically the '/' page is broken. http://localhost:7465/
@maxwxyz Can you check that specific URL after summoning Help > Automatic python modules documentation
? If that specific page works for you, then there might be a deeper bug between QByteArray and Python. It really shouldn't work with the code I'm seeing.
from freecad.
I've wiped my install and downloaded the latest weekly again and now I can reproduce. http://localhost:7465/
from freecad.
This is a super easy fix, so I'd like to take a shot at it. Trying to get a working dev environment setup now.
from freecad.
Let me know if you have issues, otherwise I can create a PR before the freeze.
from freecad.
Works fine with
OS: Ubuntu 22.04.4 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37462 (Git)
Build type: debug
Branch: main
Hash: d126352
Python 3.10.12, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.1
Locale: German/Germany (de_DE)
Could be related to the Python version. What's the output if you type this into the Python console:
import pydoc
help(pydoc.html.heading)
Here it gives
Help on method heading in module pydoc:
heading(title, fgcol, bgcol, extras='') method of __main__.FreeCADDoc instance
Format a page heading.
from freecad.
@wwmayer Not OP but this is the result when I click the command:
from freecad.
I have checked the heading() function and two arguments have been dropped. I am working on this right now...
from freecad.
Related Issues (20)
- Part Design : Thickness value Task panel issue HOT 5
- Backhoe arm example needs to be reassembled with latest Assembly Workbench fixes
- Draft: Draft_Shape2DView can produce "Null input shape" warnings
- FreeCADGui.Selection.getSelectionEx()[0].SubObjects broken for sketches HOT 12
- BIM: IfcOpenShell Update command on Linux sandboxed packages fails with error HOT 6
- Core: Values of inverse properties get reset HOT 2
- Notification area settings need refinement HOT 1
- Sketcher: Offset doesn't support ellipses
- Sketcher: Offset doesn't support B-splines
- Sketcher: Offset doesn't support hyperbolas/parabolas
- Core: Percentage property values
- Sketcher - Adding a point to the origin force closes. HOT 8
- Gui: Various property types in the VarSet dialog have unexpected results. HOT 5
- Gui: VarSet dialog causes segfault
- sketch: external geometry from error HOT 2
- Gui: Dialog for adding properties allows property types that give exceptions HOT 7
- Part Design Migrate tool seems to be outdated and unnecessary HOT 4
- QtStyle is not reset after switching back from OpenTheme to Classic HOT 2
- Part Design WB > Aditive Pipe > Add/Remove Edge Workflow HOT 5
- PERCAGE METRIQUE DEFECTUEUx HOT 1
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 freecad.