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

bug: ModuleNotFoundError: No module named 'recurring_ical_events' #214

Closed
daniele-athome opened this issue Feb 12, 2025 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@daniele-athome
Copy link

Describe the bug
Probably a packaging error? Importing the module in a plain venv doesn't work.

To Reproduce

python3 -m venv .venv
source .venv/bin/activate
pip3 install recurring-ical-events
python3
>> import recurring_ical_events
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import recurring_ical_events
ModuleNotFoundError: No module named 'recurring_ical_events'

Version:

3.5.0

Additional context

I discovered the bug when working with the python-caldav project, more details here: python-caldav/caldav#329

@niccokunzmann
Copy link
Owner

Uh. I restructured the package from a file to a directory. Maybe, is it not included in the build file? Would you like to have a look? It could need adding to the manifest file.

@niccokunzmann
Copy link
Owner

Sorry for the inconvenience! I will delete the release once there is a fix. Then, you do not need to add an exception.

@tobixen
Copy link
Collaborator

tobixen commented Feb 12, 2025

#212 seems to be the relevant pull request

It's interesting for me too, I have different structure in all my packages and would like to go for the "best current practice" on this field. poetry was suggested on FOSDEM.

Unfortunately I don't have more time to look into this today. (but anyway @niccokunzmann is way faster than me) :-)

@niccokunzmann
Copy link
Owner

I just 'yanked' release 3.5.0 as it does not contain the source files. I think, it is time to transition to the new pyproject.toml format. I will create a new release with that then. I use that in my other projects.

@niccokunzmann
Copy link
Owner

With #215, I should have a fix.

(.venv) /tmp$ virtualenv .venv
created virtual environment CPython3.11.6.final.0-64 in 231ms
  creator CPython3Posix(dest=/tmp/.venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, 
    added seed packages: pip==24.3.1, setuptools==75.8.0, wheel==0.45.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
(.venv) /tmp$ . .venv/bin/activate
(.venv) /tmp$ pip install ~/recurring-ical-events/dist/recurring_ical_events-3.5.1 
recurring_ical_events-3.5.1-py3-none-any.whl
recurring_ical_events-3.5.1.tar.gz
(.venv) /tmp$ pip install ~/recurring-ical-events/dist/recurring_ical_events-3.5.1-py3-none-any.whl 
Processing ~/recurring-ical-events/dist/recurring_ical_events-3.5.1-py3-none-any.whl
Collecting icalendar<7.0.0,>=6.1.0 (from recurring-ical-events==3.5.1)
  Using cached icalendar-6.1.1-py3-none-any.whl.metadata (10 kB)
Collecting python-dateutil<3.0.0,>=2.8.1 (from recurring-ical-events==3.5.1)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting tzdata (from recurring-ical-events==3.5.1)
  Using cached tzdata-2025.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting x-wr-timezone<3.0.0,>=1.0.0 (from recurring-ical-events==3.5.1)
  Using cached x_wr_timezone-2.0.1-py3-none-any.whl.metadata (10 kB)
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.8.1->recurring-ical-events==3.5.1)
  Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting click (from x-wr-timezone<3.0.0,>=1.0.0->recurring-ical-events==3.5.1)
  Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Using cached icalendar-6.1.1-py3-none-any.whl (200 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached x_wr_timezone-2.0.1-py3-none-any.whl (11 kB)
Using cached tzdata-2025.1-py2.py3-none-any.whl (346 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Using cached click-8.1.8-py3-none-any.whl (98 kB)
Installing collected packages: tzdata, six, click, python-dateutil, icalendar, x-wr-timezone, recurring-ical-events
Successfully installed click-8.1.8 icalendar-6.1.1 python-dateutil-2.9.0.post0 recurring-ical-events-3.5.1 six-1.17.0 tzdata-2025.1 x-wr-timezone-2.0.1

[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
(.venv) /tmp$ python
Python 3.11.6 (main, Oct 23 2023, 13:38:18) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import recurring_ical_events

I will release this now.

@niccokunzmann
Copy link
Owner

v3.5.1 has been released to PyPI. Could you check if it closes the issue for you?

@daniele-athome
Copy link
Author

And we got source files :-) thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants