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)
- CAM: FreeCAD 1.0RC1: V-Carve of ShapeString "cuts" above surface
- [Sketcher] Crash when closing a Sketcher tab while its task is open HOT 2
- [GUI] Glitch on KDE when switching active tabs with mouse wheel
- FEM material setting problem HOT 18
- difficulty selecting the exact point on the circumference in line with the X and Y axes, is there a way to automatically snap? HOT 2
- CAM: New Simulator's task panel cuts translations for Job
- Memory Leak when adding alias to spreadsheet field HOT 2
- Crash when plotting HOT 3
- FreeCAD inconsistent and unintuitive about adding objects to Std_Part HOT 1
- Draft/TechDraw: DraftView view is auto-rotated 90 degrees HOT 2
- [UI] Additional lines in Catalan translation affect a Preference visualitzation HOT 3
- Spreadsheet: Merge Cells Bug HOT 5
- Placement of a shape is ignoring the input HOT 2
- Program Hang when Deselecting Hept and Octagon Tool HOT 1
- BIM: Arch Schedule does not find elements inside an array HOT 2
- Core: Origins' Plane and Axis icons look identical in dark themes
- BIM: Classification Manager's "Only visible objects" option has no effect HOT 1
- Assembly: Error in migration script `<class 'TypeError'>: 'NoneType' object is not subscriptable`
- CLI: Sketch breaks when opening file in CLI mode: BSpline curve: Knots interval values too close HOT 3
- Draft: When moving Draft_Mirrored elements to layer, source objects do not take over layer properties
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.