Comments (5)
Hi sorry, I did not understand how I can fix this error. Again I am sorry as I am a noob on git.
I think you have to use this repo: https://github.com/svennniiii/overleaf-sync
Just clone the project wherever you want git clone https://github.com/svennniiii/overleaf-sync
and run pip install .
inside the folder. This should install the script.
from overleaf-sync.
One of the folk already fixed this issue.
https://github.com/svennniiii/overleaf-sync
from overleaf-sync.
For PIPX users: pipx install git+https://github.com/svennniiii/overleaf-sync.git
from overleaf-sync.
Hey, I came across this. I'd point out the Overleaf team introduced some changes last year, which may cause this issue. Since I'm an overleaf/overleaf-sync newbie, I'd appreciate experts' help! ❤️
The Overleaf team has been working on a migration project for the last year and completed it.
Before
- meta name:
ol-projects
- json structure
// consists of a project array [ {"id": "...", "name": "..."}, {"id": "...", "name": "..."}, // ... ]
After
- meta name:
ol-prefetchedProjectsBlob
- json structure
// became a children of an object { "totalSize": 5, "projects": [ { "id": "...", "name": "..." }, { "id": "...", "name": "..." }, // ... ] }
Git history
Gathered by me after digging the git history of overleaf/overleaf repository and may be incorrect.
Take a look at the commits that introduced these changes into Overleaf (CE edition).
- into controller: overleaf/overleaf@a0fabee on Sep 14, 2022
- into view: overleaf/overleaf@cdbf8c1 on Oct 13, 2022
Two versions of the project list page seem to have been maintained during migration, and the old one that contains ol-project
meta was removed at the commit overleaf/overleaf@3e315ea on May 26, 2023. I mentioned the removal of services/web/app/views/project/list.pug
.
What can we do?
One patch will be to have OverleafClient.filter_projects()
accept new structure dict and rename ol-projects
ol-prefetchedProjectsBlob
in each caller.
overleaf-sync/olsync/olclient.py
Lines 38 to 41 in aa62165
to
@staticmethod
def filter_projects(json_content, more_attrs=None):
more_attrs = more_attrs or {}
+ projects = json_content.get("projects", []) # you have to check json_content is not None
- for p in json_content:
+ for p in projects:
and
overleaf-sync/olsync/olclient.py
Lines 91 to 93 in aa62165
to
json_content = json.loads(
- BeautifulSoup(projects_page.content, 'html.parser').find('meta', {'name': 'ol-projects'}).get('content'))
+ BeautifulSoup(projects_page.content, 'html.parser').find('meta', {'name': 'ol-prefetchedProjectsBlob'}).get('content'))
return list(OverleafClient.filter_projects(json_content))
My suggestion seems not intuitive because to call filter_project
with an object does not follow the standard. In other words, python's built-in filter
takes an array. So return list(OverleafClient.filter_projects(json_content).get("projects"))
should be better. Anyone has an idea? Thanks.
from overleaf-sync.
Hi sorry, I did not understand how I can fix this error.
Again I am sorry as I am a noob on git.
from overleaf-sync.
Related Issues (20)
- Folders are not created when local to remote. HOT 8
- Download compiled project pdfs HOT 5
- .olignore not work for folders HOT 1
- no olclient? HOT 2
- Authenticate cookie stop working 4 or 5 days after login HOT 4
- QtWebEngineWidgets ImportError HOT 3
- ols login fails on windows for v1.2.0 HOT 3
- multiple lines of `.olignore: using .olignore to filter items`
- Error: Project details could not be queried. HOT 8
- 'NoneType' object has no attribute 'get' HOT 9
- Adapting this project to be compatible with a privately hosted Overleaf server HOT 5
- 💥Querying all projects Error: Querying all projects failed. HOT 1
- ols: no description file specified HOT 1
- Cannot do any queries HOT 1
- olignore design is impractical for a single-file syncing HOT 1
- Error: Login failed. Please try again (PySide6 related issue)
- Cannot complete any querry
- Sync not working from [local] to [remote]
- Stopped working last week HOT 9
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 overleaf-sync.