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

Multiple 'Module Not Found' errors on FreeBSD version 1.187 from Ports #5040

Closed
darkoverlordofdata opened this issue May 3, 2023 · 19 comments

Comments

@darkoverlordofdata
Copy link

I recently installed cudatext on FreeBSD 13.1-RELEASE.
Using ‘sudo pkg install cudatext-qt5’, it installed cudatext version 1.187.1.0,

On Launch, the button status says ‘ModuleNotFoundError: No module named 'cuda_tabs_list', and the left side window titled ‘tabs’ is empty.
When I select Open Folder, I get ‘ModuleNotFoundError: No module named 'cuda_project_man'
ERROR: Exception in CudaText for cuda_project_man.new_project_open_dir: ModuleNotFoundError: No module named 'cuda_project_man'

Then the menu disappears. I can restart the program to get the menu back, but just about every selection gives me a ModuleNotFoundError, and names a ‘cuda_xxx’ module.

Unfortunately, this is unusable.

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

The package was not installed right. it misses folder 'py' at the right location. folder 'py':
https://wiki.freepascal.org/CudaText#Location_of_folders_.27settings.27.2C_.27py.27.2C_.27data.27

package cudatext-qt5 seems is not OK.

@Alexey-T Alexey-T changed the title Multiple Module Not Found errors Multiple 'Module Not Found' errors on FreeBSD installation May 3, 2023
@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

Please report to the package's issues:
https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=editors%2Fcudatext

Unpack portable package from
https://sourceforge.net/projects/cudatext/files/release/1.193.0.1/
and make symlink to the binary in OS PATH.

BSD package installer must copy folders 'data' and 'py' to ~/.config/cudatext , which is not done yet.

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

I reported to the bugtracker, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271221

@alonsobsd
Copy link

Hello, @darkoverlordofdata try use latest instead of quarterly into your pkg config file (/etc/pkg/FreeBSD.conf) and try install/update cudatext again. It should install/update cudatext to 1.191.5 in your FreeBSD.
image

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

@alonsobsd On your screenshot, sidebar don't show buttons

  • project manager
  • tabs list
  • snippet panel

it means the python engine was not inited. so BSD port don't have correct path in pylib__freebsd opt.

path is inited here: proc_globdata.pas

  {$ifdef freebsd}
  exit('/usr/local/lib/libpython3.6m.so');
  {$endif}

do we need another value?

@alonsobsd
Copy link

@Alexey-T it is a fresh install of cudatext it is the reason why you see pylib message. It is solved following your NOTE message
image

@Alexey-T Alexey-T closed this as completed May 3, 2023
@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

Solved by installing newer Cud update.

@darkoverlordofdata
Copy link
Author

darkoverlordofdata commented May 3, 2023 via email

@Alexey-T Alexey-T reopened this May 3, 2023
@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

The solution, if you use Quarterly, is this

  • get the portable version 1.193 from CudaText.sf.net Files section
  • unpack to a dir in home-dir
  • make a symlink to 'cudatext' in the PATH dir

@Alexey-T Alexey-T changed the title Multiple 'Module Not Found' errors on FreeBSD installation Multiple 'Module Not Found' errors on FreeBSD version 1.187 from Ports May 3, 2023
@Alexey-T Alexey-T closed this as completed May 3, 2023
@darkoverlordofdata
Copy link
Author

darkoverlordofdata commented May 3, 2023 via email

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

But you run the old version 1.187. please remove it from PC. and checck that 'cudatext' cannot be run. then make portable installation of 1.193.

@darkoverlordofdata
Copy link
Author

darkoverlordofdata commented May 3, 2023 via email

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

Yes, libQt5Pas.so.1 is a file from libQt5Pas package, and you need it even if you remove the CudaText package. after you install it, new Cud must work

@darkoverlordofdata
Copy link
Author

darkoverlordofdata commented May 3, 2023 via email

@Alexey-T
Copy link
Owner

Alexey-T commented May 3, 2023

I want to compile FreeBSD/Qt5 version. I just need the binary libQt5Pas.so.1 - can you attach it here, pls? I cannot find it online

@alonsobsd
Copy link

I want to compile FreeBSD/Qt5 version. I just need the binary libQt5Pas.so.1 - can you attach it here, pls? I cannot find it online

Try with it https://people.freebsd.org/~acm/ports/libQt5Pas.so.1.2.12

@Alexey-T
Copy link
Owner

Alexey-T commented May 4, 2023

Thanks, file copied, but I still have 'linker error' - seems all Qt5 .so files are needed as well, can you give them?

BTW, different fix for you is possible. Restore Cud 1.187 from packages. before running it, make the copy of installed folders 'settings_default', 'py' and 'data' to ~/.config/cudatext. you can find these 3 dirs in the package installed folder.

@alonsobsd
Copy link

@Alexey-T how are you generating cudatext binaries on FreeBSD? crosscompiling? or have you a fbsd box? libQt5pas.so has a lot of lib dependencies

@Alexey-T
Copy link
Owner

Alexey-T commented May 8, 2023

Crosscompiling from Ubuntu 20.4.

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

3 participants