Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oceano2python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
US191
Oceano2python
Commits
e65e094e
Commit
e65e094e
authored
5 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
bug with pyinstaller during execution (netcdf4)
parent
96246b54
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/Readme-Python.txt
+16
-0
16 additions, 0 deletions
docs/Readme-Python.txt
with
16 additions
and
0 deletions
docs/Readme-Python.txt
+
16
−
0
View file @
e65e094e
...
...
@@ -585,6 +585,20 @@ enter this command in your Windows command prompt:
> pyinstaller -wF my_program.py
Problem during execution (under Windows):
File "netCDF4\_netCDF4.pyx", line 1213, in init netCDF4._netCDF4
ModuleNotFoundError: No module named 'cftime'
Try solution may be found here:
https://stackoverflow.com/questions/29067588/problems-building-python-distribion-containing-netcdf4
remove the current pyinstaller: pip uninstall pyinstaller
clone and install pyinstaller from the python3 branch (https://github.com/pyinstaller/pyinstaller)
modify your .spec file from hiddenimports = [] to hiddenimports = ['netCDF4.utils', 'netcdftime']
Tests unitaires avec unittest:
--------------------
...
...
@@ -634,3 +648,5 @@ Merge made by the 'recursive' strategy.
README.md | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 README.md
make test
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment