Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'PosixPath' object has no attribute 'at' #402

Closed
iinov opened this issue Dec 22, 2023 · 3 comments
Closed

'PosixPath' object has no attribute 'at' #402

iinov opened this issue Dec 22, 2023 · 3 comments

Comments

@iinov
Copy link

iinov commented Dec 22, 2023

Since release 4.4.0, I get the following error:

File "/home/patrick/bin/virtualenv3.11/lib/python3.11/site-packages/chameleon/template.py", line 349, in mtime
filename = path.joinpath(self.filename).at
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: 'PosixPath' object has no attribute 'at'

Did I miss something?

Thanks for your help.

@malthe
Copy link
Owner

malthe commented Dec 22, 2023

@iinov there was a regression that meant auto_reload didn't work with non zip-compressed packages.

@malthe
Copy link
Owner

malthe commented Dec 26, 2023

This should be fixed now.

@malthe malthe closed this as completed Dec 26, 2023
@iinov
Copy link
Author

iinov commented Dec 28, 2023

It works fine now.

Thank you for your responsiveness.

credfeto added a commit to credfeto/LiveBandPhotosCom that referenced this issue Jan 1, 2024
Bumps [chameleon](https://github.com/malthe/chameleon) from 4.4.2 to
4.4.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/malthe/chameleon/releases">chameleon's
releases</a>.</em></p>
<blockquote>
<h2>4.4.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Use 'pytest' instead of 'zope.testrunner' by <a
href="https://github.com/malthe"><code>@​malthe</code></a> in <a
href="https://redirect.github.com/malthe/chameleon/pull/401">malthe/chameleon#401</a></li>
<li>Use absolute imports by <a
href="https://github.com/kloczek"><code>@​kloczek</code></a> in <a
href="https://redirect.github.com/malthe/chameleon/pull/400">malthe/chameleon#400</a></li>
<li>Fix loading file from non zip-compressed package by <a
href="https://github.com/malthe"><code>@​malthe</code></a> in <a
href="https://redirect.github.com/malthe/chameleon/pull/403">malthe/chameleon#403</a></li>
<li>Remove dependency on 'zope.interface' by <a
href="https://github.com/malthe"><code>@​malthe</code></a> in <a
href="https://redirect.github.com/malthe/chameleon/pull/406">malthe/chameleon#406</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/kloczek"><code>@​kloczek</code></a> made
their first contribution in <a
href="https://redirect.github.com/malthe/chameleon/pull/400">malthe/chameleon#400</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/malthe/chameleon/compare/4.4.2...4.4.3">https://github.com/malthe/chameleon/compare/4.4.2...4.4.3</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/malthe/chameleon/blob/master/CHANGES.rst">chameleon's
changelog</a>.</em></p>
<blockquote>
<h2>4.4.3 (2023-12-30)</h2>
<ul>
<li>
<p>Remove <code>zope.interface</code>.</p>
</li>
<li>
<p>Fix an issue where <code>auto_reload</code> is enabled and a file is
loaded
from a package that wasn't zip-compressed.
(<code>[#402](malthe/chameleon#402)
&lt;https://github.com/malthe/chameleon/issues/402&gt;</code>_)</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/malthe/chameleon/commit/6b55e9a262ac7bd708c2b6c7b8b50106d637f8c7"><code>6b55e9a</code></a>
Prepare release</li>
<li><a
href="https://github.com/malthe/chameleon/commit/b5fa5b119328fc33f8b4c25aa2abe126079982df"><code>b5fa5b1</code></a>
Merge pull request <a
href="https://redirect.github.com/malthe/chameleon/issues/406">#406</a>
from malthe/remove-zope-interface</li>
<li><a
href="https://github.com/malthe/chameleon/commit/2dfc0a752d6725c56a8db58acdf8a03f1240aa02"><code>2dfc0a7</code></a>
Add setuptools dependency</li>
<li><a
href="https://github.com/malthe/chameleon/commit/99d6a33e6a3d6128625738d39155fd2dc259d26a"><code>99d6a33</code></a>
Remove dependency on 'zope.interface'</li>
<li><a
href="https://github.com/malthe/chameleon/commit/2e91a668623c80c7591c3a4e7eb5475633f3cd91"><code>2e91a66</code></a>
Merge pull request <a
href="https://redirect.github.com/malthe/chameleon/issues/404">#404</a>
from malthe/build-packages</li>
<li><a
href="https://github.com/malthe/chameleon/commit/6863e56906504922ad086ff4455b8f2ea2876819"><code>6863e56</code></a>
Rename workflow</li>
<li><a
href="https://github.com/malthe/chameleon/commit/7f08e396fccb187bf76242cf6b611906ab91c8ab"><code>7f08e39</code></a>
Must build in order to prepare files</li>
<li><a
href="https://github.com/malthe/chameleon/commit/aa76db2ccc6f7cb22bbe5c3900ab313e129d533d"><code>aa76db2</code></a>
Upload all artfacts together</li>
<li><a
href="https://github.com/malthe/chameleon/commit/c6ac3cb61137bba9fdc3bc93ddeb9a69c78c5398"><code>c6ac3cb</code></a>
Fix upload</li>
<li><a
href="https://github.com/malthe/chameleon/commit/19235e50b4bb38158e6d45340ba61ab29ed259ad"><code>19235e5</code></a>
Add operating system</li>
<li>Additional commits viewable in <a
href="https://github.com/malthe/chameleon/compare/4.4.2...4.4.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chameleon&package-manager=pip&previous-version=4.4.2&new-version=4.4.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants